[web2py] Re: unordered list and pagination

2012-04-09 Thread Annet
Massimo, Thanks for your reply. I like the solution, however, it results in the following ticket: Traceback (most recent call last): File /Library/Python/2.5/site-packages/web2py/gluon/restricted.py, line 205, in restricted exec ccode in environment File

[web2py] Re: newbie - dreamweaver and web2py

2012-04-09 Thread villas
I recently did a few experiments with Dreamweaver and quickly decided that it would make things more complicated rather than easier. If you are starting to study web2py then I believe it is better to get used to working directly with the files before trying to use productivity aids. A good

[web2py] raquo; in link

2012-04-09 Thread Annet
In a view I have the following link: a class=btn btn-primary btn-largeLearn more raquo;/a I would like to put this in an A helper, this doesn't work : {{=A('Learn more raquo;',_class=btn btn-primary,

[web2py] Problem in adding janrain

2012-04-09 Thread Roma Asnani
I am trying to add janrain to my application for open id but it gives error like RPXNOW._base_cb(false, Invalid Parameter: token_url must be an absolute URL); that describes i have to write complete URL in my janrain key file but it still is not working. Can anyone help.

[web2py] Multiple target by using the Ajax

2012-04-09 Thread Sanjeet Roy
How to call the multiple function or set the multiple target via Ajax

[web2py] Using smart query with REST in GAE and datetime greater than query

2012-04-09 Thread Douglas Ross
Hi, I know the documentation explains that you cannot do 'complex' datetime queries in web2py with GAE, however I am hoping that this does not qualify as 'complex'. I am trying to use the smartquery (experimental) functionality that it works really well in the SQLlite db. Unfortunately, the

[web2py] Memory leak with import_from_csv_file in loop

2012-04-09 Thread Łukasz Adamczewski
Hi, I am new web2py user and I have some performance problems with import_from_csv_file method. First of all i have big collection of data that i want to upload to Google App Engine. I splited data into 1000 parts, each contains csv serialized rows - about 1367 rows per file. I am doing loop

[web2py] Re: raquo; in link

2012-04-09 Thread Alan Etkin
Maybe you can use the A string input inside the XML helper: A(XML(), ...) So the html is not escaped: The XML helper doc: ... use it to wrap a string that contains XML/HTML so that it will not be escaped by the template ... El lunes, 9 de abril de 2012 07:11:19 UTC-3, Annet escribió: In

[web2py] Re: Multiple target by using the Ajax

2012-04-09 Thread Alan Etkin
Could you explain with more detail what you are trying to do? Do you have a controller function called multiple in your application? Do you want to manipulate a SELECT element with multiple selection with ajax? El lunes, 9 de abril de 2012 03:32:31 UTC-3, Sanjeet Roy escribió: How to call the

Re: [web2py] Multiple target by using the Ajax

2012-04-09 Thread Keith Edmunds
On Sun, 8 Apr 2012 23:32:31 -0700 (PDT), sanjeet.ro...@gmail.com said: How to call the multiple function or set the multiple target via Ajax In the view: form input name=name onkeyup=ajax('echo', ['name'], ':eval') / /form h3Start of target1/h3 div id=target1/div h3End of target1/h3

Re: [web2py] Multiple target by using the Ajax

2012-04-09 Thread Keith Edmunds
On Mon, 9 Apr 2012 12:28:23 +0100, k...@midnighthax.com said: def echo(): return jQuery('#target1').html(%s);jQuery('#target1').html(%s); \ % (repr(request.vars.name.upper()),repr(request.vars.name.lower())) Sorry, the second '#target1' above should be '#target2' -- You can have

[web2py] Re: Memory leak with import_from_csv_file in loop

2012-04-09 Thread Massimo Di Pierro
What os? what python version? On Sunday, 8 April 2012 16:08:00 UTC-5, Czeski wrote: Hi, I am new web2py user and I have some performance problems with import_from_csv_file method. First of all i have big collection of data that i want to upload to Google App Engine. I splited data into

