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
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
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
--
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
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
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)
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
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)
-
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):
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
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
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)
-
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?
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
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
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()
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
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):
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
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
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
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
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.
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_*
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]
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'),
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
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
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
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
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,
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
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:
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
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
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
36 matches
Mail list logo