Re: [web2py] reminder about last book edit

2010-08-10 Thread Sriram Durbha
Hi Massimo, Atlast I finished reading the whole book, including the last chapter on Components and Plugins. Over all, there are quite a few typos and style inconsistencies. I highly recommend having it edited by a professional technical editor. Web2Py is a very good framework, and the community

Re: [web2py] using URL() inside a component view

2010-08-10 Thread Jonathan Lundell
On Aug 10, 2010, at 7:59 PM, Bruno Rocha wrote: > I thought your explanation is very well written, > we need always maintain the practice of looking for something relevant to be > documented when a new thread emerges, and document as quickly as possible, so > soon web2py will be the framework w

Re: [web2py] using URL() inside a component view

2010-08-10 Thread Bruno Rocha
I thought your explanation is very well written, we need always maintain the practice of looking for something relevant to be documented when a new thread emerges, and document as quickly as possible, so soon web2py will be the framework with the best online documentation (if not already) Massimo,

[web2py] Re: New server

2010-08-10 Thread Anthony
Thanks. That explanation is helpful. On Aug 10, 8:49 pm, Thadeus Burgess wrote: > Basically, a non-thread safe table design is one that relies on the > programming code to calculate defaults based on other values in the > database. A prime example is that web2py does not support > autoincrement c

Re: [web2py] reminder about last book edit

2010-08-10 Thread Bruno Rocha
I dont know if timeline has ended but... URL helper has an "extension" parameter, as we can see here: http://www.google.com/codesearch/p?hl=en#uyCl3L51_dI/gluon/html.py&q=URL package:http://web2py\.googlecode\.com&sa=N&cd=1&ct=rc&l=119 But not here: http://web2py.com/book/default/chapter/04?sear

Re: [web2py] using URL() inside a component view

2010-08-10 Thread Jonathan Lundell
On Aug 10, 2010, at 7:37 PM, Bruno Rocha wrote: > Thank you agains 4 the explanation, > > now, this should be documented anywhere, as this is not on the book ( > http://web2py.com/book/default/search?search=extension ) also not in AlterEgo > ( http://www.web2py.com/AlterEgo/default/search?searc

Re: [web2py] using URL() inside a component view

2010-08-10 Thread Bruno Rocha
Thank you agains 4 the explanation, now, this should be documented anywhere, as this is not on the book ( http://web2py.com/book/default/search?search=extension ) also not in AlterEgo ( http://www.web2py.com/AlterEgo/default/search?search=extension ) 2010/8/10 Jonathan Lundell > On Aug 10, 20

Re: [web2py] using URL() inside a component view

2010-08-10 Thread Jonathan Lundell
On Aug 10, 2010, at 7:11 PM, Bruno Rocha wrote: > "extension=False" is new to me, Thats not covered by the Book > > I found and reported that before : > http://groups.google.com/group/web2py/browse_thread/thread/99c2f5b8db562fba/8b82a682dff3fc58?lnk=gst&q=URL+changed#8b82a682dff3fc58 > It's a

Re: [web2py] using URL() inside a component view

2010-08-10 Thread Bruno Rocha
"extension=False" is new to me, Thats not covered by the Book I found and reported that before : http://groups.google.com/group/web2py/browse_thread/thread/99c2f5b8db562fba/8b82a682dff3fc58?lnk=gst&q=URL+changed#8b82a682dff3fc58 Tks Jonathan 2010/8/10 Jonathan Lundell > On Aug 10, 2010, at 5:4

Re: [web2py] using URL() inside a component view

2010-08-10 Thread Jonathan Lundell
On Aug 10, 2010, at 5:48 PM, Miguel Lopes wrote: > I'm pretty sure this as been asked, but I can't find it anywhere. > > I would like to use the URL function to construct a link inside a component > view (i.e. views/components/view_x.load). This would be a link to a > completely new page, to be

Re: [web2py] using URL() inside a component view

2010-08-10 Thread Miguel Lopes
Txs! I see the inclusion of request.application makes the URL being rendered with a .load extension or not. This seems a bit strange. I wonder if the solution will be stable! Miguel On Wed, Aug 11, 2010 at 2:03 AM, Bruno Rocha wrote: > I Solved using this way: > > URL(request.application,'defau

Re: [web2py] Problems with GAE auth :(

2010-08-10 Thread Bruno Rocha
PLUS: If you need an example on how to auth with gmail account, look at pyforum source code: http://pyforum.org/ 2010/8/10 Fale > Hi, > I'm a new web2py user :) > I'm trying to use google's auth for my app, but it does not work on > web2py, while it works perfectly on appspot.com and on the o

Re: [web2py] using URL() inside a component view

2010-08-10 Thread Bruno Rocha
I Solved using this way: URL(request.application,'default','view_detail',args=[rec.contact.id]) .load is not appended to the link. 2010/8/10 Miguel Lopes > I'm pretty sure this as been asked, but I can't find it anywhere. > > I would like to use the URL function to construct a link inside > a

Re: [web2py] Problems with GAE auth :(

2010-08-10 Thread Bruno Rocha
The first place where I always search for help is *THE ORACLE* : http://www.google.com/codesearch/p?hl=en#uyCl3L51_dI/gluon/contrib/login_methods/gae_google_account.py&q=GaeGoogleAccount%20package:http://web2py%5C.googlecode%5C.com class GaeGoogleAccount(CasAuth):"""Login will be done via

Re: [web2py] Re: New server

2010-08-10 Thread Thadeus Burgess
Basically, a non-thread safe table design is one that relies on the programming code to calculate defaults based on other values in the database. A prime example is that web2py does not support autoincrement columns other than the automatic primary key of id. If you need a autoincrement column as w

[web2py] using URL() inside a component view

2010-08-10 Thread Miguel Lopes
I'm pretty sure this as been asked, but I can't find it anywhere. I would like to use the URL function to construct a link inside a component view (i.e. views/components/view_x.load). This would be a link to a completely new page, to be loaded in the browser and not in the component div. However,

Re: [web2py] Problems with GAE auth :(

2010-08-10 Thread Bruno Rocha
You cannot import "appengine.api" if you're out of GAE environment.. 2010/8/10 Fale > Hi, > I'm a new web2py user :) > I'm trying to use google's auth for my app, but it does not work on > web2py, while it works perfectly on appspot.com and on the offline gae > engine :| > > My code: > from gl

Re: [web2py] Re: lightning speech - Web2py - A framework for human beings

2010-08-10 Thread Bruno Rocha
The PDF you provided will be very very useful. Thank you! 2010/8/10 Anand Vaidya > Hi Bruno, > > I did a 5-min lightning talk on web2py at the PyCon APAC event. The > slides are at: > > > https://docs.google.com/a/vsa-services.com/leaf?id=0BzXgm0Aj6rayM2JlMTA4ODYtNWZkZC00OWRmLTg0MTAtY2U0MjQxM

[web2py] Struggling with IS_NOT_IN_DB query

2010-08-10 Thread davosmith
I'm not quite sure what I'm doing wrong here, I'm trying to set up the validation so that you cannot have two units in the same course with the same name (but allow units in different courses to have the same name): db.define_table('unit', Field('course', db.course), Field('name', required

[web2py] slideshow widget plugin

2010-08-10 Thread Hans
I'm trying to use this widget on localhost on source version of web2py 1.82.1 but running into the error below. other widgets like jqgrid or select are working fine. how can I get slideshow working? `` name: slideshow table: coin field: edge transition: fade width: 200 height: 200 ``:widget db.d

[web2py] Problems with GAE auth :(

2010-08-10 Thread Fale
Hi, I'm a new web2py user :) I'm trying to use google's auth for my app, but it does not work on web2py, while it works perfectly on appspot.com and on the offline gae engine :| My code: from gluon.tools import Mail, Auth, Recaptcha auth = Auth(globals(), db) from gluon.contrib.login_methods.gae_g

[web2py] Re: New server

2010-08-10 Thread Anthony
On Aug 9, 9:33 am, Thadeus Burgess wrote: > Just make sure to follow ALL of the web2py performance enhancements. > > * Compile the app > * Sessions to database > * Make sure all database tables are designed to be thread safe > > (ie: don't do things like this... db.table.insert(myid=db(db.table.id

[web2py] Re: Changing submit label from SQLFORM?

2010-08-10 Thread mgrabau
If you are rendering a SQLFORM or whatever in the view using a custom rendering, ie. not just {{=form}}, then that is when you would be looking back into that I believe. The attribute is identified by form.custom.submit.attributes['_value'] because it is like that for all the input controls I belie

Re: [web2py] Cyclic tables

2010-08-10 Thread Jonathan Lundell
On Aug 10, 2010, at 10:55 AM, Oatman wrote: > Hi all, > > How do I create two tables that both refer to each other? Here's a > simple example: > > db.define_table( >'item', >Field('current_alias', 'db.item_alias') >) > > db.define_table( >'item_alias', >Field('name'), >F

[web2py] Cyclic tables

2010-08-10 Thread Oatman
Hi all, How do I create two tables that both refer to each other? Here's a simple example: db.define_table( 'item', Field('current_alias', 'db.item_alias') ) db.define_table( 'item_alias', Field('name'), Field('item', 'db.item') ) This throws "SyntaxError: Field: u

[web2py] crud create double submission

2010-08-10 Thread rāma
I think I have a double submission problem on crud create. I am using a redirect in the view instead of the next attribute because I have to evaluate certain variable conditions. Haven't tried in other situations. I don't know if anyone can confirm this.

[web2py] Re: Changing submit label from SQLFORM?

2010-08-10 Thread Martin.Mulone
You can access directly to html attributes ex: _value, _id, _name, etc. Is the last resource if you do not have this function in web2py, this is what i like of web2py you can do in old way if you want. On Aug 10, 2:00 pm, Sebastian Bassi wrote: > On Tue, Aug 10, 2010 at 1:47 PM, mgrabau wrote: >

[web2py] gae strangeness with & symbol

2010-08-10 Thread mattynoce
hi all. i have an interesting problem with & in gae and wanted to see if i could get some thoughts. in my program, i have used & in queries many times and had it work. for example, query A works fine: (A) db((db.timeframe.isActive==True) & (db.timeframe.userID==15)).select() but query B does not:

[web2py] Re: dynamic ux resizing

2010-08-10 Thread Martin.Mulone
you can do that with jquery. for example on resize: jQuery(window).resize(function() { win_height = jQuery(window).height(); win_width = jQuery(window).width(); }); On Aug 10, 1:44 pm, "david.waldrop" wrote: > How does one go about getting an appl

[web2py] web2py logging

2010-08-10 Thread Jonathan Lundell
web2py makes semi-extensive use of the Python logging module, but (near as I can tell) it never changes the output away from the default stdout. Is this true, and if so isn't it a problem?

Re: [web2py] Re: Managing routes.py with mercurial checkout

2010-08-10 Thread Michael Wolfe
hg pull --rebase When researching the bookmarks extension, I came across the rebase extension (http://mercurial.selenic.com/wiki/RebaseExtension). This did exactly what I wanted. I had committed my routes.py which went in as changeset 760 in my local repository. I then ran hg pull --rebase, whi

Re: [web2py] Re: Changing submit label from SQLFORM?

2010-08-10 Thread Sebastian Bassi
On Tue, Aug 10, 2010 at 1:47 PM, mgrabau wrote: > By message you mean the value shown ie. "Submit"? Yes. > That is documented in the book, and is easy to do : > form = SQLFORM(...fields and all that..., submit_button='The label/ > message that you want to show there') > Book reference: http://we

[web2py] Re: Changing submit label from SQLFORM?

2010-08-10 Thread mgrabau
By message you mean the value shown ie. "Submit"? That is documented in the book, and is easy to do : form = SQLFORM(...fields and all that..., submit_button='The label/ message that you want to show there') Book reference: http://web2py.com/book/default/chapter/07?search=submit_button Hope th

[web2py] dynamic ux resizing

2010-08-10 Thread david.waldrop
How does one go about getting an applications UX to dynamically resize as the browser window is resized? Does web2py offer any mechanism for this?

[web2py] How to set Windows web2py.exe initial sys.path?

2010-08-10 Thread JoeCodeswell
Hi folks, I'm trying to run web2py using the IPython shell on my Windows 2000 machine. I have regular Python and IPython working on my machine. I know that web2py.exe use it's own version of python. Here are the sys.paths for each python (regular and web2py): >>> pp.pprint(w2p_path) ['C:\\web2py\

[web2py] Re: Chapter 13: components and plugins

2010-08-10 Thread Timmie
Hello, is it possible to create a plugin / component which expands the functionality of plugin_wiki? If so, then It would be great if this could be added to the Chapter 13. Thanks.

[web2py] Changing submit label from SQLFORM?

2010-08-10 Thread Sebastian Bassi
I wanted to customize the message on the submit button of a form generated from SQLFORM. The closest thing I found on the web was this outdated link: http://www.web2py.com/AlterEgo/default/show/205 On the book, there is only a reference for changing the label of the form generated by CRUD: 7.4.2 Me

[web2py] Re: Doubt with THEAD helper

2010-08-10 Thread Skiros
Hmmm no. Its no ok. The response is repeating TR tag for each element... and is using a TD tag too I believe this is the correct code >>> THEAD(TR(TH("a"), TH("b"))).xml() 'ab' On 9 ago, 19:03, mdipierro wrote: > It is a bug. Fixed in trunk: > > >>> THEAD('a','b').xml() > > 'ab' > > On Aug 9, 2

Re: [web2py] Re: Conditional menu

2010-08-10 Thread Johann Spies
Thanks. That is useful. Regards Johann --     "Be not deceived; God is not mocked: for whatsoever a      man soweth, that shall he also reap."                                   Galatians 6:7

Re: [web2py] Re: Managing routes.py with mercurial checkout

2010-08-10 Thread Michael Wolfe
Rob, I haven't used the bookmark extension. I'll go check that out. Thanks for the tip. -Mike On Mon, Aug 9, 2010 at 10:00 PM, Rob wrote: > You could use the hg bookmark extension and keep 2 local branches. > One branch for upstream code and the other branch for your own > changes.  Before you

Re: [web2py] login method mappings

2010-08-10 Thread Michele Comitini
Just return a dictionary with the properties you defined in the auth table in db.py. For instance to use facebook with oauth20_account you need to override get_user() method in the OAuthAccount class as you need. Below is how I implement it for the test application on http://grafbook.appspot.com/h

[web2py] Re: doc2py - php.net like python module documentation

2010-08-10 Thread Martin.Mulone
All seem to working fine for me, in some titles you have gray background and gray titles. I am on online version. There is a minimal bug when you expand, seem that collapsing and then expand, perhaps some waiting text or some that say "i am loading the element in the three" On Aug 10, 8:05 am, sel

[web2py] Re: crud + hidden fields that need to go into the DB?

2010-08-10 Thread Martin.Mulone
:) yes you are right. If you are attach to this example, and this js, you can make read only input i think with writable=False and readable=True. And add check like IS_FLOAT and put default value like default=0 to lat and long. On 9 ago, 22:51, Rob wrote: > If anyone can write a tutorial using ba

[web2py] Limitby on GAE

2010-08-10 Thread szabba
Is db(somequery).select(db.sometable.ALL, limitby=(1000, 10)) supported on Google App Engine? I couldn't find anything about it not being supported in the docs, but I just want to be sure.

Re: [web2py] Re: LOAD and redirect

2010-08-10 Thread Julius Minka
Form not displaying in IE was caused by other Jquery stuff on the page. Sorry for bothering you. However, redirection doesn't work in IE6. Julius V Utorok, 10. august 2010 o 10:07 +0200, Julius Minka napísal(a): > Massimo, > > I got a message from a friend telling me the form isn't displayed in

[web2py] Re: doc2py - php.net like python module documentation

2010-08-10 Thread selecta
new features: rpx login tagging minimal comments (this will be improved when I find out how to get the markmin editor working for the comments) On Aug 9, 11:10 am, selecta wrote: > default color is now black > the expanding of the tree is a "bug" caused by the async jquery > treeview widget > the

[web2py] Is there any tweak when using sessions in database?

2010-08-10 Thread David Marko
I tried to swich the seesions from file system store to database. I have added session.connect(request, response,db) into my db.py and could see new table created in database. But since that, I cannot login into my application. Login dialog is displayed again and again with no message via flash. In

Re: [web2py] Re: Error on default "Lost password" function

2010-08-10 Thread Andrew Buchan
Yep, that was it. Thanks a bunch Massimo! On Tue, Aug 10, 2010 at 11:46 AM, mdipierro wrote: > Your auth_user table is missing the reset_password_key field. > If you use auth.define_tables(migrate=False), set migrate=True. If you > use a custom field, add a hidden string field 'reset_password_ke

[web2py] Re: plugin_wiki bugs and improvements

2010-08-10 Thread mdipierro
On Aug 10, 5:31 am, rochacbruno wrote: > I think it should be better to show existing comments for non logged-in > users. And let only logged-in to insert a new comment. this is already there. > Plus.. I think the comment itself, should render markmin syntax, by > permitting only most useful

[web2py] Re: Error on default "Lost password" function

2010-08-10 Thread mdipierro
Your auth_user table is missing the reset_password_key field. If you use auth.define_tables(migrate=False), set migrate=True. If you use a custom field, add a hidden string field 'reset_password_key' On Aug 10, 5:18 am, Andrew Buchan wrote: > Should have looked more carefully, its clearly the sec

Re: [web2py] plugin_wiki bugs and improvements

2010-08-10 Thread rochacbruno
I think it should be better to show existing comments for non logged-in users. And let only logged-in to insert a new comment. Plus.. I think the comment itself, should render markmin syntax, by permitting only most useful markups as **bold** etc Sent from my iPhone On 10/08/2010, at 07:22, se

[web2py] plugin_wiki bugs and improvements

2010-08-10 Thread selecta
page_edit.html the elRTE.prototype.options.panels.web2pyPanel should also contain 'indent', 'outdent' otherwise it is not possible to create nested (un)sorted lists the help text for the markmin language should only displayed on mode == 'markmin' add on line 41 of page_edit.html {{if DEFAULT['mode

Re: [web2py] Re: Error on default "Lost password" function

2010-08-10 Thread Andrew Buchan
Should have looked more carefully, its clearly the second... On Tue, Aug 10, 2010 at 11:17 AM, Andrew Buchan wrote: > Massimo, > > it's either: > > SELECT count(*) FROM auth_user WHERE auth_user.email=' > avalidemailaddr...@mycompany.co.uk'; > > or > > UPDATE auth_user SET WHERE auth_user.id=13

Re: [web2py] Re: Error on default "Lost password" function

2010-08-10 Thread Andrew Buchan
Massimo, it's either: SELECT count(*) FROM auth_user WHERE auth_user.email=' avalidemailaddr...@mycompany.co.uk'; or UPDATE auth_user SET WHERE auth_user.id=13; On Tue, Aug 10, 2010 at 10:22 AM, mdipierro wrote: > Can you determine somehow the sql statement that mssql is complaining > abo

[web2py] Re: Error on default "Lost password" function

2010-08-10 Thread mdipierro
Can you determine somehow the sql statement that mssql is complaining about? On Aug 10, 3:03 am, Andrew Buchan wrote: > Hi, > > When I click on the default "Lost password" link, I get to the page > which prompts for an email address, submit, then get the following > error: > > Traceback (most rec

[web2py] Re: I have problems with Rocket again

2010-08-10 Thread David Marko
To just make information complete I use WinXP, Python 2.6.5 . During of todays developemnt I had to restart web2py server 3 times as Rocked got blocked completely. Do you advice me to use local Apache+wsgi for development? David On 10 srp, 10:56, David Marko wrote: > I have added some icons and

[web2py] Re: lightning speech - Web2py - A framework for human beings

2010-08-10 Thread mdipierro
I cannot access the slides The link links VSA Services/ I agree. Let's not bash other frameworks. It is better to leverage on what other people and say thing like... Everything you can do in XYZ you with web2py faster + you can do ABC. On Aug 10, 1:38 am, Anand Vaidya wrote: > Hi Bruno, > > I di

[web2py] new in trunk list:reference

2010-08-10 Thread mdipierro
Experimentally there is a new feature in trunk. Field('name','list:string') Field('name','list:integer') Field('name','list:reference other table') and new operators db.mytable.myfield.contains(4) which works for list:reference, list:integer, list:string, string and text types. The list: type

[web2py] I have problems with Rocket again

2010-08-10 Thread David Marko
I have added some icons and images to my app and it seems that this fails the Rocket server. I had a core of my app almost without graphics and everything was working very fine. Then a added some icons, images etc. and since that the Rocker server is getting crazy. Browser is loading page more than

Re: [web2py] Re: New server

2010-08-10 Thread Julius Minka
V Pondelok, 9. august 2010 o 15:05 -0700, mdipierro napísal(a): > This worked for me: > > http://code.google.com/p/web2py/source/browse/scripts/setup-web2py-fedora.sh > I believe it was not clean install and all dependencies were met before running this script. Or? Julius > On Aug 9, 3:06 p

Re: [web2py] Re: LOAD and redirect

2010-08-10 Thread Julius Minka
Massimo, I got a message from a friend telling me the form isn't displayed in IE8 at all. It is from my application available at http://93.184.68.161:/real If you would like to see the response from the search you need to choose Predaj Prievidza 2-izbovy byt Webpage error details User Age

[web2py] Error on default "Lost password" function

2010-08-10 Thread Andrew Buchan
Hi, When I click on the default "Lost password" link, I get to the page which prompts for an email address, submit, then get the following error: Traceback (most recent call last): File "C:\Program Files\Hub Pages\web2py\gluon\restricted.py", line 178, in restricted exec ccode in environmen