[web2py] Re: 2.12.1 is out

2015-08-15 Thread ermolaev . icreator
for prevetn pickle error please add new param in session: session.connect(request,response,cookie_key='kjykGFDRETfxf65', compression_level=None, *pickle_low*=True) If *pickle_low: - not use high protocol foe pickle* -- Resources: - http://web2py.com - http://web2py.com/book

[web2py] Re: 2.12.1 is out

2015-08-13 Thread ermolaev . icreator
please insert in settings using pickle.HIGHPROTOCOL if I set unuse.pickle_HP - than will switch off it https://groups.google.com/forum/?hl=ru#!searchin/web2py/pickle/web2py/r3LcWSbEbmM/TI_enYLZCQwJ now I edit it by hand (( четверг, 13 августа 2015 г., 6:17:27 UTC+3 пользователь Massimo Di

[web2py] Re: 2.12.1 is out

2015-08-13 Thread ermolaev . icreator
++ please separate admin (backoffice) layout.html and frontoffice layouts!!! ++ please in appadmin/db - in settings set counter or records to show on one pape 100 recs is too long ((( ++ please insert in admin/db in edit some record if that field is refernce to table - link to that table

[web2py] Re: 2.12.1 is out

2015-08-13 Thread ermolaev . icreator
- enable app/appadmin/manage/auth by default for user admin ??? no! - please set it as settings by default is desabled I use admin only on local machine! -- Resources: - http://web2py.com - http://web2py.com/book (Documentation) - http://github.com/web2py/web2py (Source code) -

[web2py] Re: Appconfig cast boolean

2015-08-13 Thread ermolaev . icreator
I talk about it! If in .ini file: migrate = False it conderted to string too and is True in python code! понедельник, 3 августа 2015 г., 3:51:52 UTC+3 пользователь Mark Graves написал: What is the proper syntax for appconfig.ini if the cast is a boolean. With a fresh install of web2py

[web2py] Re: 2.12.1 is out

2015-08-12 Thread ermolaev . icreator
if session stored in cookies - folders in /sessions folder created anyway (( пятница, 7 августа 2015 г., 19:59:13 UTC+3 пользователь Massimo Di Pierro написал: Changelog: - security fix: Validate for open redirect everywhere, not just in login() - allow to pack invidual apps and selected

[web2py] sessions in cookies

2015-08-07 Thread ermolaev . icreator
To *store sessions in cookies* instead you can do: session.connect(request,response,cookie_key='yoursecret',compression_level=None) I do that - but folders continue to created in app/sessions -- Resources: - http://web2py.com - http://web2py.com/book (Documentation) -

[web2py] Re: 2.12.1 is out

2015-08-07 Thread ermolaev . icreator
pickled.HIGHPROTOCOL - fixed? -- Resources: - http://web2py.com - http://web2py.com/book (Documentation) - http://github.com/web2py/web2py (Source code) - https://code.google.com/p/web2py/issues/list (Report Issues) --- You received this message because you are subscribed to the Google Groups

[web2py] Re: ajax error

2015-07-28 Thread ermolaev . icreator
{{for r in pays_unconf:}} {{if type(r) != type([]):}} {{=r}} {{continue}} {{pass}} {{print 'dfdfg'}} {{pass}} {{continue}} not work in {{for - pass}} ?? -- Resources: -

[web2py] Re: ajax error

2015-07-28 Thread ermolaev . icreator
error resolved -- Resources: - http://web2py.com - http://web2py.com/book (Documentation) - http://github.com/web2py/web2py (Source code) - https://code.google.com/p/web2py/issues/list (Report Issues) --- You received this message because you are subscribed to the Google Groups web2py-users

[web2py] view - for - continue - not work?

2015-07-28 Thread ermolaev . icreator
{{for r in pays_unconf:}} {{if type(r) != type([]):}} {{=r}} {{continue}} {{pass}} {{print 'dfdfg'}} {{pass}} {{continue}} not work in {{for - pass}} ?? -- Resources: -

[web2py] Re: ajax error

2015-07-28 Thread ermolaev . icreator
full code {{odd = None}} {{for r in pays_unconf:}} div class='row' style='padding-top:5px;padding-bottom:5px; {{=odd and 'background-color:lavender;' or ''}}' span class='small' {{='{:%Y-%m-%d

[web2py] Re: ajax error

2015-07-28 Thread ermolaev . icreator
in error details odd = None response.write('\r\n', escape=False) for r in pays_unconf: response.write(\r\ndiv class='row' style='padding-top:5px;padding-bottom:5px;\r\n, escape=False) response.write(odd and

[web2py] ajax error

2015-07-27 Thread ermolaev . icreator
in main view: {{=A(TAG.i(_class='fa fa-search', _style='width:100px;'), _id = 'go', _onclick='ajax('+URL('where', 'list')+', [addr], tag);$(this).addClass(disabled).children(i).removeClass(fa-search).addClass(fa-refresh fa-spin);',

[web2py] Re: ajax error

2015-07-27 Thread ermolaev . icreator
I need - on click tag A or on ENTER in any input of form - - call an ajax function in index.html view: form action=javascript: void(0); enctype=multipart/form-data method=post input class=blue-c name=addr placeholder=Input wallet addres

[web2py] Re: session pickle error

2015-07-27 Thread ermolaev . icreator
2.11.2-stable+timestamp.2015.05.30.16.33.24 (Running on Rocket 1.2.6, Python 2.7.6) I edit gluon/utils.py: def secure_dumps(data, encryption_key, hash_key=None, compression_level=None): if not hash_key: hash_key = sha1(encryption_key).hexdigest() try: dump =

[web2py] session pickle error

2015-07-24 Thread ermolaev . icreator
session.connect(request,response,cookie_key='...',compression_level=None) then addr = request.args(0) or request.vars.addr session.seeAddr = '%s' % addr someone raise error FrameworkTypeError: getattr(): attribute name must be string http://127.0.0.1:8000/admin/errors/ipay3#+

[web2py] Re: crash - session_pickled = pickle.dumps(self, pickle.HIGHEST_PROTOCOL) on 2.9.11

2015-07-24 Thread ermolaev . icreator
if session in cookies FrameworkTypeError: getattr(): attribute name must be string http://127.0.0.1:8000/admin/errors/ipay3#+ details http://127.0.0.1:8000/admin/ticket/ipay3/83.237.45.156.2015-07-24.18-05-30.9729eb5b-8b03-4670-820b-8e2cffa21e1b 1. 2. 3. 4. 5. 6. 7. 8. 9. 10. 11. 12. 13.

[web2py] html syntax error in elif

2015-07-20 Thread ermolaev . icreator
syntax error - why? {{if deal.name == 'phone +7': url = URL('to_phone','index')}} {{elif deal.name == 'WALLET': url = URL('to_wallet','index')}} {{else: url = URL('to_deal','index', args=[deal.id])}} Traceback 1. 2. 3. 4. 5. 6. 7. 8. 9. 10.

[web2py] Re: crash - session_pickled = pickle.dumps(self, pickle.HIGHEST_PROTOCOL) on 2.9.11

2015-07-20 Thread ermolaev . icreator
in /gluon/globals.py I edit all to pickle.dumps(self) , pickle.HIGHEST_PROTOCOL) and then web2py work good понедельник, 26 января 2015 г., 12:28:57 UTC+3 пользователь Dmitry Ermolaev написал: solve^^ replace all pickle.dumps with: session_pickled = pickle.dumps(self) ,

[web2py] Re: please edit response.generic_patterns code

2015-07-19 Thread ermolaev . icreator
I make new app and some controller in it without any view - only generic.html than I try open url to that coontroller from public - error rised Not found so I need to search WHY? one day I lose for solve WHY? may be open access to generic.html by default? вторник, 14 июля 2015 г., 21:01:21

[web2py] Re: crash - session_pickled = pickle.dumps(self, pickle.HIGHEST_PROTOCOL) on 2.9.11

2015-07-19 Thread ermolaev . icreator
This not work in this case will be work HTTP or HTTPS request only - that will be requested to server first If a first request to the server after restart it was HTTP - then all HTTPS request will raise error If a first request to the server after restart it was HTTPS - then all HTTP request

[web2py] AJAX on click not restore button

2015-07-19 Thread ermolaev . icreator
2.11.2.11.2-stable+timestamp.2015.05.30.16.33.24 (Running on Rocket 1.2.6, Python 2.7.9) please test: # -*- coding: utf-8 -*- from time import sleep def aj1(): session.t = (session.t or 0) + 1 sleep(2) return 'OK %s. Click once more!' % session.t def index(): h = CAT(

[web2py] Re: routes_onerror doesn't redirect to a custom controller when an invalid request error is produced

2015-07-19 Thread ermolaev . icreator
++11 how regirect if function or controller not found?? invalid function invalid controller routes.py in app_folder not worked (( routes_onerror = [ ('*/404', 'my_app/deal/index'), ... not worked ( -- Resources: - http://web2py.com - http://web2py.com/book (Documentation) -

[web2py] Re: AppConfig and Storage

2015-07-19 Thread ermolaev . icreator
why it better than code in /models/0.py ? response.db_cs = 'DB_CONN_STR' or DB_SC = 'DB_CONN_STR' четверг, 16 июля 2015 г., 5:29:03 UTC+3 пользователь Alex написал: thanks for the AppConfig implementation! this is really useful and allows easy configuration of db connections.

[web2py] Re: crash - session_pickled = pickle.dumps(self, pickle.HIGHEST_PROTOCOL) on 2.9.11

2015-07-19 Thread ermolaev . icreator
how solve it without edit pickle.HIGHEST_PROTOCOL ? вторник, 7 июля 2015 г., 8:42:50 UTC+3 пользователь Dmitry Ermolaev написал: This error in sessions and then raise in pickle пятница, 3 июля 2015 г., 23:50:25 UTC+3 пользователь Dmitry Ermolaev написал: I continue tests... Any request

[web2py] callback in A helper + input vars - how?

2015-07-17 Thread ermolaev . icreator
How by using A helper callback sen a data from inputs?? input type=text name=search / {{=A('Search', callback=URL('list', vars={'search'}), target='t', _class='button white-bgc')}} IF do by _onclick=ajax('list',['search], 't') - how disable button and show

[web2py] please edit response.generic_patterns code

2015-07-14 Thread ermolaev . icreator
I make simple app and upload it to server then all external request raise Not Found :( I kill a day for solve it problem Please edit in menu.py code: response.generic_patterns = ['*'] if request.is_local else [] #IS_LOCAL = request.is_local response.generic_patterns = not IS_LOCAL and

[web2py] Re: AppConfig and Storage

2015-07-14 Thread ermolaev . icreator
if I init some var in appconfig.ini: my_var1 = False and then use it in code: if my_var1: - will use as True so I need use in appconfig.ini that code: my_var1 = понедельник, 13 июля 2015 г., 19:35:59 UTC+3 пользователь Niphlod написал: sorry, what ?!?!?! On Sunday, July 12, 2015 at

[web2py] Re: AppConfig and Storage

2015-07-12 Thread ermolaev . icreator
in 0.py by using Storage: develop = False develop = 0 develop = '' all is work in appconfig.ini develop = False develop = 0 develop = '' setted as True !!! We need use now it: develop = (( -- Resources: - http://web2py.com - http://web2py.com/book (Documentation) -