diff --git a/paramecio2/libraries/db/extrafields/usernamefield.py b/paramecio2/libraries/db/extrafields/usernamefield.py index 1b79d9d..0491858 100644 --- a/paramecio2/libraries/db/extrafields/usernamefield.py +++ b/paramecio2/libraries/db/extrafields/usernamefield.py @@ -20,7 +20,7 @@ along with this program. If not, see . from paramecio2.libraries.db.corefields import PhangoField from paramecio2.libraries.db.coreforms import PasswordForm from hmac import compare_digest as compare_hash -#import crypt +import crypt import re class UserNameField(PhangoField): diff --git a/paramecio2/libraries/i18n.py b/paramecio2/libraries/i18n.py index 2014705..42188f8 100644 --- a/paramecio2/libraries/i18n.py +++ b/paramecio2/libraries/i18n.py @@ -137,35 +137,7 @@ class I18n: #@staticmethod #def set_lang(code_lang): # if default_lang - def __init__(self, module): - self.module=module - - def slang(self, symbol, text_default, lang=None): - """Method for get a string from selected language but object oriented - - Method for get a string from selected language but object oriented - - Args: - symbol (str): The symbol used for identify the text string. - text_default (str): The text default used. You have use how base for translations. - """ - return I18n.lang(self.module, symbol, text_default) - - def tlang(self, text_default, lang=None): - """Method for get a string from selected language but object oriented and using module and symbol by default - - Method for get a string from selected language but object oriented and using module and symbol by default - - Args: - symbol (str): The symbol used for identify the text string. - text_default (str): The text default used. You have use how base for translations. - """ - - symbol=text_default[:60] - - return I18n.lang(self.module, symbol, text_default) - @staticmethod def get_default_lang(): diff --git a/paramecio2/libraries/mtemplates.py b/paramecio2/libraries/mtemplates.py index 3e469b3..9eb44ff 100644 --- a/paramecio2/libraries/mtemplates.py +++ b/paramecio2/libraries/mtemplates.py @@ -157,8 +157,6 @@ class PTemplate: #print(path.basename(module_env)+' '+base_name+'/languages/') self.l=PGetText(module_env+'/app.py') - - self.i18n=I18n(module_env) self.add_filter(self._) diff --git a/paramecio2/modules/admin/__init__.py b/paramecio2/modules/admin/__init__.py index 4548b60..bf4f1e8 100644 --- a/paramecio2/modules/admin/__init__.py +++ b/paramecio2/modules/admin/__init__.py @@ -8,7 +8,5 @@ try: t=PTemplate(env) - wsgi_module=True - except: pass diff --git a/paramecio2/modules/admin/media/css/admin.css b/paramecio2/modules/admin/media/css/admin.css index 82aedd0..8cfd9b3 100644 --- a/paramecio2/modules/admin/media/css/admin.css +++ b/paramecio2/modules/admin/media/css/admin.css @@ -1039,7 +1039,6 @@ a.form_button_tab:hover box-sizing: border-box; /* border: solid #fff 1px;*/ float:left; - overflow:hidden; } @@ -1050,7 +1049,6 @@ a.form_button_tab:hover box-sizing: border-box; /*border: solid #f00 1px;*/ float:left; - overflow:hidden; } @@ -1060,7 +1058,6 @@ a.form_button_tab:hover box-sizing: border-box; /*border: solid #f00 1px;*/ float:left; - overflow:hidden; } diff --git a/paramecio2/modules/admin/templates/dashboard.phtml b/paramecio2/modules/admin/templates/dashboard.phtml index 9c3442c..d6b5eef 100644 --- a/paramecio2/modules/admin/templates/dashboard.phtml +++ b/paramecio2/modules/admin/templates/dashboard.phtml @@ -17,7 +17,6 @@ if session.get('theme', '0')=='1': ${title} -