Re: [web2py] Re: REF: DAL Catching errors

2014-01-10 Thread Teddy Nyambe
Tried the example you gave me: Try: Except IntegrityError: I am getting unresolved reference 'IntegrityError' Kind regards, On Thu, Jan 9, 2014 at 6:01 PM, Teddy Nyambe software@gmail.com wrote: Thanx Anthony, I will use [try] On 9 Jan 2014 15:52, Anthony

[web2py] help with request

2014-01-10 Thread Tarun Kumar
Hi! people I am new to web2py and web development. I am a bit confused about the request object. In its variables which can be accessed by request.vars.variable_name are the values stored only for the most recent request or for all the past requests. Considering the example given in web2py

[web2py] Re: !! NEW ADMIN !!

2014-01-10 Thread Alan Etkin
El lunes, 6 de enero de 2014 18:19:54 UTC-3, samuel bonill escribió: Admin Plus(A-Plus) is a web2py plugin that provides an easy-to-use interface for managing your data Wait, isn't this a similar project than this another? https://groups.google.com/d/msg/web2py/9ajKQChEmHQ/lNzHUqTKaa8J --

Re: Error with virtual field (was: Re: [web2py] [ANN] Started development on web2admin)

2014-01-10 Thread rif
I am checking it right now, be back soon. -rif vineri, 10 ianuarie 2014, 01:28:37 UTC+2, Manuele a scris: Il 10/09/12 15:49, rif ha scritto: I started the development of a new django-like admin interface. You can find it here: https://github.com/rif/web2admin It is very basic

[web2py] Writing Web2Py specification and finding free lance Web2Py coders

2014-01-10 Thread Timothy Swieter
I've got a couple web ideas I'd like to put into motion. Some work will be done by myself, other work I'd like an expert (or at least someone more knowledgable than me) to do. I'm thinking about writing a specification of sorts. Is there any advice or templates recommended for creating a

[web2py] Re: DAL auth_user usage problem

2014-01-10 Thread Alan Etkin
AttributeError: 'Table' object has no attribute '('username', '')' There's an now closed issue that is possibly related to this http://code.google.com/p/web2py/issues/detail?id=1849 On what version did you try it? -- Resources: - http://web2py.com - http://web2py.com/book (Documentation)

[web2py] Re: Writing Web2Py specification and finding free lance Web2Py coders

2014-01-10 Thread Ruud Schroen
http://experts4solutions.com/ Is this what you are looking for? On Friday, January 10, 2014 10:59:10 AM UTC+1, Timothy Swieter wrote: I've got a couple web ideas I'd like to put into motion. Some work will be done by myself, other work I'd like an expert (or at least someone more

[web2py] Set default login controller

2014-01-10 Thread Ruud Schroen
I have my login form in the index page. Is there a way to set the default login page to index? For example when try to open a page where you need to be logged in. -- Resources: - http://web2py.com - http://web2py.com/book (Documentation) - http://github.com/web2py/web2py (Source code) -

Re: Error with virtual field (was: Re: [web2py] [ANN] Started development on web2admin)

2014-01-10 Thread rif
Unfortunately it seems to be a web2py grid/smartgrid bug. I opened a ticket here: http://code.google.com/p/web2py/issues/detail?id=1851 Meanwhile please note that defining an old style virtual field does not break the smartgrid: class MyVirtualFields(object): def testfield(self):

Re: Error with virtual field (was: Re: [web2py] [ANN] Started development on web2admin)

2014-01-10 Thread rif
I meant a few updates to web2admin :) vineri, 10 ianuarie 2014, 13:46:24 UTC+2, rif a scris: Unfortunately it seems to be a web2py grid/smartgrid bug. I opened a ticket here: http://code.google.com/p/web2py/issues/detail?id=1851 Meanwhile please note that defining an old style virtual field

[web2py] Re: !! NEW ADMIN !!

2014-01-10 Thread rif
It sure looks like it, the more options the better :) Anyhow if there are any features in A-Plus missing in web2admin please let me know, I'll try to keep up. -rif vineri, 10 ianuarie 2014, 11:26:48 UTC+2, Alan Etkin a scris: El lunes, 6 de enero de 2014 18:19:54 UTC-3, samuel bonill

