Re: [web2py] Re: session not recognising membership

2014-03-09 Thread Johann Spies
As an experiment I deleted the membership to the group 'managers' and also the group 'managers' and recreated both. I also put auth.update_groups() in the model file db.py To make double sure I logged out and in again. Still the session shows no groups. Regards Johann On 10 March 2014 08:2

Re: [web2py] Re: session not recognising membership

2014-03-09 Thread Johann Spies
Niphlod and Massimo, Thanks for you replies. However the problem is not that the groups or membership were added during the session. This is a long standing database and at one stage (unfortunately I cannot point to the exact time) this behaviour started. auth.update_groups() makes no differenc

[web2py] Re: web2py conference

2014-03-09 Thread Cliff Kachinske
I could not come, but that is wonderful. Congratulations. On Sunday, March 9, 2014 9:14:02 PM UTC-4, Massimo Di Pierro wrote: > > I am happy to report that the 1st web2py conference is already full after > only 5 days since publishing about it: > > http://www.experts4solutions.com/web2py_co

[web2py] jinja2 -> web2py templates

2014-03-09 Thread Massimo Di Pierro
Until today I had not realized how similar Jinja2 is to web2py templates. In fact here is some code to convert the former to the latter: BEGIN jinja2web2py.py import sys import re code1 = re.compile('\{\{(.*?)\}\}',re.DOTALL) extends = re.compile('\{\%\s*extends\s+(.*?)\

[web2py] Re: multiple response.menu

2014-03-09 Thread Cliff Kachinske
To expand a little on Massimo's explanation. Find the reference to Cooperating Applications in the online manual. Once you have figured out which app will be the master app, you can put all the model files in the master apps models directory, then softlink the files you need in other directorie

[web2py] Re: Understanding translation and accept-language header?

2014-03-09 Thread User
So why do en-us and en-gb behave differently? That is, why is en-gb translated and en-us not translated? On Sunday, March 9, 2014 9:04:23 PM UTC-4, Massimo Di Pierro wrote: > > Because if T.current_languages: ['en'] it means you say that 'en' does not > need to be translated. This is the defaul

[web2py] Re: Having a hard time with auth.login events handlers...

2014-03-09 Thread Anthony
The problem is that you're actually calling your error handlers rather than just appending them to the settings list. Instead, just append the handler function, and Auth will call it for you at the appropriate time: auth.settings.on_failed_authorization.append(failedAuthHandler) auth.settings.lo

[web2py] Re: multiple response.menu

2014-03-09 Thread Massimo Di Pierro
On Friday, 7 March 2014 09:22:02 UTC-6, ureal frank wrote: > > Hi, > > I'm very new to web2py. > I've started watching Massimo's vimeo posts and I like what I am seeing, > even thinking some concepts are little strange at the beginning :) > > Well, my 3 questions are: > > - Can I define/use mult

[web2py] Re: Fixing wiki-menu

2014-03-09 Thread Massimo Di Pierro
Please open a ticket so we do not forget. IF this does not break anything (and probably does not) will go in. :-) On Friday, 7 March 2014 07:46:09 UTC-6, Андрей Генералов wrote: > > Hello! > > I started to build a site on web2py recently. > When using the wiki menu I encountered a problem. If I

[web2py] Re: Difference between windows and linux

2014-03-09 Thread Massimo Di Pierro
There should be no changes needed. On Friday, 7 March 2014 02:31:39 UTC-6, Jigar Mistry wrote: > > Hello all, > i am using web2py on windows and develop one app that required some > libraries of python.Now i want to run that app in ubuntu.So is there any > changes needed for that? > Is there any

[web2py] Re: register_onaccept not fired when using RPX

2014-03-09 Thread Massimo Di Pierro
please open a ticket. On Thursday, 6 March 2014 13:21:15 UTC-6, Alex Sears wrote: > > I added Janrain to my site by using RPX. I pretty much used similar code > as in the docs. I have callback functions being called after registering > and logging in using login_onaccept and register_onaccept.

[web2py] Re: How can I start contributing to web2py?

2014-03-09 Thread Massimo Di Pierro
The best way is start helping people on the mailing list and then check what people need and help us fix bugs. testing is also very important. On Thursday, 6 March 2014 09:17:46 UTC-6, Vikram Ahuja wrote: > > > -- Resources: - http://web2py.com - http://web2py.com/book (Documentation) - http://

[web2py] web2py conference

2014-03-09 Thread Massimo Di Pierro
I am happy to report that the 1st web2py conference is already full after only 5 days since publishing about it: http://www.experts4solutions.com/web2py_conference/default/index We will continue to register attendees but they will be put in a waiting list in case there are cancellations or

