[web2py] Re: gluon/Portlocker.py LockedFile BROKEN!

2015-03-09 Thread danny
;>> translation file. >>> >>> I don't understand why the code does a seek(0)/truncate if not opened >>> for truncate, maybe it's >>> a windows issue? It's not working on UNix! >>> >>> danny >>> >>> -- Re

[web2py] Re: gluon/Portlocker.py LockedFile BROKEN!

2015-03-09 Thread danny
7.2, seek(0) on an opened file for append does not seek to > the begining - read the manual. > > so LockedFile(...) used by languages, is screwing up the language > translation file. > > I don't understand why the code does a seek(0)/truncate if not opened for > tr

[web2py] Re: gluon/Portlocker.py LockedFile BROKEN!

2015-03-09 Thread danny
is screwing up the language > translation file. > > I don't understand why the code does a seek(0)/truncate if not opened for > truncate, maybe it's > a windows issue? It's not working on UNix! > > danny > > -- Resources: - http://web2py.com - http://web2p

[web2py] gluon/Portlocker.py LockedFile BROKEN!

2015-03-08 Thread danny
t's a windows issue? It's not working on UNix! danny -- 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 su

[web2py] where are Massimo's lesson sources?

2015-02-22 Thread danny
Hi, I'm watching Massimo's lessons, and was wondering if there are sources for the applications he is teaching thanks, danny -- Resources: - http://web2py.com - http://web2py.com/book (Documentation) - http://github.com/web2py/web2py (Source code) - https://code.google.com/p/web

[web2py] Re: user_id is none when session is db

2014-10-14 Thread danny
SOLVED! I moved the session.connect(...) from the end of my db.py to the top, and now it's ok! thanks, danny On Wednesday, October 15, 2014 8:29:57 AM UTC+3, da...@mail.hebrew.edu wrote: > > > I created a new application, changed db.py so that session.connect(…) uses > post

[web2py] Re: user_id is none when session is db

2014-10-14 Thread danny
problem for a long time. thanks, danny On Tuesday, October 14, 2014 4:46:59 PM UTC+3, Anthony wrote: > > I cannot reproduce this problem. Could you attach a minimal app the > reproduces the behavior? > > Anthony > > On Tuesday, October 14, 2014 9:19:59 AM UTC-4, da...@mai

[web2py] Re: user_id is none when session is db

2014-10-14 Thread danny
sorry, some correction: the value of auth.user is None, auth is an object. which explains why auth.is_logged_in() is False even after a successful login On Tuesday, October 14, 2014 2:25:20 PM UTC+3, Anthony wrote: > > What exactly is None (i.e., what do you mean that auth is None)? Is auth

[web2py] Re: user_id is none when session is db

2014-10-14 Thread danny
ile, all is ok, but when using db > (session.connect(..., db)) after loginin, > the user_id is None. (in glueon/tools.py) > btw, I'm using the latest version of web2py > > cheers, > danny > > > > -- Resources: - http://web2py.com - http://web2py.com/book (Documen

[web2py] user_id is none when session is db

2014-10-13 Thread danny
hi, when session is stored in file, all is ok, but when using db (session.connect(..., db)) after loginin, the user_id is None. (in glueon/tools.py) btw, I'm using the latest version of web2py cheers, danny -- Resources: - http://web2py.com - http://web2py.com/book (Documentation) -

[web2py] form in hebrew

2014-02-01 Thread danny
so far I have great success using web2py and forms, but my knowledge of html/css etc tends to zero, so is there a simple way to have a form in hebrew? i.e hebrew input data : hebrew field name thanks, danny -- Resources: - http://web2py.com - http://web2py.com/book (Documentation) - http

[web2py] pam authentication works?

2013-04-19 Thread danny
d(pam_auth) solved that, then some more changes in gluon/contrib/login_methods/pam_auth.py finally got it working. so what gives? cheers, danny -- --- You received this message because you are subscribed to the Google Groups "web2py-users" group. To unsubscribe from this group and s

[web2py] Re: parent child tree query logic

2013-03-11 Thread danny
Perhaps you can try other methods to model parent-child relationship? These are related to Closure Table but also talk about other methods: http://stackoverflow.com/questions/192220/what-is-the-most-efficient-elegant-way-to-parse-a-flat-table-into-a-tree http://dirtsimple.org/2010/11/simplest-wa

[web2py] Re: session.flash is None when manually logging out

2012-03-06 Thread danny
zed, such as the one for logging out: auth.messages.logged_out = T('You are logged out.') Now session.flash (actully response.flash after the redirect) will have whatever message I set. On Wednesday, 7 March 2012 00:02:08 UTC, danny wrote: > > Hello. I'm trying to customiz

[web2py] session.flash is None when manually logging out

2012-03-06 Thread danny
Hello. I'm trying to customize the login and register forms as follows: - user() function does not return auth(), instead display two forms separately like this: {{if not auth.is_logged_in():}} {{login_form = auth.login()}} {{=login_form.custom.begin}} ... {{=

[web2py] Re: 'web2py.js' and 'web2py_ajax.js': Which one to use?

2011-12-19 Thread danny
ile. You > can delete it. Note, we didn't change the name of web2py_ajax.html in the > views folder because that would have created more difficulties with > backward compatibility of layout plugins. > > Anthony > > > > > > > > On Monday, December 19, 2011 9:41:

[web2py] 'web2py.js' and 'web2py_ajax.js': Which one to use?

2011-12-19 Thread danny
Hi, in the lastest version of web2py (can't remember if this is the case for older versions), there are two files that are nearly identical in the default applications (admin, examples, welcome) js folder: 'web2py.js' and 'web2py_ajax.js'. It looks like 'web2py.js' is the newer of the two, should