[web2py] Re: !! NEW ADMIN !!

2014-01-10 Thread Remco Boerma
Github complains about the file being to big? Can i download it somewhere else? https://github.com/pyner/admin_plus/blob/master/web2py.plugin.admin_plus.w2p -- Resources: - http://web2py.com - http://web2py.com/book (Documentation) - http://github.com/web2py/web2py (Source code) -

[web2py] Re: !! NEW ADMIN !!

2014-01-10 Thread rif
You can clone the repo git clone https://github.com/pyner/admin_plus.git And you will have the w2p file available in the cloned directory. vineri, 10 ianuarie 2014, 14:13:06 UTC+2, Remco Boerma a scris: Github complains about the file being to big? Can i download it somewhere else?

[web2py] request.uri_language

2014-01-10 Thread Gael Princivalle
Hello all. I'm in trouble with language management. Here is my routes.py at web2py root (standard): routers = dict( # base router BASE=dict( default_application='welcome', ), ) Here is my routes.py in the test application (standard). from fileutils import abspath from

[web2py] Re: !! NEW ADMIN !!

2014-01-10 Thread Alan Etkin
You can clone the repo git clone https://github.com/pyner/admin_plus.git Or use this https://github.com/pyner/admin_plus/blob/master/web2py.plugin.admin_plus.w2p?raw=true -- Resources: - http://web2py.com - http://web2py.com/book (Documentation) - http://github.com/web2py/web2py (Source

[web2py] Re: db modul creating question types

2014-01-10 Thread Timo Bahner
I'm trying to do something like this: TEXT = 'text' RADIO = 'radio' SELECT = 'select' QUESTION_TYPES = ( (TEXT, 'text'), (RADIO, 'radio'), (SELECT, 'checkboxes'),) def get_choice(): choices = choices.split(',') choices_list = [] for c in choices: c = c.strip()

[web2py] Re: Set default login controller

2014-01-10 Thread Anthony
auth = Auth(db, function='index') will move all the Auth actions to the index function. auth.settings.login_url = URL('default', 'index') will move just the login action (i.e., redirects for login will go there). Consider that with this approach, you will be generating a login form on every

Re: [web2py] Re: REF: DAL Catching errors

2014-01-10 Thread Anthony
IntegrityError is defined by the database driver, so needs to be imported. Actually, I forgot, we made this easier, so it is not adapter-dependent -- you can do: try: ... except db._adapter.driver.IntegrityError: ... Another option is: def insert_error_handler(table, fields, error):

Re: [web2py] Re: !! NEW ADMIN !!

2014-01-10 Thread samuel bonill
Hi, I tried this in my 'test' app which has just 2 tables (blog_post, emp). It worked great. Thanks. When I try in this my actual app with 50+ tables, the list of tables displayed in

Re: [web2py] help with request

2014-01-10 Thread Jonathan Lundell
On 10 Jan 2014, at 12:16 AM, Tarun Kumar reach.tarun.h...@gmail.com wrote: Hi! people I am new to web2py and web development. I am a bit confused about the request object. In its variables which can be accessed by request.vars.variable_name are the values stored only for the most recent

[web2py] Re: Scheduler: Error retrieving status?

2014-01-10 Thread Niphlod
what db are you using ? that error usually pops up when the scheduler can't access the scheduler_* tables. On Friday, January 10, 2014 2:09:26 AM UTC+1, User wrote: I'm just getting started with the scheduler and I'm getting an error when I start it on windows 7: C:\www\web2pypython

[web2py] Re: Error with virtual field

2014-01-10 Thread Manuele Pesenti
Il 10/01/14 12:47, rif ha scritto: I meant a few updates to web2admin :) thank you very mutch rif for your interest!! :) I'll use old style viertual fields for the moment M. -- Resources: - http://web2py.com - http://web2py.com/book (Documentation) - http://github.com/web2py/web2py (Source

[web2py] Re: auth.enable_record_versioning

2014-01-10 Thread Niphlod
auth.record_versioning is just callbacks on steroids :P On Friday, January 10, 2014 5:12:58 AM UTC+1, Jayadevan M wrote: Great. You guys have thought about everything, huh? :) On Friday, January 10, 2014 1:50:36 AM UTC+5:30, Niphlod wrote: make your own versioning with database callbacks.