Re: [web2py] new feature in trunk: full auditing

2012-04-09 Thread Manuele Pesenti
Il 06/04/2012 01:11, Massimo Di Pierro ha scritto: Now you can. ;-) auth.enable_record_versioning(db, archive_db=other_db) Do you think could be usefull to choose the tables you want for versioning instead of every table in db? M.

Re: [web2py] Re: How to install gluon in virtualenv?

2012-04-09 Thread Vincenzo Ampolo
On 04/06/2012 06:56 PM, Bruno Rocha wrote: easy_install gluino And you will get a minified web2py inside your virtual env. Thanks! -- Vincenzo Ampolo http://vincenzo-ampolo.net http://goshawknest.wordpress.com

[web2py] Design question. Opinions please

2012-04-09 Thread Cliff
Using the dog-owner model from the examples, you might have a model like this: db.define_table('dog', Field('dog_name')) db.define_table('owner', Field('owner_name')) db.define_table('dog_owner', Field('dog_id', db.dog), Field('owner_id', db.owner), Field('owner_plays_fetch_with_dog',

[web2py] Problems with setting default field values.

2012-04-09 Thread Brian F
So I've managed to create myself a little bit of an interesting problem. I have a page that contains a form the user fills out. Before they submit it I use JQuery and check the form to make sure everything is filled out, and perform some saftey checks based on values they've filled in. Once

[web2py] Re: dropbox python api

2012-04-09 Thread Paul Gerrard
Hi, I got distracted by other things and only just came back to this. The problem I was having was in my code was the token was 'disabled or invalid'. I'm sure this is resolved by using the callback in the redirect back from the Dropbox site. I commented out the code that's not relevant for

[web2py] Re: Using smart query with REST in GAE and datetime greater than query

2012-04-09 Thread Massimo Di Pierro
This is actually not a GAE issue. This is a smartgrid issue. Because you are comparing with a datetime issue, it expects the time as part of the date. I just change the parsing routine in trunk to fix this problem. Give it a try. Massimo On Sunday, 8 April 2012 22:36:34 UTC-5, Douglas Ross

[web2py] Re: unordered list and pagination

2012-04-09 Thread Massimo Di Pierro
Please try trunk version (you appear to be using an older version). If the problem persists open a google code ticket about this. massimo On Monday, 9 April 2012 01:45:50 UTC-5, Annet wrote: Massimo, Thanks for your reply. I like the solution, however, it results in the following ticket:

[web2py] Re: Problem in adding janrain

2012-04-09 Thread Massimo Di Pierro
How are you using it? are you using youapp/private/janrain.key? On Monday, 9 April 2012 03:47:25 UTC-5, Roma Asnani wrote: I am trying to add janrain to my application for open id but it gives error like RPXNOW._base_cb(false, Invalid Parameter: token_url must be an absolute URL); that

[web2py] Re: raquo; in link

2012-04-09 Thread Massimo Di Pierro
You can do A(Learn more »,_href='') and it will be converted to what you want automatically. Or A(XML(Learn more ranquo;),_href='') Massimo On Monday, 9 April 2012 05:11:19 UTC-5, Annet wrote: In a view I have the following link: a class=btn btn-primary btn-largeLearn more

[web2py] Re: new feature in trunk: full auditing

2012-04-09 Thread Massimo Di Pierro
the signature=True only adds a signature to the auth_* tables so that if a user creates an account for another user or creates a group, you can keep track of who did it. The mything_archive table should be created by: auth.enable_record_versioning(db) This should be called after the mything

[web2py] browse path

2012-04-09 Thread Hassan Alnatour
Dear ALL, I See Alot Of applications that has a browse button but when you click it , it open a folder on the server !! , how do i do that ?? Best Regards,

[web2py] Link button text in smartgrid

2012-04-09 Thread Jim Steil
I updated to latest trunk this morning and am seeing additional text in the buttons for linked tables. Is there a way to disable this? I liked how I could just set the _plural for the table before to set the text that I wanted to appear. Now it appears to be appending 'for

[web2py] Re: browse path

2012-04-09 Thread Massimo Di Pierro
Can you show us an example to make sure we understand? On Monday, 9 April 2012 09:44:46 UTC-5, Hassan Alnatour wrote: Dear ALL, I See Alot Of applications that has a browse button but when you click it , it open a folder on the server !! , how do i do that ?? Best Regards,

[web2py] Re: Adding record via sqlform.smartgrid

2012-04-09 Thread Massimo Di Pierro
Any chance you can post the controller and the model? On Monday, 9 April 2012 09:49:08 UTC-5, Jim S wrote: Hi I'm having a problem when adding records to a table using smartgrid. I upgraded to the latest trunk this morning. Here is what my grid looks like - empty: If I click on Add I

[web2py] Re: Link button text in smartgrid

2012-04-09 Thread Massimo Di Pierro
There is a reason for the new text. One table A may have two fields referencing table B so there is a need to specify the field name in the buttons. Anyway, you can remove them. In your db.py. T.force('en') Then edit the en.py Language and you will be able to edit the text of those buttons.

Re: [web2py] Re: browse path

2012-04-09 Thread hasan alnator
I cant becouse it on the admin side now it like when u try to upload a file u click on browes in normal cases it will open a window showing your folders but on what i am talking about it opens a folder on the server that the website is hosted on .. So that when they want to upload a very large

Re: [web2py] Re: Adding record via sqlform.smartgrid

2012-04-09 Thread Jim Steil
Sure - here are the model and controller method. The model is very long but only a handful of the fields will be enabled for editing at one time. Let me know if you have questions or need more info... Thanks -Jim - model - railLoad = db.define_table('railLoad',

Re: [web2py] Re: Link button text in smartgrid

2012-04-09 Thread Jim Steil
Ouch! Seems kind of heavy-handed for accommodating one use case.This takes my default display from this: ...to this: Is this open for discussion or alternative implementations? -Jim On 4/9/2012 10:33 AM, Massimo Di Pierro wrote: There is a reason for the new text. One table A may have

Re: [web2py] Re: Adding record via sqlform.smartgrid

2012-04-09 Thread Jim Steil
Massimo I found code of mine that is causing this issue. I apologize for the noise. -Jim On 4/9/2012 10:30 AM, Massimo Di Pierro wrote: Any chance you can post the controller and the model? On Monday, 9 April 2012 09:49:08 UTC-5, Jim S wrote: Hi I'm having a problem when

[web2py] Re: Multiple target by using the Ajax

2012-04-09 Thread Sanjeet Roy
Thanks i will try On Monday, April 9, 2012 12:02:31 PM UTC+5:30, Sanjeet Roy wrote: How to call the multiple function or set the multiple target via Ajax

[web2py] smartgrids with references (auth_user)

2012-04-09 Thread blackthorne
I'm trying to make a smartgrid using a table that has references to other (auth_user). The smartgrid show up but it does not include the field where I reference the other table. with code: -- in the db: auth = Auth(db, hmac_key=Auth.get_or_create_key()) crud, service, plugins = Crud(db),

Re: [web2py] smartgrids with references (auth_user)

2012-04-09 Thread Jim Steil
readable and writable need to be true on the submitted_by field. -Jim On 4/9/2012 11:44 AM, blackthorne wrote: I'm trying to make a smartgrid using a table that has references to other (auth_user). The smartgrid show up but it does not include the field where I reference the other table.

[web2py] customized edit for using .smartgrid

2012-04-09 Thread Jim Steil
Hi I want to customize the edit form of a .smartgrid the way that you can customize SQLFORM forms as specified in the manual under section 7.5. Is this possible? If so, what do I use in place of {{=form.custom.begin}}? How do I reference the form portion of the returned grid? -Jim

[Solved] Re: [web2py] Re: Apache+virtualhosts+wsgi, loading always the same content

2012-04-09 Thread Sergi Pons Freixes
2012/4/5 rdodev ruben.or...@infotechfl.com Seems to be working as intended from here. Possibly your browser's cache playing yedi mind tricks on you :D *facepalm* Yes, it was the cache...

Re: [web2py] smartgrids with references (auth_user)

2012-04-09 Thread blackthorne
Thank you. Didn't know that applies to smartgrids as well. now, because I don't want to change that (it would break things in many other places...) do you think there is a problem if I do something like in the controller: db.attachment.submitted_by.readable=True form =

Re: [web2py] smartgrids with references (auth_user)

2012-04-09 Thread Jim Steil
That is exactly the way I always handle it. I leave everything enabled in the controller (except the id column) and control the readability/writability in the controller. -Jim On 4/9/2012 12:41 PM, blackthorne wrote: Thank you. Didn't know that applies to smartgrids as well. now,

[web2py] Problem runing on GAE

2012-04-09 Thread waglik
Hi guys. I try playing with web2py on GAE but on a very beginning I fail with running my app. when I start my app I get : Internal errorTicket issued: unrecoverablehttp://localhost:8080/admin/default/ticket/unrecoverable and in the dev_appserver console I get : WARNING 2012-04-09

[web2py] new web2py cheatsheet

2012-04-09 Thread Massimo Di Pierro
http://dl.dropbox.com/u/18065445/Tmp/web2py_cheatsheet.pdf

Re: [web2py] Re: Link button text in smartgrid

2012-04-09 Thread Massimo Di Pierro
Yes it is open for discussion. :-) we could have a flag to change the mode. What do other people think? we could have a template field like button_label = 'for %(tablename)s %(fieldname)s' which you can override. On Monday, 9 April 2012 10:48:43 UTC-5, Jim S wrote: Ouch! Seems kind of

Re: [web2py] Re: Adding record via sqlform.smartgrid

2012-04-09 Thread Massimo Di Pierro
No problem. Thanks for letting us know. On Monday, 9 April 2012 11:05:09 UTC-5, Jim S wrote: Massimo I found code of mine that is causing this issue. I apologize for the noise. -Jim On 4/9/2012 10:30 AM, Massimo Di Pierro wrote: Any chance you can post the controller and the

[web2py] Re: customized edit for using .smartgrid

2012-04-09 Thread Massimo Di Pierro
You should be able to customize the create and edit forms in the same way: {{if grid.create_form:}} {{=grid.create_form}} {{elif grid.update_form:}} {{=grid.update_form}} {{elif grid.view_form:}} {{=grid.view_form}} {{else:}} {{=grid}} {{pass}} You need the current trunk because I

[web2py] Re: Problem runing on GAE

2012-04-09 Thread rif
Please check that your python version is 2.5. If this is not the case, change the app.yaml to use python2.7 runtime. -rif luni, 9 aprilie 2012, 20:57:21 UTC+3, waglik a scris: Hi guys. I try playing with web2py on GAE but on a very beginning I fail with running my app. when I start my

Re: [web2py] Re: customized edit for using .smartgrid

2012-04-09 Thread Jim Steil
Thanks Massimo - I'll grab a fresh copy in the morning and give it a try. -Jim On 4/9/2012 3:58 PM, Massimo Di Pierro wrote: You should be able to customize the create and edit forms in the same way: {{if grid.create_form:}} {{=grid.create_form}} {{elif grid.update_form:}}

[web2py] Re: Problem runing on GAE

2012-04-09 Thread waglik
Ok I found the reason. In app.yaml myapp was in the skip section. But now I have new problem : which is related to issue-699 http://code.google.com/p/web2py/issues/detail?id=699 Anybody have an idea?

[web2py] Re: dropbox python api

2012-04-09 Thread Massimo Di Pierro
Perhaps this can be useful: https://github.com/web2py/web2py/blob/master/gluon/contrib/login_methods/dropbox_account.py#L90 has been there for a while but I am not sure anybody has tested it very well. massimo On Monday, 9 April 2012 09:14:56 UTC-5, Paul Gerrard wrote: Hi, I got distracted

[web2py] Re: Design question. Opinions please

2012-04-09 Thread Derek
I'd put a warning saying you have unsaved changes. or perhaps only allow switching after saving. You could also make your own form, and handle saving all changes with your controller. Web2py has good defaults, and the helpers are good for getting a website up and running quickly, but when you

[web2py] Re: new feature in trunk: full auditing

2012-04-09 Thread tomt
I have declared the table in db.py with auth.signature, and uncommented auth.enable_record_versioning(db), but the _archive table isn't created. - Tom On Monday, April 9, 2012 8:33:18 AM UTC-6, Massimo Di Pierro wrote: the signature=True only adds a signature to the auth_* tables so that if a

[web2py] process args

2012-04-09 Thread CtrlSoft
how to process args early than my model? i want to split a unicode string that are in request.args for example: in view: a href=+URL('default','menu',args=[str(b.id)+-+str(b.title)])++str(b.title)+/a b.id = 15 b.title = аыв ывташгытацуокц- in controller: def menu(): #return

[web2py] Re: Problem runing on GAE

2012-04-09 Thread howesc
hmmm, looked at your comment on the issue, and you are using old syntax my friend. (moments when you just wish the web would forget). try: db = DAL('google:datastore')# connect to Google BigTable On Monday, April 9, 2012 2:03:27 PM UTC-7, waglik wrote: Ok I found

[web2py] Re: new web2py cheatsheet

2012-04-09 Thread howesc
thanks! On Monday, April 9, 2012 1:44:22 PM UTC-7, Massimo Di Pierro wrote: http://dl.dropbox.com/u/18065445/Tmp/web2py_cheatsheet.pdf

[web2py] Re: new web2py cheatsheet

2012-04-09 Thread JorgeH
This should be pinned :) On Monday, April 9, 2012 3:44:22 PM UTC-5, Massimo Di Pierro wrote: http://dl.dropbox.com/u/18065445/Tmp/web2py_cheatsheet.pdf

[web2py] Re: new web2py cheatsheet

2012-04-09 Thread Massimo Di Pierro
Let's debug it first. On Monday, 9 April 2012 21:34:57 UTC-5, JorgeH wrote: This should be pinned :) On Monday, April 9, 2012 3:44:22 PM UTC-5, Massimo Di Pierro wrote: http://dl.dropbox.com/u/18065445/Tmp/web2py_cheatsheet.pdf

[web2py] Re: new web2py cheatsheet

2012-04-09 Thread Sanjeet Roy
Thanks Massimo On Tuesday, April 10, 2012 8:57:32 AM UTC+5:30, Massimo Di Pierro wrote: Let's debug it first. On Monday, 9 April 2012 21:34:57 UTC-5, JorgeH wrote: This should be pinned :) On Monday, April 9, 2012 3:44:22 PM UTC-5, Massimo Di Pierro wrote:

[web2py] unable to login in web2py through janrain

2012-04-09 Thread Sonu Srivastava
for using multiple signin i am register with rpxnow.com and create app and use the key in our web2py application bt i m unable to login...plz help me...i use below code for it import os from gluon.contrib.login_methods.rpx_account import RPXAccount # we disable actions that will be provided by

[web2py] Re: raquo; in link

2012-04-09 Thread Annet
Hi Alan and Massimo, Thanks for your replies. A(Learn more »,_href='') This renders to greater than symbols. and it will be converted to what you want automatically. Or A(XML(Learn more ranquo;),_href='') This works after I changed it to: XML(View details #187;) For some