Compare commits

..

No commits in common. "4b919b16f4bcfdef290839db25b7119f03fdbf3a" and "59c1e30863a98b10b33a781d1b3065b63ef08ddf" have entirely different histories.

6 changed files with 1 additions and 37 deletions

View file

@ -20,7 +20,7 @@ along with this program. If not, see <https://www.gnu.org/licenses/>.
from paramecio2.libraries.db.corefields import PhangoField from paramecio2.libraries.db.corefields import PhangoField
from paramecio2.libraries.db.coreforms import PasswordForm from paramecio2.libraries.db.coreforms import PasswordForm
from hmac import compare_digest as compare_hash from hmac import compare_digest as compare_hash
#import crypt import crypt
import re import re
class UserNameField(PhangoField): class UserNameField(PhangoField):

View file

@ -137,34 +137,6 @@ class I18n:
#@staticmethod #@staticmethod
#def set_lang(code_lang): #def set_lang(code_lang):
# if default_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 @staticmethod

View file

@ -158,8 +158,6 @@ class PTemplate:
self.l=PGetText(module_env+'/app.py') self.l=PGetText(module_env+'/app.py')
self.i18n=I18n(module_env)
self.add_filter(self._) self.add_filter(self._)
self.i18n=I18n(base_name) self.i18n=I18n(base_name)

View file

@ -8,7 +8,5 @@ try:
t=PTemplate(env) t=PTemplate(env)
wsgi_module=True
except: except:
pass pass

View file

@ -1039,7 +1039,6 @@ a.form_button_tab:hover
box-sizing: border-box; box-sizing: border-box;
/* border: solid #fff 1px;*/ /* border: solid #fff 1px;*/
float:left; float:left;
overflow:hidden;
} }
@ -1050,7 +1049,6 @@ a.form_button_tab:hover
box-sizing: border-box; box-sizing: border-box;
/*border: solid #f00 1px;*/ /*border: solid #f00 1px;*/
float:left; float:left;
overflow:hidden;
} }
@ -1060,7 +1058,6 @@ a.form_button_tab:hover
box-sizing: border-box; box-sizing: border-box;
/*border: solid #f00 1px;*/ /*border: solid #f00 1px;*/
float:left; float:left;
overflow:hidden;
} }

View file

@ -17,7 +17,6 @@ if session.get('theme', '0')=='1':
<meta http-equiv="content-type" content="text/html; charset=UTF-8"> <meta http-equiv="content-type" content="text/html; charset=UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0"> <meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0">
<title>${title}</title> <title>${title}</title>
<link href="${make_media_url('css/admin.css', 'admin')}" rel="stylesheet" /> <link href="${make_media_url('css/admin.css', 'admin')}" rel="stylesheet" />
<link href="${make_media_url('css/font-awesome.min.css', 'admin')}" rel="stylesheet" /> <link href="${make_media_url('css/font-awesome.min.css', 'admin')}" rel="stylesheet" />
<link href="${make_media_url('css/responsive-nav.css', 'admin')}" rel="stylesheet" /> <link href="${make_media_url('css/responsive-nav.css', 'admin')}" rel="stylesheet" />