[web2py] Re: Scheduler: Error retrieving status?

2014-01-10 Thread User
postgresql. Also my app which uses same database works and I can see the tables and the row in scheduler_task table from appadmin On Friday, January 10, 2014 9:57:25 AM UTC-5, Niphlod wrote: what db are you using ? that error usually pops up when the scheduler can't access the scheduler_*

[web2py] Re: Multiple File Upload Form Works! - Need Help with validation for multiple files

2014-01-10 Thread Brando
From my research, it looks like maybe an onvalidation function is the way to do this. Can someone confirm this? Something like: def validate_upload(): passed_validation = [] files = request.vars['upload_files'] for file in files: extension_file = file.split('.')[-1]

[web2py] Re: db modul creating question types

2014-01-10 Thread Paolo Caruccio
My suggestion: First we change the 'question' table definition as follows db.define_table('question', Field('survey', db.survey), Field('title', length=200), Field('created', 'datetime', default=request.now, writable=False), Field('question_type', 'string', default='text'),

[web2py] keepvalues - need help with this

2014-01-10 Thread subbaraman . kiran
Hello All, The *design *is: I have a custom form with the a controller that inserts/updates a table. Tthe form accepts data, and on successful submission of this form, it stays on the same page (there are no redirects to another page or form) *Issue*: The problem am seeing is, when I update

[web2py] Re: Need more than one value to unpack

2014-01-10 Thread Rufus
so, the string object, val is not composed of two substrings separated by a space. There are no spaces in the val string, based on that error. The way the statement looks, I would say it is expecting a time string of the format: dd/mm/yy hh:mm or similar On Tuesday, January 7, 2014 1:10:45

[web2py] Re: Scheduler: Error retrieving status?

2014-01-10 Thread User
I created a bare bones app and the scheduler seems to work without error. Not really sure what's happening with the problem app but if I had to guess I'm thinking it might be related to using db._common_fields.append(standard_fields) where standard_fields is a table with fields such as

[web2py] Re: Scheduler: Error retrieving status?

2014-01-10 Thread User
Ok that appears to have been the problem. Getting rid of db._common_fields.append(standard_fields) fixed it. Didn't hone in on the exact problem but maybe it's because I had not null on created_by, modified_by fields which defaulted to auth.user_id. Does a scheduled task even have a concept

[web2py] Re: Wiki.auth 401 error

2014-01-10 Thread jimbo
Pretty much give up on this, the wiki looked very promising when i first tried it, seems to be dead now, Which is a pity as it looked a very good option when it was working. On Sunday, 22 December 2013 19:54:25 UTC, jimbo wrote: This used to work, activate the built in wiki, then register,

[web2py] Re: Multiple File Upload Form Works! - Need Help with validation for multiple files

2014-01-10 Thread Brando
Success! Here is how you can validate all files in a multiple file upload. In this example if one document does not validate then the entire validation fails. You could easily just drop the files that don't validate and only let the accepted files through for processing. *If anyone has a

Re: [web2py] Re: REF: DAL Catching errors

2014-01-10 Thread Teddy Nyambe
thanks. it worked. but where is this documented? On Fri, Jan 10, 2014 at 4:09 PM, Anthony abasta...@gmail.com wrote: IntegrityError is defined by the database driver, so needs to be imported. Actually, I forgot, we made this easier, so it is not adapter-dependent -- you can do: try:

Re: [web2py] Re: REF: DAL Catching errors

2014-01-10 Thread Anthony
Another one of our great undocumented gems. :-) -- 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

Re: [web2py] Re: REF: DAL Catching errors

2014-01-10 Thread Teddy Nyambe
Hi Anthony! Those gems we need to know!!!, since i have to extract undocumented details on this list, I would like to find out how i can then get system generated messages cause there are many integrity error descriptions...instead of me having one message like this: try: ... except

[web2py] Re: Writing Web2Py specification and finding free lance Web2Py coders

2014-01-10 Thread Timothy Swieter
Ruud - I'll take a look at the organization you linked too. On the face of it, this may be who I am looking for. Have you any experience with them? How are they? What is their process of definition and development? Any other freelancers or commercial business that develop on Web2Py