Fixes in extrafield
This commit is contained in:
parent
37a934e7a3
commit
75e5a07373
3 changed files with 8 additions and 5 deletions
|
|
@ -89,7 +89,7 @@ def prepare_app():
|
|||
controller_path=import_module(added_app[0])
|
||||
|
||||
controller_base=os.path.dirname(controller_path.__file__)
|
||||
|
||||
print(controller_base)
|
||||
dir_controllers=os.listdir(controller_base)
|
||||
|
||||
for controller in dir_controllers:
|
||||
|
|
@ -155,7 +155,9 @@ try:
|
|||
prepare_app()
|
||||
|
||||
except:
|
||||
@app.reset()
|
||||
|
||||
app.reset()
|
||||
|
||||
@app.route('/')
|
||||
def catch_errors(all='/'):
|
||||
try:
|
||||
|
|
@ -163,7 +165,7 @@ except:
|
|||
#from settings import modules
|
||||
import time
|
||||
prepare_app()
|
||||
p=Path('index.py')
|
||||
p=Path('app.py')
|
||||
p.touch()
|
||||
time.sleep(1)
|
||||
except:
|
||||
|
|
|
|||
|
|
@ -39,8 +39,8 @@ class IntegerField(PhangoField):
|
|||
super(IntegerField, self).__init__(name, size, required)
|
||||
self.default_value=0
|
||||
self.jtype='integer'
|
||||
self.jformat=''
|
||||
|
||||
self.jformat='int64'
|
||||
self.jexample='12345'
|
||||
|
||||
self.type_sql='int({})'.format(self.size)
|
||||
|
||||
|
|
|
|||
|
|
@ -44,6 +44,7 @@ class DateTimeField(PhangoField):
|
|||
|
||||
self.jformat='date-time'
|
||||
self.jtype='string'
|
||||
self.jexample='2022-12-01 12:24:11'
|
||||
|
||||
def check(self, value):
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue