diff --git a/paramecio2/app.py b/paramecio2/app.py index b6224e0..7a2e7b2 100644 --- a/paramecio2/app.py +++ b/paramecio2/app.py @@ -24,11 +24,15 @@ def start_app(): application_root='/' if hasattr(config, 'application_root'): + #print(config.application_root) application_root=config.application_root + app.config.update( APPLICATION_ROOT=application_root ) + + #app.config['APPLICATION_ROOT']=application_root if hasattr(config, 'json_sort_keys'): app.config.update( diff --git a/paramecio2/libraries/db/corefields.py b/paramecio2/libraries/db/corefields.py index 43c61ed..16db01f 100644 --- a/paramecio2/libraries/db/corefields.py +++ b/paramecio2/libraries/db/corefields.py @@ -172,6 +172,20 @@ class TextField(PhangoField): return 'TEXT '+self.set_default +class LongTextField(TextField): + """Class used for long text fields (32 bits size, 4G) + + Class used for text fields, use LONGTEXT sql type for the this field. + """ + + def get_type_sql(self): + + """Method for return the sql code for this type + + """ + + return 'LONGTEXT '+self.set_default + class HTMLField(TextField): """Class used for html fields diff --git a/setup.py b/setup.py index 3e6501f..ecbec2f 100644 --- a/setup.py +++ b/setup.py @@ -13,7 +13,7 @@ if sys.version_info < (3, 8): # If you install passlib and bcrypt, the password system will use bcrypt by default, if not, will use native crypt libc setup(name='paramecio2', - version='2.0.26', + version='2.0.27', description='Simple Web Framework based in flask and Mako.', long_description='This framework is a simple framework used for create web apps. Paramecio is modular and fast. By default have a module called admin that can be used for create admin sites', author='Antonio de la Rosa Caballero',