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
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
++ 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
- 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)
-
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
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
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)
-
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
{{for r in pays_unconf:}}
{{if type(r) != type([]):}}
{{=r}}
{{continue}}
{{pass}}
{{print 'dfdfg'}}
{{pass}}
{{continue}} not work in {{for - pass}} ??
--
Resources:
-
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
{{for r in pays_unconf:}}
{{if type(r) != type([]):}}
{{=r}}
{{continue}}
{{pass}}
{{print 'dfdfg'}}
{{pass}}
{{continue}} not work in {{for - pass}} ??
--
Resources:
-
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
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
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);',
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
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 =
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#+
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.
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.
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) ,
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
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
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(
++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)
-
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.
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
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
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
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
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)
-
30 matches
Mail list logo