[web2py] IS_IN_DB() validator only validating on form fields?

2014-03-09 Thread Dan Why
Hi all, Working through the official documentation on Chapter 3, on Image blog example. in models.db.py db.define_table('image', ...) db.define_table('post', ...) ... db.post.image_id.requires = IS_IN_DB(db, db.image.id, '%(title)s') in controllers/default.py def show(): image = db.imag

[web2py] RuntimeError: no available driver pymongo

2014-03-09 Thread Mauro Couto
I'm trying trying to publish my application but I get the following message when I try to access the link. RuntimeError: no available driver (\ 'pymongo \') \ n ' Local and when she is working in the python shell is'll provide help ('modules') pymongo appear on the list, already tried several

[web2py] 2.9.4 glyphicon icon error

2014-03-09 Thread li Heng
I used to generate thrum up icon on UI, however, i got a down arrow shown. it must fund the wrong one, I test with class="glyphicon glyphicon-thumbs-up2", and nothing is shown. This is happing after I update. Now the icons for nav. dropdown menu showing "log in" "Log out"... are also messed

[web2py] IMAP URI regular expression

2014-03-09 Thread Pedro Ángel González
Hi. I'm quite a newbie to W2P and this group, so maybe this question/issue has already been addressed and I wasn't able to find it. My apologies if that's the case. While I'm not going to use IMAP support for some time, it's a feature I'm sure will come handy in the future. I've been toying aro

[web2py] multiple response.menu

2014-03-09 Thread ureal frank
Hi, I'm very new to web2py. I've started watching Massimo's vimeo posts and I like what I am seeing, even thinking some concepts are little strange at the beginning :) Well, my 3 questions are: - Can I define/use multiple menus inside one app? - While using PostgreSQL or so, can I share the sa

[web2py] Re: Using ZURB Foundation?

2014-03-09 Thread nezgmi
I wish you luck with your project. I think Zurb foundation is lightweight, very well thought out, elegant, readable, simple, has a nice menu system (better submenues), an excellent layout and according to some things I have heard, might even be simpler with some kinds of design scenarios where

[web2py] SQLFORM.smartgrid constraint based on a query which is not part of linked_tables list

