Can you show your code?
On Friday, August 29, 2014 12:54:48 AM UTC-4, Sarbjit wrote:
>
> I have an application having the layout as :-
>
> INDEX controller generates a view which have some drop-down and calls
> another controller RESULTS :
>
> Snippet :
> action={{=URL('default','results')}} >
>
Hi Anthony,
Thanks for response.
It would be difficult for me to share the exact code (my company specific
data and lot of extra code etc)
However, I am providing code snippets of the main portions that I feel are
causing this problem and work flow (i have changed the variable names):-
P
More Updates :
I tried debugging it using Eclipse and I observed that whenever the
document expires, breakpoint is not hit. (results function).
Also I observed that once I use the Back button from within the grid field,
it starts working from the browser also but only for current selection
(fr
Ahh yes that would explain it. Thanks for the tip, Anthony!
Also, submitted the issue:
https://code.google.com/p/web2py/issues/detail?id=1971
On Thursday, August 28, 2014 3:36:17 PM UTC-7, Anthony wrote:
>
> Looks like a bug. The login() method does the following:
>
> passfield = setting
The details of this problem are explained more thoroughly here:
https://groups.google.com/forum/#!topic/web2py/13gozLyE3Eo
On Thursday, August 28, 2014 1:11:47 PM UTC-7, Mark Li wrote:
>
> There seems to be a problem with this implementation
>
> For example, if you have
> def page():
> login
To make this easier to debug, it would be helpful if you could attach a
minimal app that reproduces the behavior.
On Friday, August 29, 2014 11:32:20 AM UTC-4, Sarbjit wrote:
>
> More Updates :
>
> I tried debugging it using Eclipse and I observed that whenever the
> document expires, breakpoint
I think it should, but I'm assuming that's not how it is in practice.
On Thursday, August 28, 2014 11:55:26 PM UTC-7, lyn2py wrote:
>
> Thanks Derek. If the "uuid" field were specified, shouldn't the specified
> field be used, the way a uuid field is used, to de-duplicate records?
--
Resources:
Dear list,
I have two related questions:
1. Basically I have one view (C) which contains two forms A and B. The
dynamic form A is created by controller A and added by web2py_component
(Ajax call). The static form B is created by controller B and added via
helper LOAD. I want to submit both fo
Hello Derek. Yesterday I replied to the discussion but my post never made
it to the public, don't know why.
Newline characters are indeed in the queries. They're there because I used
triple-quotes to create query string. I also tried removing them, didn't
help.
And I can't reproduce the slowness
Some time ago I posted question on stackoverflow, and I still don't have a
solution. I haven't found solution on the google mail list.
Could someone help me:
http://stackoverflow.com/questions/21433391/web2py-ajax-login-wrong-password-redirects-to-wrong-page
--
Resources:
- http://web2py.com
-
Hi!
I'm making Android application which connects to my simple web2py
application. I'm successful at making GET, POST, PUT and DELETE calls for
table that I have made. However, when I try to make POST or PUT call for
auth_user table, nothing happens.
This is my code for RESTful (I found it her
Well actually you are right. I just thought about web2py as a big hub of
applications, where each application shares the very same interpreter,
which I do not like because of aforementioned reasons.
In django I'd simply create another instance to solve that problem and
include a URL to it some
It's in the query, it's because of I used triple-quotes while constructing
the query. I tried removing them, didn't help. I can't even reproduce it on
the console.
...
> raw_data = dbs.executesql(query, as_dict=True) #Takes more than 30 seconds
> from gluon.debug import dbg
> dbg.set_trace()
> #
Hello to everybody,
I have built a quiz that randomlycreates questions.
Each time a user submits it's answer, the app redirects to another question.
When the user does not want to continue to another question it presses a
button "exit quiz" and the app redirects to another url.
When the user pres
Why does the documentation refer to comboboxes when in fact they are just
run-of-the-mill dropdown boxes? This is confusing.
For that matter, are there any suggestions out there for *actual* dropdown
boxes, i.e. editable dropdown boxes -- the kind that combine the
functionalities of an input fi
I am using postgres database with web2py on Linode. I have tried simulating
the same volume of requests on
a barebones hello world web2py app and the error does not show up so I am
suspecting it has to do with the database
or the interworkings between web2py and the database?
On Tuesday, August
I tried using strace to see what the process was doing and this is what I
found.
Not sure it's of any help or not?
[root@centos-63 ~]# !ps
ps -ef | grep web
root 8228 7923 0 13:21 pts/500:00:03 python web2py.py -K APITool2
root 8425 8228 0 13:58 pts/500:00:00 python web2py.
this is my client wants it that way. it's stupid but I can not do anything.
no it is not authentication is just exchanges of information between the
two applications do you have idea ?
Le lundi 25 août 2014 19:29:25 UTC+2, Derek a écrit :
>
> Sure, why not. But the question is, why? If it's authe
Example : I have a form called Login
Login
Email address
Password
Login
Register
I want to Process using web2py
--
Resources:
- http://web2py.com
- http://web2py.com/book (Documentation)
- http://github.c
Inspired on Jim's post, this works for me(o delete or create at parent
table level):
currentTable = request.args(1)
if currentTable:
deletable= create= True
else:
deletable= create= False
grid = SQLFORM.smartgrid(...
create=create,deletable=deletable,
Hi, i'm new to web2py, i'm experimenting some things, I made a new
controller called user to handle login, reset password, profile update and
password changing, this way i'm not using default controller, what i'm
trying to do now is to be able to create new users that can log in using
web2py au
I am able to cause an error trying to delete a wiki page for the built-in
wiki if I turn versioning on.
This example causes an error in web2py 2.9.5:
Starting with a new application, name it "wiki_test" and do the following:
# in db.py, add
auth.wiki(resolve=False)
auth.enable_record_versionin
Hello
I have the following in models:
db.define_table('senders',
Field('sender','string',length=80,label="Sender"))
db.define_table('documents',
Field('description','text',requires=IS_LENGTH(256,1),label="Description"),
Field('header_date','date',label="Header Date"),
Field('rec
Hello,
I have a csv that comes from another program that I then import into a
web2py database. It has header names with spaces and that seems to prevent
it from being imported. I can make a macro in excel to format it before it
gets imported, but ideally that wouldn't be necessary mainly becaus
On Thursday, 21 August 2014 16:34:46 UTC+1, Michael Beller wrote:
>
> Web2py has an 'upload' field type that helps you manage file uploads.
> "Upload" is a little bit of a misnomer because you can select the file
> path to store the file (or an existing path) and the blob is not stored in
> t
Hello everyone,
My situation. I would like to approve every user that signs up with my
site. I understand that I should set the following to True (in db.py):
auth.settings.registration_requires_approval = True
After I approve the user, I would like to insert a value into the database.
I trie
Hello Web2py , I'm new to web2py can you please help me in this problem
1. I want to use angularJS +Bootstrap+ Web2py
2. I want to separate the web2py from the view ie. angularJS and Bootstrap
3. All Views Should be handle by angularJS + Bootstrap kind of RESTFUL
SERVICES
4. This is the first prob
Thanks for the idea, it will do for now!
Den tisdagen den 26:e augusti 2014 kl. 15:20:26 UTC+2 skrev Leonel Câmara:
>
> I guess a quick solution for you, could be to monkeypatch
> isProgrammingError to something like this
>
> def isProgrammingError(self, exception):
> return exception.__c
can you give me example please ?
Le lundi 25 août 2014 21:08:47 UTC+2, Niphlod a écrit :
>
> or you can just use migrate=False and leave it be.
>
> On Monday, August 25, 2014 7:49:32 PM UTC+2, Leonel Câmara wrote:
>>
>> Ohh then you also need to pass the "folder" argument to your DAL as the
>> sq
If I use the builtin wiki feature and turn on record versioning, I get
error when I delete a wiki page which has a tag. Is there a way around this
issue?
Recipe to duplicate the error in web2py 2.9.5:
1) Create a new application. Call it 'test_wiki'.
2) Make the following modifications:
add th
AppA can define
dbA = DAL('connect to a.')
dbB = DAL('connect to b.')
and AppB can do the the same
dbA = DAL('connect to a.')
dbB = DAL('connect to b.')
each model (in A and B) need to define the table that they need. You should
also disable migrations because you do not want t
I am not sure I fully understand.
Both in web2py and Django you create multiple instances of the server
(either by replicating the code or by simply starting it twice) and you can
have them serve different applications. If you do you have them see
different virtualenvs. In web2py you also have
import csv
rows = [row for row in csv.reader(open(file))]
rows[0] = map(lambda h:h.replace(' ','_'), rows[0])
On Tuesday, 26 August 2014 09:07:46 UTC-5, Angelo Mellos wrote:
>
> Hello,
>
> I have a csv that comes from another program that I then import into a
> web2py database. It has header nam
But now we simply do
web2py.py -G GAE
and everything is taken care for you you automatically.
On Wednesday, 27 August 2014 08:45:43 UTC-5, Richard Penman wrote:
>
> Would be worth mentioning this in the book.
>
>
> On Saturday, January 4, 2014 3:25:17 AM UTC+1, Massimo Di Pierro wrote:
>>
>> It
Please open a ticket. Which python version?
On Thursday, 28 August 2014 08:19:42 UTC-5, Maciej S wrote:
>
> Some time ago I posted question on stackoverflow, and I still don't have a
> solution. I haven't found solution on the google mail list.
>
> Could someone help me:
>
> http://stackoverflow.
You do not need to create your own controller for that you can access
/app/appadmin/manage/auth
On Thursday, 28 August 2014 16:09:20 UTC-5, Leonardo Silvano wrote:
>
> Hi, i'm new to web2py, i'm experimenting some things, I made a new
> controller called user to handle login, reset password, pro
Something is wrong here. Can you explain at higher level what are you
trying to achieve?
On Friday, 29 August 2014 16:10:59 UTC-5, Andrey K wrote:
>
> Dear list,
>
> I have two related questions:
>
> 1. Basically I have one view (C) which contains two forms A and B. The
> dynamic form A is creat
I am struggling to use belongs on GAE+NDB it appears that:
quests =
db(db.question.level.belongs([1])).select(db.question.id,db.question.level)
is valid however
quests = db(db.question.id.belongs([1])).select(db.question.id,
db.question.level) generates an error along the lines of
EXAMPLE:
http://web2py.com/books/default/chapter/29/07/forms-and-validators#SQLFORM-in-HTML
Mi model:
db.define_table('solicitud',Field('ape', requires=IS_NOT_EMPTY()))
Mi controler:
def solicitud():
form = SQLFORM(db.solicitud)
if form.accepts(request,session=None, formname=None):
I'm using the restful pattern with my web2py app today, and I find it to be
a very powerful concept. I think I'm having a conceptual difficulty, tho,
with the different levels at which web2py helpers operate to make my life
easier.
In one specific case, I have a swimmer record that, along with
This should work, can you please open a ticket? Mind that it is pointless
to select columns/fields on GAE since it always fetches them all.
On Friday, 29 August 2014 18:37:07 UTC-5, Russ King wrote:
>
>
> I am struggling to use belongs on GAE+NDB it appears that:
>
> quests =
> db(db.questio
form.accepts(request,session=None, formname=None):
should be
form.accepts(request.get_vars,session=None, formname=None):
else it is interpreted as
form.accepts(request.post_vars,session=None, formname=None):
but you have a GET form.
On Friday, 29 August 2014 20:34:49 UTC-5, Federico Ferraro w
Hi Anthony,
I am able to reproduce this problem in a small app (tested on windows -
2.9.5).
*MODEL:*
db.define_table('Category',
Field('Name'),
Field('SubCategoryName'))
# Insert test data
if db(db.Category.id>0).count() == 0:
db.Category.insert(Name='PC',SubCategoryName='I
I think there may be a change in operation for "contains()" in the DAL.
With the last release, I can use an empty string as an argument to
contains, and it will return all values (i.e. the empty string matches
all). In the trunk version the empty string matches nothing. I don't know
which i
You can't. This is something you should take care of on server side.
Use session to store user's state, or store it in DB.
On Tue, Aug 26, 2014 at 11:36 PM, Fotis Gioulekas
wrote:
> Hello to everybody,
>
> I have built a quiz that randomlycreates questions.
> Each time a user submits it's answe
45 matches
Mail list logo