Fixes
This commit is contained in:
parent
d6bed48a83
commit
787691617d
7 changed files with 23 additions and 16 deletions
|
|
@ -3,8 +3,7 @@ import sys
|
|||
from pathlib import Path
|
||||
from paramecio2.libraries.db.corefields import CharField
|
||||
from paramecio2.libraries.db.extraforms.fileform import FileForm
|
||||
from paramecio.citoplasma import httputils
|
||||
from paramecio.citoplasma.keyutils import create_key
|
||||
from paramecio2.libraries.keyutils import create_key
|
||||
import traceback
|
||||
|
||||
from bottle import request
|
||||
|
|
|
|||
|
|
@ -1,7 +1,7 @@
|
|||
#!/usr/bin/env python3
|
||||
|
||||
from paramecio2.libraries.db.corefields import CharField
|
||||
from paramecio.citoplasma.slugify import slugify
|
||||
from slugify import slugify
|
||||
from paramecio2.libraries.db.coreforms import HiddenForm
|
||||
|
||||
class SlugifyField(CharField):
|
||||
|
|
|
|||
|
|
@ -95,10 +95,10 @@ class UserModel(WebModel):
|
|||
"""
|
||||
|
||||
#get_id=getpostfiles.get.get(self.name_field_id, '0')
|
||||
get_id=requests.args.get(self.name_field_id, '0')
|
||||
get_id=request.args.get(self.name_field_id, '0')
|
||||
|
||||
#post_id=getpostfiles.post.get(self.name_field_id, '0')
|
||||
post_id=requests.form.get(self.name_field_id, '0')
|
||||
post_id=request.form.get(self.name_field_id, '0')
|
||||
|
||||
if get_id!='0':
|
||||
get_id=int(get_id)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue