[web2py] Re: Issue Tracker and web interface for Mercurial

2011-11-10 Thread Gour
> it is really annoying that the mercurial apis are poorly documented > and broke already 3 times with mercurial updates. Have you seen: http://article.gmane.org/gmane.comp.version-control.mercurial.general/28839 Sincerely, Gour -- One who restrains his senses, keeping them under full contro

Re: [web2py] Id been Shown Instead of Name in dropdown list

2011-11-10 Thread Naleen Yadav
Thanks for your reply Bruno but still its not working , it is behaving as it was. Regards, Naleen Yadav GENPRO Technologies Pvt Ltd. On Fri, Nov 11, 2011 at 11:41 AM, Bruno Rocha wrote: > I guess you need > > db.define_table("tblDriver", > Field("DriverName",'string',label='Driver Name'),

Re: [web2py] Re: Detecting if a session has ended

2011-11-10 Thread Bruno Rocha
On Wed, Nov 9, 2011 at 5:14 PM, Massimo Di Pierro < massimo.dipie...@gmail.com> wrote: > auth.settings.logout_onlogout = lambda user: do_something_with(user) Why dont we clean the specific session file/registry when user logged out? *auth.settings.logout_onlogout = lambda user: remove_session(u

Re: [web2py] Id been Shown Instead of Name in dropdown list

2011-11-10 Thread Bruno Rocha
*or you can try:* db.define_table("tblVehicle", Field("*VehicleName_id*",db.tblVehicleName,label='Vehicle Name'), Field("VehicleNo", default=None,label='VehicleNo'), format=*lambda row: "%s" % row.**VehicleName_id.VehicleName* ) db.tblVehicle.VehicleName.requires=IS_IN_DB(db,'tbl

Re: [web2py] Id been Shown Instead of Name in dropdown list

2011-11-10 Thread Bruno Rocha
I guess you need db.define_table("tblDriver", Field("DriverName",'string',label='Driver Name'), Field('id_tblVehicle', db.tblVehicle,label='Vehicle Name')) db.tblDriver.id_tblVehicle.requires=IS_IN_DB(db, 'tblVehicle.id', '%( VehicleName)s') -- Bruno Rocha [http://rochacbruno.com.br

Re: [web2py] Re: Detecting if a session has ended

2011-11-10 Thread Sathvik Ponangi
I'm using a Users table & sessions to handle users. db.define_table('users', > db.Field('name', 'string'), > db.Field('password', 'password'),#If local user > db.Field('active', 'boolean', default=False), > db.Field('u

[web2py] Re: help on howto redirect user based on their auth_membership

2011-11-10 Thread Massimo Di Pierro
It was a long day. :-) On Nov 10, 10:59 pm, Anthony wrote: > Of course. Don't know what I was thinking. > > > > > > > > On Thursday, November 10, 2011 11:46:01 PM UTC-5, Massimo Di Pierro wrote: > > > Unfortunately login_nezt is set before the login is accepted and > > before you know what the us

[web2py] Id been Shown Instead of Name in dropdown list

2011-11-10 Thread Naleen Yadav
Hii all, for the past few days I was trying my hands on inheritance and i have done single Inheritance but in case of multiple inheritance i am facing a problem here is my code *Model:* *# Creating a master table for storing vehicle names.* db.define_table("tblVehicleName", Field("Vehi

Re: [web2py] Re: excessive memory usage on webfaction

2011-11-10 Thread Vasile Ermicioi
> > I think this primarily a problem of how web2py is being served rather > than a web2py problem. Just the welcome app and no traffic takes 70MB > of memory by default. the problem is with the architecture of webserver behind web2py processes vs threaded vs async ok, most of recommended ways of

Re: [web2py] Re: excessive memory usage on webfaction

2011-11-10 Thread Richard Baron Penman
I think this primarily a problem of how web2py is being served rather than a web2py problem. Just the welcome app and no traffic takes 70MB of memory by default. On Fri, Nov 11, 2011 at 11:59 AM, Bruno Rocha wrote: > On Fri, Nov 11, 2011 at 12:52 AM, Richard Baron Penman > wrote: >> >> I was al

[web2py] Re: help on howto redirect user based on their auth_membership

2011-11-10 Thread Anthony
Of course. Don't know what I was thinking. On Thursday, November 10, 2011 11:46:01 PM UTC-5, Massimo Di Pierro wrote: > > > Unfortunately login_nezt is set before the login is accepted and > before you know what the use permissions are. > > You must set a conditional rwdirect inside the login_on

[web2py] Re: help on howto redirect user based on their auth_membership

2011-11-10 Thread Massimo Di Pierro
Unfortunately login_nezt is set before the login is accepted and before you know what the use permissions are. You must set a conditional rwdirect inside the login_onaccept callback. On Nov 10, 9:49 pm, Anthony wrote: > auth.settings.login_next = URL('special') if > auth.has_membership('superv

[web2py] Re: help on howto redirect user based on their auth_membership

2011-11-10 Thread Anthony
auth.settings.login_next = URL('special') if auth.has_membership('supervisor') else URL('regular') Anthony On Thursday, November 10, 2011 10:40:40 PM UTC-5, tomt wrote: > > Hi, > > Is there a way to redirect a user to a specific controller based on > their auth_group.role and/or auth_membershi

[web2py] help on howto redirect user based on their auth_membership

2011-11-10 Thread tomt
Hi, Is there a way to redirect a user to a specific controller based on their auth_group.role and/or auth_membership? I would like a view only user to be redirected to one controller after login, and a "supervisor" user go to a different controller after login. Any suggestions? Thanks, - Tom

Re: [web2py] Re: excessive memory usage on webfaction

2011-11-10 Thread Bruno Rocha
On Fri, Nov 11, 2011 at 12:52 AM, Richard Baron Penman wrote: > I was also surprised how much resources the default configuration > uses, just for the welcome app. Seems Django has better configuration. Avoid the use of models, try to use conditional models (subfolders) or better, create your da

Re: [web2py] Re: excessive memory usage on webfaction

2011-11-10 Thread Richard Baron Penman
I was also surprised how much resources the default configuration uses, just for the welcome app. Seems Django has better configuration. I tried that static technique but haven't noticed a difference yet. I only have the default welcome app static files. Webfaction support recommends reducing the

[web2py] Re: Issue Tracker and web interface for Mercurial

2011-11-10 Thread Massimo Di Pierro
look into admin/controllers/mercurial.py it is really annoying that the mercurial apis are poorly documented and broke already 3 times with mercurial updates. Massimo On Nov 9, 5:57 am, Phyo Arkar wrote: > Hello Web2py. > > Recently we had a lot of talk about web2py based Trac-like app for > Me

[web2py] Re: Issue Tracker and web interface for Mercurial

2011-11-10 Thread Phyo Arkar
So thats mean Null ? Nothing we have currently ..? On Wed, Nov 9, 2011 at 6:27 PM, Phyo Arkar wrote: > Hello Web2py. > > Recently we had a lot of talk about web2py based Trac-like app for > Mercurial. Anyone implemented it? > What is mercurial inside web2py ? admin/views/mercurial > > Thanks. >

[web2py] Re: Python 2.7 on GAE (experimental)

2011-11-10 Thread pallav
Thank you. I also appreciate you putting your app.yaml on the code repository - it helped me get started today (before seeing what you had done, my own had not been customized for wsgi, just Python 2.7). I'm definitely interested in learning the relationship between the DAL, 2.7, and transactions.

[web2py] Re: new welcome app - need help with css

2011-11-10 Thread Anthony
On Thursday, November 10, 2011 7:30:38 PM UTC-5, Paolo Caruccio wrote: > > > .web2py_console {position: relative;} /* for #w2p_query_panel positioning > */ > #web2py_keywords{margin:0 5px;min-width:390px;width:62%;} > #w2p_query_panel{width:99%;} > #w2p_query_panel input, #w2p_query_panel select{m

[web2py] Re: new welcome app - need help with css

2011-11-10 Thread Paolo Caruccio
Anthony, I made some tests after your observations. (web2py Version 1.99.3 (2011-11-08 22:28:53) dev last trunk) What do you think about the following: .web2py_console {position: relative;} /* for #w2p_query_panel positioning */ #web2py_keywords{margin:0 5px;min-width:390px;width:62%;} #w2p_que

[web2py] Central Authentication Service - CAS authentication - not create new db.auth_user record

2011-11-10 Thread Bruce Young
Is there a way to stop sucessful CAS login to NOT create a user? I think this normally done by "disable registration" I want only users with an existing auth_user record to login. Those users that successfully login through CAS but do not have an auth_user record should be redirected. I have CAS

[web2py] .hgignore and updating welcome/admin

2011-11-10 Thread pbreit
My welcome and admin apps never get the updates, possibly because of this line in the default .hgignore? ^applications/(?!(admin|examples|welcome|__init__)).*$ How can I make sure admin/welcome are getting updated

[web2py] Re: cool css3 hover effects

2011-11-10 Thread Andrew
I agree, it looks great. Does the book need to explain a bit more about how to take advantage of such things with web2py? I don't mean that the book should be a css or jquery tutorial, but what I don't quite understand is the what standard html class and id structure there is in the standard web2py

Re: [web2py] Re: SQLFORM.grid : formstyle, readable and writable control

2011-11-10 Thread Richard Vézina
Where do you see form[1]? What do you want to know? What I am doing in my for loop? Richard On Thu, Nov 10, 2011 at 4:27 PM, Cliff wrote: > Richard, > > If you have time, what happens if you substitute form[1] for > form.create_form[0] ? > > Thanks, > Cliff Kachinske > > On Nov 10, 4:10 pm, A

[web2py] Re: crud.read vars

2011-11-10 Thread Anthony
No, it returns a SQLFORM with readonly=True, in which case there's nothing in form.vars. On Thursday, November 10, 2011 4:22:43 PM UTC-5, lucas wrote: > > yes, but doesn't crud.read just return an SQLFORM, which should have > object access to the field values, no?

Re: [web2py] Re: SQLFORM.grid : formstyle, readable and writable control

2011-11-10 Thread Richard Vézina
With just "if form.create_form:" It works finally... Maybe I was having other typo in my code that raise error then since I was focusing on the problem I didn't realise that it was for other reason... At that I had table = SQLFORM.grid(...) and was verifying : "if form.create_form:" So for su

Re: [web2py] Re: smartgrid styling

2011-11-10 Thread Jim Steil
Sounds like a good idea. Let us know if you see differences. -Jim On 11/10/2011 3:18 PM, Cliff wrote: I'm now completely confused. Just to look at the rendered html I used smartgrid in a different controller. The styling looks fine. I've got a 1.99.2 zipfile. Maybe I'll unzip it and ge

[web2py] Re: SQLFORM.grid : formstyle, readable and writable control

2011-11-10 Thread Cliff
Richard, If you have time, what happens if you substitute form[1] for form.create_form[0] ? Thanks, Cliff Kachinske On Nov 10, 4:10 pm, Anthony wrote: > My mistake -- looks like it always has a .create_form, but set to None in > other cases. But in that case: > > if form.create_form: > > should

[web2py] Re: crud.read vars

2011-11-10 Thread lucas
yes, but doesn't crud.read just return an SQLFORM, which should have object access to the field values, no?

[web2py] Re: smartgrid styling

2011-11-10 Thread Cliff
I'm now completely confused. Just to look at the rendered html I used smartgrid in a different controller. The styling looks fine. I've got a 1.99.2 zipfile. Maybe I'll unzip it and get the base.css just to make sure all is in synch. On Nov 10, 2:27 pm, Jim Steil wrote: > Have you start

Re: [web2py] Re: SQLFORM.grid : formstyle, readable and writable control

2011-11-10 Thread Anthony
My mistake -- looks like it always has a .create_form, but set to None in other cases. But in that case: if form.create_form: should work, though I think you said that didn't work -- what happened when you tried that? Anthony On Thursday, November 10, 2011 4:04:00 PM UTC-5, Richard wrote: > >

Re: [web2py] Re: SQLFORM.grid : formstyle, readable and writable control

2011-11-10 Thread Richard Vézina
Ok but it's not seem to work... I get this error trace back : 1. 2. 3. 4. 5. 6. 7. 8. 9. 10. Traceback (most recent call last): File "/web2py/gluon/restricted.py", line 194, in restricted exec ccode in environment File "/web2py/applications/sgddms/controllers/test.py", line 4437, in Fi

Re: [web2py] Re: SQLFORM.grid : formstyle, readable and writable control

2011-11-10 Thread Anthony
I'd go with the second option -- more fool proof. On Thursday, November 10, 2011 3:11:11 PM UTC-5, Richard wrote: > > Ok so this : > > "if 'new' in request.args and form.create_form:" > > or shorter : > > "if hasattr(form, 'create_form'):" > > ? > > Thank you. > > Richard > > On Thu, Nov 10, 2011

[web2py] redirected post requests and the validate function using post_vars

2011-11-10 Thread apple
The validate function uses current.request.post_vars. However when you redirect a submitted form it becomes a "get" rather than "post" and request.post_vars is empty. Is there any reason why it is not just current.request.vars?

[web2py] Re: crud.read vars

2011-11-10 Thread Anthony
First, you don't use form.process() with crud forms -- crud handles the processing itself. Also, I believe that "read" forms do not have anything in form.vars, so you'll have to get those values directly from the submitted record. Anthony On Thursday, November 10, 2011 3:18:14 PM UTC-5, lucas

[web2py] Random Selection Issue

2011-11-10 Thread Andrew Evans
Hello I am trying to randomly select from entries in my database then store that random result. The problem is its storing the wrong result (I think its storing the previous random selection) Any ideas how I can achieve my goal? @auth.requires_login() def xreflection(): game_id = request.arg

[web2py] Re: GAE - SQL cloud connection

2011-11-10 Thread pallav
Hi Massimo, I just ran into the same issue on GAE SQL. Any update/ideas since the last post? I'm happy to help code/debug/brainstorm. Thanks, Pallav On Oct 19, 10:53 am, Massimo Di Pierro wrote: > This is another of those weird mysql issues > > CREATE TABLE IF NOT EXISTS web2py_filesystem (path

[web2py] crud.read vars

2011-11-10 Thread lucas
hello everyone, trying to understand why the pmsg below fails to pull the values of the form ef. all i get is None for each of the three, ef.vars.email_address, ef.vars.subject, and ef.vars.message_body. all three are spelled correctly and the full form ef, displays all of the proper information

Re: [web2py] Re: SQLFORM.grid : formstyle, readable and writable control

2011-11-10 Thread Richard Vézina
Ok so this : "if 'new' in request.args and form.create_form:" or shorter : "if hasattr(form, 'create_form'):" ? Thank you. Richard On Thu, Nov 10, 2011 at 2:58 PM, Anthony wrote: > If you have "if 'new' in request.args:' you should not also need "if > form.create_form" (even if you did, yo

Re: [web2py] Re: SQLFORM.grid : formstyle, readable and writable control

2011-11-10 Thread Anthony
If you have "if 'new' in request.args:' you should not also need "if form.create_form" (even if you did, you could simply put them in the same "if" statement with an "and"). Alternatively, use "if hasattr(form, 'create_form'):" -- all by itself. Anthony On Thursday, November 10, 2011 2:48:49 P

Re: [web2py] Re: SQLFORM.grid : formstyle, readable and writable control

2011-11-10 Thread Richard Vézina
Here a working piece of code : def test_sqlformgrid(): form = SQLFORM.grid(db.TABLE, ui='jquery-ui', editable=auth.has_membership('reviewer'), deletable=auth.has_membership('reviewer'), formstyle = 'divs') if 'new' in request.args: if form.create_form for i in range(0,l

Re: [web2py] Re: SQLFORM.grid : formstyle, readable and writable control

2011-11-10 Thread Richard Vézina
It was working "if form.create_form:"... I thought that grid use form variable doesn't matter if the SQLFORM.grid wasn't in a form variable at all... And my bad because I show form = crud... But it was not my SQLFORM.grid... Arrg. Sorry about that... Richard On Thu, Nov 10, 2011 at 1:26 PM, An

Re: [web2py] Re: html from text

2011-11-10 Thread Richard Vézina
Mean can't... On Thu, Nov 10, 2011 at 2:32 PM, Richard Vézina wrote: > Yeah I can take this awful shortcut :( > > Thanks Anthony. > > Richard > > > On Thu, Nov 10, 2011 at 2:27 PM, Anthony wrote: > >> I don't think values inside tags can include additional HTML >> markup. >> >> Anthony >> >> >

Re: [web2py] Re: html from text

2011-11-10 Thread Richard Vézina
Yeah I can take this awful shortcut :( Thanks Anthony. Richard On Thu, Nov 10, 2011 at 2:27 PM, Anthony wrote: > I don't think values inside tags can include additional HTML > markup. > > Anthony > > > On Thursday, November 10, 2011 2:06:22 PM UTC-5, Richard wrote: > >> Ok I think you were as

Re: [web2py] smartgrid styling

2011-11-10 Thread Jim Steil
Have you started a brand new app and used it, or added it to an an older app? There were a number of css changes/additions at some point. -Jim On 11/10/2011 12:45 PM, Cliff wrote: Am I missing something? Running 1.99.2 smartgrid works but definitely needs styling. I see the styling for

Re: [web2py] Re: html from text

2011-11-10 Thread Anthony
I don't think values inside tags can include additional HTML markup. Anthony On Thursday, November 10, 2011 2:06:22 PM UTC-5, Richard wrote: > > Ok I think you were asking if it were the select html menu... > > Select menu and I want option to display differently... > > I should not used the ul

Re: [web2py] Re: html from text

2011-11-10 Thread Richard Vézina
Need something like this : http://www.web2ajax.fr/2008/02/03/facebook-like-jquery-and-autosuggest-search-engine/ Richard On Thu, Nov 10, 2011 at 2:06 PM, Richard Vézina wrote: > Ok I think you were asking if it were the select html menu... > > Select menu and I want option to display differentl

Re: [web2py] cool css3 hover effects

2011-11-10 Thread Richard Vézina
Pretty nice... Thanks Richard On Thu, Nov 10, 2011 at 1:57 PM, Massimo Di Pierro < massimo.dipie...@gmail.com> wrote: > http://tympanus.net/Tutorials/OriginalHoverEffects/index.html

Re: [web2py] Re: html from text

2011-11-10 Thread Richard Vézina
Ok I think you were asking if it were the select html menu... Select menu and I want option to display differently... I should not used the ul li helper... I just copied this lambda from somewhere else in my code to try something and ul li seems to cause confusion in this context. I want to have

[web2py] Re: Apostrophe error in the database

2011-11-10 Thread Massimo Di Pierro
Technically the flashbuilder service is wrong because it does not understand unicode escaping. Anyway, I changed the behavior for XML. Check trunk. On Nov 10, 12:39 pm, eric tchonfene wrote: > The XML is being parsed by a Flashbuilder  app and  yes the apostrophe > showing up that way is causin

[web2py] Re: Apostrophe error in the database

2011-11-10 Thread Anthony
On Thursday, November 10, 2011 12:29:58 PM UTC-5, Massimo Di Pierro wrote: > > Yes but there is nothing wrong with that. Your page is in unicode and > that is the right way to represent the apostrophe un unicode. > > Does it show an postrophe when you look at it? > Massimo, he's generating XML t

Re: [web2py] Re: Apostrophe error in the database

2011-11-10 Thread Anthony
On Thursday, November 10, 2011 1:39:01 PM UTC-5, africanacloud wrote: > > The XML is being parsed by a Flashbuilder app and yes the apostrophe > showing up that way is causing a problem. > Is JSON an option? I don't think the JSON serializer does any escaping. Anthony

[web2py] cool css3 hover effects

2011-11-10 Thread Massimo Di Pierro
http://tympanus.net/Tutorials/OriginalHoverEffects/index.html

[web2py] smartgrid styling

2011-11-10 Thread Cliff
Am I missing something? Running 1.99.2 smartgrid works but definitely needs styling. I see the styling for web2py grid in base css and grid looks fine. Smartgrid not so much.

Re: [web2py] Re: Apostrophe error in the database

2011-11-10 Thread eric tchonfene
The XML is being parsed by a Flashbuilder app and yes the apostrophe showing up that way is causing a problem. On Thu, Nov 10, 2011 at 12:28 PM, Anthony wrote: > On Thursday, November 10, 2011 12:42:42 PM UTC-5, africanacloud wrote: >> >> When I look at the data in the database it shows up jus

Re: [web2py] Re: html from text

2011-11-10 Thread Anthony
On Thursday, November 10, 2011 1:31:04 PM UTC-5, Richard wrote: > > Yes! It was an either/or question. Is it a or a based menu?

Re: [web2py] Re: html from text

2011-11-10 Thread Richard Vézina
Yes! Richard On Thu, Nov 10, 2011 at 1:20 PM, Anthony wrote: > When you say "dropdown", is it a element, or some kind of JS or > CSS menu based on a ? > > > On Thursday, November 10, 2011 12:55:57 PM UTC-5, Richard wrote: > >> I have a dropdown, I use to represent the id of the linked table wi

Re: [web2py] Re: Apostrophe error in the database

2011-11-10 Thread Anthony
On Thursday, November 10, 2011 12:42:42 PM UTC-5, africanacloud wrote: > > When I look at the data in the database it shows up just fine (Lady's > room) the error only happens when I am trying to view data as xml I get > Lady'sRoom.As I said I am new to web2py so I need to do some reading > to

Re: [web2py] Re: SQLFORM.grid : formstyle, readable and writable control

2011-11-10 Thread Anthony
On Thursday, November 10, 2011 12:42:49 PM UTC-5, Richard wrote: > > > "if 'new' in request.args:" works (allow to load the grid) but the "if > form.create_form:" not work alone or in conjunction with the former > Yeah, looks like it would have to be something like "if hasattr(form, 'create_form

Re: [web2py] Re: html from text

2011-11-10 Thread Anthony
When you say "dropdown", is it a element, or some kind of JS or CSS menu based on a ? On Thursday, November 10, 2011 12:55:57 PM UTC-5, Richard wrote: > > I have a dropdown, I use to represent the id of the linked table with the > reprensent I wrote... Now the dropdown witdh get pretty large be

[web2py] Re: Active Directory Authentication and Apache

2011-11-10 Thread Akabander
Responding to my own post... I found the problem by using tethereal to capture the exchange between my server and the Active Directory server. I was under the mistaken impression that because the web2py LDAP authentication does not require binding information that the AD server had been configure

Re: [web2py] Re: SQLFORM.smartgrid - multiple problems with latest trunk

2011-11-10 Thread Jim Steil
Ticket created http://code.google.com/p/web2py/issues/detail?id=508 On 11/10/2011 11:33 AM, Massimo Di Pierro wrote: please repost problems asap about it. I have made some backward incompatible changes to the grid/smartgrid in order to clean up the API and updating the book. the columns argum

Re: [web2py] Re: html from text

2011-11-10 Thread Richard Vézina
I have a dropdown, I use to represent the id of the linked table with the reprensent I wrote... Now the dropdown witdh get pretty large because of user data that I need to concatenate to make thing clear on what will be selected... User use to duplicate the unique key of the foreight table since qu

Re: [web2py] Re: Apostrophe error in the database

2011-11-10 Thread eric tchonfene
When I look at the data in the database it shows up just fine (Lady's room) the error only happens when I am trying to view data as xml I get Lady'sRoom.As I said I am new to web2py so I need to do some reading to understand the tool. On Thu, Nov 10, 2011 at 11:29 AM, Massimo Di Pierro < massimo.d

Re: [web2py] Re: GAE & Python 2.7

2011-11-10 Thread Jonathan Lundell
On Nov 10, 2011, at 9:40 AM, pallav wrote: > Thank you. Am testing it out now. > > On Nov 3, 8:48 pm, Jonathan Lundell wrote: >> There's now a new version of app.example.yaml in the trunk. If you're >> working with the Google App Engine, read on. >> >> GAEhas been evolving a bit, and now suppo

Re: [web2py] Re: SQLFORM.grid : formstyle, readable and writable control

2011-11-10 Thread Richard Vézina
On Thu, Nov 10, 2011 at 12:26 PM, Anthony wrote: > On Thursday, November 10, 2011 12:25:09 PM UTC-5, Anthony wrote: >> >> >> When you first call this function, there will be no form.create_form >> because it's just generating the grid. When you click on the "Add" button, >> it should call this sa

Re: [web2py] Re: Python 2.7 on GAE (experimental)

2011-11-10 Thread Jonathan Lundell
On Nov 10, 2011, at 9:32 AM, pallav wrote: >> web2py is normally multithreaded when running as a WSGI app (as with its >> internal Rocket server, or Apache mod_wsgi). GAE is just catching up. >> One GAE consideration, though, is that while normally requests within the >> same web2py session are

[web2py] Re: GAE & Python 2.7

2011-11-10 Thread pallav
Thank you. Am testing it out now. On Nov 3, 8:48 pm, Jonathan Lundell wrote: > There's now a new version of app.example.yaml in the trunk. If you're working > with the Google App Engine, read on. > > GAEhas been evolving a bit, and now supports Python 2.7 (vs 2.5). The new > app.example.yaml is

Re: [web2py] Re: SQLFORM.smartgrid - multiple problems with latest trunk

2011-11-10 Thread Jim Steil
Working up some test cases now and will submit tickets. -Jim On 11/10/2011 11:33 AM, Massimo Di Pierro wrote: please repost problems asap about it. I have made some backward incompatible changes to the grid/smartgrid in order to clean up the API and updating the book. the columns argument

[web2py] Re: SQLFORM.smartgrid - multiple problems with latest trunk

2011-11-10 Thread Massimo Di Pierro
please repost problems asap about it. I have made some backward incompatible changes to the grid/smartgrid in order to clean up the API and updating the book. the columns argument is gone because it was redundant. we have fields. I have added some params. On Nov 10, 11:16 am, Jim Steil wrote: >

[web2py] Re: Online Book Typo

2011-11-10 Thread Massimo Di Pierro
Lots of typos have been fixed. Will post a book ed 3.3 shortly On Nov 10, 11:19 am, mikech wrote: > So can we assume that the typos we see there now, have not been reported?

[web2py] Re: Python 2.7 on GAE (experimental)

2011-11-10 Thread pallav
> web2py is normally multithreaded when running as a WSGI app (as with its > internal Rocket server, or Apache mod_wsgi). GAE is just catching up. > One GAE consideration, though, is that while normally requests within the > same web2py session are serialized, that is not the case on GAE. Thanks

[web2py] Re: Apostrophe error in the database

2011-11-10 Thread Massimo Di Pierro
Yes but there is nothing wrong with that. Your page is in unicode and that is the right way to represent the apostrophe un unicode. Does it show an postrophe when you look at it? On Nov 10, 9:04 am, eric tchonfene wrote: > This the result I get when I call the function > this the xml that I get

[web2py] Re: SQLFORM.grid : formstyle, readable and writable control

2011-11-10 Thread Cliff
Got a little embarrassment here. In an earlier post I wrote something incorrect, as follows: # even more # for those times when the grid default form isn't sufficient form = SQLFORM(db.sometable, .) if form.accepts(...) #old method, I know yada yada return dict(form=

Re: [web2py] Re: SQLFORM.grid : formstyle, readable and writable control

2011-11-10 Thread Anthony
On Thursday, November 10, 2011 12:25:09 PM UTC-5, Anthony wrote: > > > When you first call this function, there will be no form.create_form > because it's just generating the grid. When you click on the "Add" button, > it should call this same function, but with "new" as one of the URL args. > S

Re: [web2py] Re: SQLFORM.grid : formstyle, readable and writable control

2011-11-10 Thread Anthony
On Thursday, November 10, 2011 10:52:42 AM UTC-5, Richard wrote: > > def test_sqlformgrid(): > table = SQLFORM.grid(db.TABLE, ui='jquery-ui', > editable=auth.has_membership('reviewer'), > deletable=auth.has_membership('reviewer'), formstyle = 'divs') > for i in range(0,len(form.create_for

Re: [web2py] Re: html from text

2011-11-10 Thread Anthony
I don't understand -- where is that ul supposed to go? What field are your representing? What is the "default navigator drop box"? On Thursday, November 10, 2011 12:03:27 PM UTC-5, Richard wrote: > > Workin in console : > > > In [1]: test123 = 'test/test2/test3/' > > In [2]: test123 > Out[2]: '

Re: [web2py] Re: Online Book Typo

2011-11-10 Thread mikech
So can we assume that the typos we see there now, have not been reported?

[web2py] SQLFORM.smartgrid - multiple problems with latest trunk

2011-11-10 Thread Jim Steil
Hi I've been using SQLFORM.smartgrid for some time now. I updated to the latest trunk this morning and am now having a number of different issues with code unchanged from yesterday. Are there changes pending and I should hold off reporting problems, or should I start going through them?

[web2py] Re: excessive memory usage on webfaction

2011-11-10 Thread BrendanC
I had the same problem with webfaction - be sure to set your static files to be delivered by ngenix or apache. I followed the info in the link above and it reduced my memory usage However I have both a Django and a Web2py instance set up on my account and Web2py takes more memory for my a small

Re: [web2py] Re: html from text

2011-11-10 Thread Richard Vézina
Hello Anthony, I am trying to do something bizzard... I would like to have your advice if it's even possible : represent=lambda value, row: (value!=None and XML(UL(*[ LI(v) for v in value.split('/') if v != '' ]))) or 'None' I would like the default navigator drop box to display html stuff is th

Re: [web2py] Re: html from text

2011-11-10 Thread Richard Vézina
Workin in console : In [1]: test123 = 'test/test2/test3/' In [2]: test123 Out[2]: 'test/test2/test3/' In [3]: for v in test123.split('/'): ...: if v != '': ...: v ...: ...: Out[3]: 'test' Out[3]: 'test2' Out[3]: 'test3' In [4]: XML(UL(*[ LI(v) for v in test123.split('/'

[web2py] Re: excessive memory usage on webfaction

2011-11-10 Thread annet
Hi Richard, This thread: http://groups.google.com/group/web2py/browse_thread/thread/ce28ccceb29a459/e2d7471f2894b177 ... provide two solutions to reduce memory usage. Kind regards, Annet.

[web2py] Re: CAS auto login for all apps

2011-11-10 Thread pepper_bg
>I still need to click login > button right now. Just add @auth.login_required on top of the controller functions you want to auto login from in the consumers and if you are logged in at the CAS provider you will get logged in here as well (I believe this what you are describing you want to do now

[web2py] SQLFORM.smartgrid | linked_tables with

2011-11-10 Thread olivier
Hi here! I am experimenting with the smartgrid. Very nice time-saving feature which reminds me why I love web2py! ;-) (I believe there is still no doc about grid and/or smartgrid?) I have a problem with linked_tables. The model looks like this: db.define_table('person',Field('name')) db.define_

[web2py] Re: The -f command line switch seems to break custom_import

2011-11-10 Thread pgergo
Fix, in case anyone interested: --- a/custom_import.py 2011-10-01 12:03:20.0 +0200 +++ b/custom_import.py 2011-11-10 16:22:29.466847323 +0100 @@ -11,7 +11,7 @@ def custom_import_install(web2py_path): global _web2py_importer global _web2py_path -if _web2py_import

Re: [web2py] Offline Access to web2py manual?

2011-11-10 Thread ~redShadow~
On Thu, 2011-11-10 at 04:03 -0800, Anthony wrote: > On Thursday, November 10, 2011 6:58:44 AM UTC-5, Samuele Santi wrote: > Why are always the more useful things undocumented?? > > This is not any kind of official web2py method -- it's a general > method available in Linux for copy

Re: [web2py] SQLFORM.grid - columns arg is gone

2011-11-10 Thread Jim Steil
Here is the change I made in my code to accommodate: Old code: columns=['assetType.name'] New code: fields=[db.assetType.name] Other than that, seems like they work the same. Can anyone provide a deeper explanation of the differences? -Jim On 11/10/2011 9:17 AM, Jim Steil wrote: Hi

[web2py] Re: html from text

2011-11-10 Thread Anthony
I did it like this (using the jQuery adapter to start CKEditor): $(function() { var toolbar = [ { name: 'document',items : [ 'Source' ] }, { name: 'clipboard', items : [ 'Cut','Copy','Paste','PasteText','PasteFromWord','-','Undo','Redo' ] }, { name: 'links',

Re: [web2py] Re: SQLFORM.grid : formstyle, readable and writable control

2011-11-10 Thread Richard Vézina
Hello Anthony, Are they flowing by the function where the SQLFORM.grid is calling or do I have to modify the grid class into sqlhtml.py? I naively try this that didn't work : def test_sqlformgrid(): table = SQLFORM.grid(db.TABLE, ui='jquery-ui', editable=auth.has_membership('reviewer'), dele

[web2py] Re: SQLFORM.grid - columns arg is gone

2011-11-10 Thread Cliff
It does not work that way in 1.99.2. On Nov 10, 10:17 am, Jim Steil wrote: > Hi > > I just updated my web2py from trunk today and noticed that the columns > arg in SQLFORM.grid is gone.  I was using it to specify which fields to > display in my grid.  Can the 'fields' arg be used the same as colu

[web2py] Re: SQLFORM.grid - columns arg is gone

2011-11-10 Thread Anthony
On Thursday, November 10, 2011 10:17:20 AM UTC-5, Jim S wrote: > > Can the 'fields' arg be used the same as columns? > Based on the comments in the new code, looks like that is the intention.

[web2py] Re: html from text

2011-11-10 Thread peter
I am a bit bemused, surely the reason for using ckeditor is to have wysiwyg editing. Yet I have tried both the slices version and the the plugin of ckeditor and they both just seem to allow editing but with no toolbar for emboldening etc. I woudl have thought the defualt ought to include this. I h

[web2py] SQLFORM.grid - columns arg is gone

2011-11-10 Thread Jim Steil
Hi I just updated my web2py from trunk today and noticed that the columns arg in SQLFORM.grid is gone. I was using it to specify which fields to display in my grid. Can the 'fields' arg be used the same as columns? -Jim

[web2py] Re: new welcome app - need help with css

2011-11-10 Thread Paolo Caruccio
Other css rules are related to the specific case and override the general css rules applied to web2py_grid. But I'm agreed with you: the best solution is to give a class or an id to the container div. Paolo

Re: [web2py] Re: Apostrophe error in the database

2011-11-10 Thread eric tchonfene
This the result I get when I call the function this the xml that I get back my apostrophe is changed to ' Lady'sRoom On Thu, Nov 10, 2011 at 8:31 AM, Massimo Di Pierro < massimo.dipie...@gmail.com> wrote: > There are two warnings in this page: > http://www.pythonsecurity.org/wiki/web2py/?version=

[web2py] Re: changing default redirect after failed login attempt.

2011-11-10 Thread Christopher Steel
Ah ha! This works like a charm, makes sense auth.settings.controller = 'plugin_user_admin'

[web2py] Re: html from text

2011-11-10 Thread peter
thanks

Re: [web2py] Re: SQLFORM.grid : formstyle, readable and writable control

2011-11-10 Thread Anthony
On Wednesday, November 9, 2011 5:11:40 PM UTC-5, Richard wrote: > > > Now I would like to know how I can intercept the html form before it get > in the face of the user... I mean I use to do this hack to show user help > bubble to the user : > > > form = crud.create(db[request.args(0)]) > for i i

  1   2   >