2014-03-09 Thread Carlos Alba
Hi, On a Smartgrid I want to define a filter for a linked_tables)field BUT based on a query which is related to a table not part of the Smartgrid definition. I believe code speaks better than thousands words so, as follows : ... db.define_table('*orden*', Field('cliente', 'reference cliente'

[web2py] How can I start contributing to web2py?

2014-03-09 Thread Vikram Ahuja
-- 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" group. To unsub

[web2py] Fixing wiki-menu

2014-03-09 Thread Андрей Генералов
Hello! I started to build a site on web2py recently. When using the wiki menu I encountered a problem. If I use the Cyrillic alphabet in the name of the menu item, they are not displayed. propose to amend the function gluon/tools.py, 5745: regex = re.compile ('[\ r \ n \ t] * (? P (\ s * \

[web2py] Having a hard time with auth.login events handlers...

2014-03-09 Thread Sébastien Loix
Hello, I am quiet new to Web2py and I am having a hard time with the Auth events handlers. I am trying to check if a user tried to login before hitting the page but I can't get to know it. This is my index Controller: def index(): return dict(form=auth.login()) In the view I have a carrou

[web2py] Why is my editor so small? I can only see 9 lines!

2014-03-09 Thread lukedcify
*Why is it so small and how can I make it bigger? Thank you!* -- Resources: - http://web2py.com - http://web2py.com/book (Documentation) - http://github.com/web2py/web2py (Source code) - ht

[web2py] register_onaccept not fired when using RPX

2014-03-09 Thread Alex Sears
I added Janrain to my site by using RPX. I pretty much used similar code as in the docs. I have callback functions being called after registering and logging in using login_onaccept and register_onaccept. Everything works great. However, I have noticed that my function attached to register_

Re: [web2py] Re: RFC: web2py-based workflow engine

2014-03-09 Thread Dileepa Wijayanayake
> > check out cDevWorkflow at > http://www.cDevWorkflow.com > -- 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

Re: [web2py] pg8000 driver that comes with web2py 2.8.2 is not supporting JSON field type?

2014-03-09 Thread Tony Locke
Thanks for your list (and patch) Mariano, that's very useful. I've opened an issue for it at: https://github.com/mfenniak/pg8000/issues/30 On Monday, 3 March 2014 20:26:15 UTC, Mariano Reingart wrote: > > Including contrib in sys.path would be interesting but there could be > collisions (for ex

[web2py] Difference between windows and linux

2014-03-09 Thread Jigar Mistry
Hello all, i am using web2py on windows and develop one app that required some libraries of python.Now i want to run that app in ubuntu.So is there any changes needed for that? Is there any difference of using web2py on windows and linux? Thanks -- Resources: - http://web2py.com - http://web2py

[web2py] Re: 2.9.4 stable error when calling login_bare.

2014-03-09 Thread Massimo Di Pierro
fixed in trunk. thanks for the patch. On Saturday, 8 March 2014 21:40:35 UTC-6, Matt wrote: > > Attached code change to the issue also > > On Sunday, March 9, 2014 4:25:26 PM UTC+13, Matt wrote: >> >> Thanks... Have raise an issue: >> >> https://code.google.com/p/web2py/issues/detail?id=1897 >> >>

[web2py] Re: Understanding translation and accept-language header?

2014-03-09 Thread Massimo Di Pierro
Because if T.current_languages: ['en'] it means you say that 'en' does not need to be translated. This is the default behaviour. On Friday, 7 March 2014 17:49:23 UTC-6, User wrote: > > I made a bare bones app based on the welcome app: > > In db.py: > T.current_languages = ['en'] > > > in en-us.py

[web2py] Re: current trunk using memdb results in crash

2014-03-09 Thread Massimo Di Pierro
This is fixed in trunk. On Friday, 7 March 2014 21:11:08 UTC-6, Leonardo Pires Felix wrote: > > Looks like that this is happening with the REDIS too, Upgraded from 2.8.3 > to 2.9.4 And the error persist. > > Traceback (most recent call last): > File > "/home/leonardo/domains/cef03.com/arquivos

[web2py] Re: Pre-registering users

2014-03-09 Thread Massimo Di Pierro
One way is to create accounts in auth.auth_user and the call for user in newly_registered_users: auth.messages.reset_password = "I have shared a document with you click on the link %(link)s to reset your password, your document is . bla bla bla" auth.email_reset_password(user) On

[web2py] Re: meta.description = None?

2014-03-09 Thread Massimo Di Pierro
done On Friday, 7 March 2014 15:49:40 UTC-6, User wrote: > > Issue created: http://code.google.com/p/web2py/issues/detail?id=1891 > > On Friday, March 7, 2014 4:34:54 PM UTC-5, User wrote: >> >> >> On Friday, March 7, 2014 4:08:56 PM UTC-5, Anthony wrote: >>> >>> On Friday, March 7, 2014 2:58:19 P

[web2py] Re: Column width

2014-03-09 Thread Kiran Subbaraman
Instead of tweaking the column widths, did you try ? On Monday, March 10, 2014 12:17:25 AM UTC+5:30, Richard wrote: > > Hello, > > I have restarted developing a full-screen app. We want to use the full > 1900 pixels of a HD screen. > My idea is to increase the 95px column width of a large bootstr

[web2py] Re: Column width

2014-03-09 Thread Richard
Hello, I have restarted developing a full-screen app. We want to use the full 1900 pixels of a HD screen. My idea is to increase the 95px column width of a large bootstrap column. @Annet , I do use the default left-middle-right layout. How can I do this? Thank you, Richard On Friday, August 2

[web2py] Re: how to get scheduler_run.id for reporting after setting task via scheduler.queue_task()

2014-03-09 Thread Andrey K
Hi Niphlod, Thanks for your precise recipe to my query. I agree that getting asynchronous job results is not the best practice - so I change my approach. But your answer is still valuable - I used the same approach to stop tasks. But since I tried to move from web2py 2.7 to 2.9 my app is does

[web2py] Re: how to resize an expand_one rendered content

2014-03-09 Thread Paolo Caruccio
A possible solution could be the following: 1) wrap the iframe with a div with class "w2p-video-container" 2) set your css rules by targeting div.w2p-video-container>iframe For example: in the view {{=XML(expand_one('http://www.youtube.com/watch?v=7yvt2Pt6LRA',cache.ram('mycache',lambda:dict(),

[web2py] Re: Problem with upgrade to 2.9.4 with SQLTABLE

2014-03-09 Thread Niphlod
that's because you're using the most unrecommended way to refer to an aggregate (relying on a fixed representation...). Did you try count = db.pagos.count() totalPagos = SQLTABLE(db((db.pagos.created_on>inicio)&(db.pagos.created_on > All code work with web2py 2.8.3 but when we upgrade to web2py