[web2py] Re: A requested feature...

2011-05-06 Thread pbreit
Not a bad idea but not sure exactly how it would work. There are already some good scripts in the Web2py distribution for setting up Web2py on Ubuntu (my preference) and Fedora: http://code.google.com/p/web2py/source/browse/#hg%2Fscripts I also created some Fabric scripts for Nginx and Cherokee

[web2py] A requested feature...

2011-05-06 Thread Jason Brower
I think another nice feature for web2py could be deployment to amazon cloud. That is, it sets up everything on the cloud for you and deploys it there. Other features to go really high-tech would be to also setup the static file management for you as well. So that could be on another server. Th

[web2py] Re: Audit for all tables, independent of CRUD; and transaction rollback.

2011-05-06 Thread nick name
Thanks for the answer. However, as I mentioned in my original post, the crud's record versioning is not sufficient for my needs.

[web2py] Re: Audit for all tables, independent of CRUD; and transaction rollback.

2011-05-06 Thread nick name
On Friday, May 6, 2011 6:44:18 PM UTC-4, pbreit wrote: > > Check out "auth.signature". It adds and manipulates these columns: > is_active, created_on, created_by, modified_on, modified_by. > Thank you for your answer. This is a good "mix-in" table for the things I need. However, neither signatu

[web2py] Re: help

2011-05-06 Thread pbreit
http://grizzlyweb.com/webmaster/javascripts/redirection.asp But I'm not sure why you would want to do that.

Re: [web2py] Re: help

2011-05-06 Thread TÅ®å ßrown
i have thought about doin it in the controller..but i used a ajax jquery function to enter data in a database but right after that i wanted it to redirect to another page.. i tried calling the fuction of the default page that i wanted but it doesnt redirect it just gives a 200 instead of a 303...

[web2py] Re: a new html editor

2011-05-06 Thread Massimo Di Pierro
So here is my wish list 1) make sure it does escape or validate URLs (at list allow disabling) so that we can use it to edit layouts and insert {{=URL(...)}} in place of links. 2) allow restriction of features so that only allows HTML that can be converted to markmin.(B, EM, UL/LI, OL/LI, P,

[web2py] Re: Error on python2.4

2011-05-06 Thread Massimo Di Pierro
Can we see the code that triggered this. I do not think we broke this but could be. On May 6, 7:01 pm, Tito Garrido wrote: > I could solve the problem commenting the sha512 keys setting... > > It's not on my code... seems that web2py doesn't support python 2.4 > anymore... > > On Fri, May 6, 2011

Re: [web2py] Re: help

2011-05-06 Thread Shishir Ramam
not sure why you'd do that on the client, but assign a function to window.onload something like (function() { var oldonload = window.onload, func = function() { // redirect here... }; if (typeof window.onload

[web2py] Re: Audit for all tables, independent of CRUD; and transaction rollback.

2011-05-06 Thread DenesL
Have a look at http://web2py.com/book/default/chapter/07#Record-Versioning On May 6, 6:18 pm, nick name wrote: > My use of web2py requires an audit trail for (essentially) all database > tables; The preferable way to do that is to keep a "foo_history" table for > each table "foo". The records (

[web2py] Re: help

2011-05-06 Thread Resa
mean i am in index.html and it had a javascript function that holds redirect to physics.html... when i load index.html it doesn't go to index.html at all it skips it and executed physics.html.. do u understand? so when the page is loaded it executes the JavaScript without it being called On May 6

Re: [web2py] help

2011-05-06 Thread Shishir Ramam
http://stackoverflow.com/questions/503093/how-can-i-make-a-redirect-page-in-jquery On Fri, May 6, 2011 at 5:21 PM, Resa wrote: > how can i redirect to another page in a JavaScript function without > executing it until the function is actually called??? -- Imagine there were no hypothetical

[web2py] help

2011-05-06 Thread Resa
how can i redirect to another page in a JavaScript function without executing it until the function is actually called???

Re: [web2py] Re: a new html editor

2011-05-06 Thread pbreit
Just seems like the gray fade wil not fit in with any site design. A solid, very light shade of gray or just white I think works better. Looks a little Windows-ish which will be a non-starter for many.

Re: [web2py] Re: Error on python2.4

2011-05-06 Thread Tito Garrido
I could solve the problem commenting the sha512 keys setting... It's not on my code... seems that web2py doesn't support python 2.4 anymore... On Fri, May 6, 2011 at 6:35 PM, pbreit wrote: > Ca we see some code? The lines around line 72 in default.py -- Linux User #387870 . ..

Re: [web2py] Re: a new html editor

2011-05-06 Thread ADE
I don't mind the gray. Maybe make the colours easily customizable some how for it I agree window should be re-sizable And tool tips are handy :-) What I think a lot of these apps miss is the ability to embed youtube videos and different stuff like that maybe make a BBCode extension also I don't

[web2py] Re: a new html editor

2011-05-06 Thread pbreit
Not too bad. I've been using NicEdit and am reasonably happy although not married to it. Despite the plethora of options, I still haven't one that doesn't suck in some way. TinyMCE is way too bloated and outdated. CKeditor is also bloated and the new design is horrific. Regarding yours: * don't

[web2py] Re: Audit for all tables, independent of CRUD; and transaction rollback.

2011-05-06 Thread pbreit
Check out "auth.signature". It adds and manipulates these columns: is_active, created_on, created_by, modified_on, modified_by. I think is_active is to be used in place of deleting but I'm not sure. I believe it's based on the Table Inheritance capability: http://web2py.com/book/default/chapter

[web2py] a new html editor

2011-05-06 Thread elffikk
hi, I am here to present a work in progress: a lighweight jquery based html editor http://8plus2.org/init/static/bolteditor/index.html it is in alpha version now it is 10kb of js code + 15kb html+css+images and of course dependencies jquery and jquery.ui.position user interface (and just user

[web2py] Audit for all tables, independent of CRUD; and transaction rollback.

2011-05-06 Thread nick name
My use of web2py requires an audit trail for (essentially) all database tables; The preferable way to do that is to keep a "foo_history" table for each table "foo". The records (both audited and original) need to have a "revision" that increments with each update, and "last modified on", "last

[web2py] Re: Odg.: Re: 1.95.1 - Field delete_this_record does not belong to the table

2011-05-06 Thread Massimo Di Pierro
Can you print for me what is in request.vars when you get this error? On May 6, 2:49 pm, andrej burja wrote: > it is not (in 2011-05-05) > but there is one difference: even when deletable is enabled, i first get the > error (when there is an upload field) > > Field logo_highres__delete does not

[web2py] Re: Error on python2.4

2011-05-06 Thread pbreit
Ca we see some code? The lines around line 72 in default.py

[web2py] Re: Cloud Database

2011-05-06 Thread howesc
google big table is used in conjunction with the Google App Engine. there are several known web2py applications that are successfully deployed on Google App Engine. Google provides hosting for all app engine applications, and it's free up to certain daily usage limits.

[web2py] Re: automate web2py startup and shutdown via the command line in linux, OS X and unix etc.

2011-05-06 Thread Christopher Steel
I found an interesting discussion on this here: http://groups.google.com/group/web2py/browse_thread/thread/1c3621393c7f0a33 It includes a nice one for starting and stopping Web2py from the command line that Jonathan Lundell made from a script in scripts/ Seems to work great on OS X. C. On May

Re: [web2py] Re: python 2.4 support

2011-05-06 Thread Tito Garrido
Same problem to me :( On Wed, Jul 28, 2010 at 8:27 PM, Cory Coager wrote: > Sorry for my delay in testing. The gluon/tools.py seems to be > compatible now and the rocket patch seems to work also. However, the > hashlib issue still exists as I'm still getting this error: > > AttributeError: 'bu

Re: [web2py] Re: a chance to vote for web2py

2011-05-06 Thread Bruno Rocha
I hope people from "other frameworks" do not come to argue against. I know people who would do anything not to devalue the money they has investment in python frameworks. -- Bruno Rocha [ About me: http://zerp.ly/rochacbruno ] On Fri, May 6, 2011 at 4:20 PM, cyber wrote: > top 8 > > On 6 май

[web2py] Error on python2.4

2011-05-06 Thread Tito Garrido
Folks, I'm using kinghost.com.br as hosting and I got the following error when I try to login as a user on web2py: Traceback (most recent call last):\n File "/home/falavalmir/apps_wsgi/falavalmir/gluon/restricted.py", line 181, in restricted\nexec ccode in environment\n File "/home/falavalmi

[web2py] Re: skinning a cat ...

2011-05-06 Thread Niphlod
go for raw sql if you need to, but be aware that that article was written in 2007, testing only MS SQL Server behaviour we are in 2011, MS SQL Server 2008 is on the run (and that article could be referring only to the 2000 or 2005 version)... Hopefully MS ingeneers have found (or will find) h

[web2py] Odg.: Re: 1.95.1 - Field delete_this_record does not belong to the table

2011-05-06 Thread andrej burja
it is not (in 2011-05-05) but there is one difference: even when deletable is enabled, i first get the error (when there is an upload field) Field logo_highres__delete does not belong to the table andrej

[web2py] Re: Problem with Mail.Attachment

2011-05-06 Thread pbreit
attachment = Mail.Attachment(filename) "is not callable" usually means there is something in () that should not bet.

[web2py] Re: Multiuser mode issues with uploading project

2011-05-06 Thread Massimo Di Pierro
The point of multi-user model is to allow a teacher to setup an environment for students. Each student gets one app. There is no security, nothing to prevent one student to mess up web2py and/or other students projects. On May 6, 2:38 pm, ADE wrote: > Hello I am trying to figure out Multiuser mod

[web2py] Re: Cloud Database

2011-05-06 Thread pbreit
Google App Engine or MySQL are fine so go with what you are most comfortable with. As you get going you'll gain a better understanding of what your needs are and what solutions are most appropriate. You can even use both if necessary.

[web2py] Multiuser mode issues with uploading project

2011-05-06 Thread ADE
Hello I am trying to figure out Multiuser mode. The issue I am having is when a user uploads a project it doesn't appear in there workspace Another issue is if I upload a project as admin its not editable and in this case the project had an error and I could not see those errors, I received the me

[web2py] sessions2trash.py improved

2011-05-06 Thread Jim Karsten
Ross Peoples and I created a new version of sessions2trash.py. Features include: - Deletes expired sessions files only based on sessions actual expiration value. - An option to delete sessions files once, then exit. - An option to set the expiration time, overriding the defaul

[web2py] Re: a chance to vote for web2py

2011-05-06 Thread cyber
top 8 On 6 май, 23:17, cyber wrote: > * > Voted! Top 9! > * > > On 6 май, 21:53, Ovidio Marinho wrote: > > > > > > > > > top 9 voted. > > >         Ovidio Marinho Falcao Neto > >              ovidio...@gmail.com > >                      88269088 > >                    Par

[web2py] Re: a chance to vote for web2py

2011-05-06 Thread cyber
* Voted! Top 9! * On 6 май, 21:53, Ovidio Marinho wrote: > top 9 voted. > >         Ovidio Marinho Falcao Neto >              ovidio...@gmail.com >                      88269088 >                    Paraiba-Brasil > > 2011/5/6 Robert Kooij > > > > > > > > > Voted! :)

[web2py] Problem with Mail.Attachment

2011-05-06 Thread Ross Peoples
Updated web2py from trunk this morning. Something changed in tools.py in the last few days that caused the following code to fail: attachment = (Mail.Attachment(filename)) The error that results: File "/media/psf/Python/web2py/gluon/tools.py", line 139, in __init__ content_type = contenttyp

[web2py] Re: Compile Error

2011-05-06 Thread Ross Peoples
I think you have an {{include 'file'}} somewhere in one of your templates, and it can't find the filename.

[web2py] Re: Cloud Database

2011-05-06 Thread stargate
Can Google BigTable work with web2py and can it be hosted on http://www.dotcloud.com/ ? On May 6, 2:16 pm, Bruno Rocha wrote: > Google BigTable except for the joins.. > > On Fri, May 6, 2011 at 3:06 PM, stargate wrote: > > If you are starting out a new social site is it better to do it in > > my

Re: [web2py] Re: python/javascript

2011-05-06 Thread TÅ®å ßrown
smiles... thats perfectly ok.. and i understand trust me i do lol.. -- Live Laugh Love || Strength, Courage and Wisdom

Re: [web2py] Re: some new cool stuff in trunk under testing

2011-05-06 Thread Ross Peoples
That would be nice. Also might I suggest a way to import gluon.storage.Storage when doing 'from gluon import *'. I find myself using Storage a lot, so having that load as a part of 'from gluon import *' would be awesome.

Re: [web2py] Cloud Database

2011-05-06 Thread Bruno Rocha
Google BigTable except for the joins.. On Fri, May 6, 2011 at 3:06 PM, stargate wrote: > If you are starting out a new social site is it better to do it in > mySQL first then move to a cloud database. Which cloud database is > better and similar to mySQL slect statements?

[web2py] automate web2py startup and shutdown via the command line in linux, OS X and unix etc.

2011-05-06 Thread Christopher Steel
If you are running OS X or some other nix like OS you can use the GUI in which case you need to type your administrative password or you can go without the GUI in which case you need to manually point your browser to the correct location. You can have both with these two collections of commands ru

[web2py] Compile Error

2011-05-06 Thread Deepan
Hi All, I am relatively new to web2py. I built a small application it works perfectly fine, but when I try to compile the applications it results in an error. It would be great if some one could let me know where i am going wrong !!! Here is the trace: Traceback (most recent call last): File "

Re: [web2py] Re: some new cool stuff in trunk under testing

2011-05-06 Thread Jonathan Lundell
On May 6, 2011, at 10:56 AM, Ross Peoples wrote: > Ignore the part about 'from gluon import current' not working in the models. > Restarting the web2py server fixed the problem. I may have forgotten to do > that after updating from trunk. > > But out of curiosity, is there a reason other model v

Re: [web2py] Re: webfaction python2.5 -> python2.6

2011-05-06 Thread Vasile Ermicioi
I guess you can use nginx 1.0.1, but I send you what I did and I know that it works [nginx] wget http://nginx.org/download/nginx-0.8.54.tar.gz tar xvxf nginx-0.8.54.tar.gz cd nginx-0.8.54 ./configure \ --prefix=/home/yourusername/nginx \ --sbin-path=/home/yourusername/nginx/sbin/nginx \ --co

[web2py] Cloud Database

2011-05-06 Thread stargate
If you are starting out a new social site is it better to do it in mySQL first then move to a cloud database. Which cloud database is better and similar to mySQL slect statements?

[web2py] Re: some new cool stuff in trunk under testing

2011-05-06 Thread Ross Peoples
Ignore the part about 'from gluon import current' not working in the models. Restarting the web2py server fixed the problem. I may have forgotten to do that after updating from trunk. But out of curiosity, is there a reason other model variables (auth, db, etc) are showing up in current?

Re: [web2py] Re: a chance to vote for web2py

2011-05-06 Thread Ovidio Marinho
top 9 voted. Ovidio Marinho Falcao Neto ovidio...@gmail.com 88269088 Paraiba-Brasil 2011/5/6 Robert Kooij > Voted! :) > >

[web2py] Re: webfaction python2.5 -> python2.6

2011-05-06 Thread robsan
I'd appreciate if you could share your insight on that configuration, as I'm currently using Apache and would like to slim down the setup. On May 6, 5:29 pm, Vasile Ermicioi wrote: > I also use webfaction : python2.7 + uwsgi + nginx > > if you like and need help with that configuration...

Re: [web2py] Re: Confusion using experts4solutions

2011-05-06 Thread Jason Brower
Awww... Massimo... is that a tear? I knew you had made a good product, but I didn't know you were man enough to cry about it. :) :P On 05/06/2011 08:15 PM, Massimo Di Pierro wrote: :-) On May 6, 11:15 am, GoldenTiger wrote: *>>Massimo Di Pierro*: *>> I did not know Ross (or I did not r

Re: [web2py] PowerTable editable callback

2011-05-06 Thread Bruno Rocha
Hi Thiago, from where are you getting the cariable 'value'? can you see an error ticket on admin? BTW: PowerTable is in 'alfa' version, I have to finish this plugin (any volunteer to help?) The editable functionality is experimental but it works for some cases, let me explain how it works. It u

[web2py] Re: some new cool stuff in trunk under testing

2011-05-06 Thread Ross Peoples
I am still in the process of rewriting my modules and I've run into a problem. First, I noticed that auth is not part of current. Only cache, session, request, response, and T are a part of current. I have z_import_modules.py model that I used to use to import modules using local_import(). Howe

[web2py] Re: After login bringing up a page link

2011-05-06 Thread Massimo Di Pierro
This may work, but I have not tred it auth.settings.login_onaccept = lambda form: session.update(dict(flash=A('click me',_href=URL('index' On May 6, 11:40 am, JagChris wrote: > After logging in, i want a user to see a link popping up on the screen > so that when they click this link they g

[web2py] Re: Update application without deleting tables

2011-05-06 Thread Massimo Di Pierro
I think you are using auth but are not running auth.define_tables() On May 6, 11:03 am, Marcelo Martinez wrote: > reason to remove the tables is because I get the following error: > > ('NoneType' object has no attribute 'insert > ') > > an attachment is the picture with the error. > > Once you

[web2py] Re: Confusion using experts4solutions

2011-05-06 Thread Massimo Di Pierro
:-) On May 6, 11:15 am, GoldenTiger wrote: > *  >>  Massimo Di Pierro*: > *  >> I did not know Ross (or I did not remember). That means there are even > >   >> more people doing experts4solution work than I thought > * > Me too. > My current job is because web2py. It is a high-paying job, no sch

[web2py] After login bringing up a page link

2011-05-06 Thread JagChris
After logging in, i want a user to see a link popping up on the screen so that when they click this link they go straight to a different page?

[web2py] Re: CRUD.search sorting order

2011-05-06 Thread Massimo Di Pierro
Please open an issue in google code -- Forwarded message -- From: villas Date: May 6, 10:56 am Subject: CRUD.search sorting order To: web2py-users Hi Niknok I have looked at this in a little more detail now.  The main problem seems to be that web2py does not accept the orderby

[web2py] Re: Gluon contrib json encoder

2011-05-06 Thread omicron
Yes. But my problem is with jsonrpc service. There is a bug in tools.py, line 3554 : replace "return simplejson.dumps(..." by "return serializers.json(..." On 6 mai, 18:49, Mathew Grabau wrote: > For me to overcome the issues specified by this I switched to using: > > return response.json(...stu

[web2py] Re: Gluon contrib json encoder

2011-05-06 Thread Mathew Grabau
For me to overcome the issues specified by this I switched to using: return response.json(...stuff to return...) The datetime encoder is not in there anymore and it was causing me trouble. This corrected the issue. On May 6, 8:20 am, omicron wrote: > Before, the encoder have : > > """Implementa

[web2py] Re: Web2py MySql Tables coming empty

2011-05-06 Thread pbreit
What is line 5 in db.py?

[web2py] Re: ajax:whats wrong with this

2011-05-06 Thread pbreit
I'd like to help but am extremely confused by your code and what you are trying to do. I would reiterate trying to start simply, get it to work and then add more complexity. And try to make your code look like code found in the book. It makes it a lot easier for us to understand. http://web2py.

Re: [web2py] Re: webfaction python2.5 -> python2.6

2011-05-06 Thread Vasile Ermicioi
I also use webfaction : python2.7 + uwsgi + nginx if you like and need help with that configuration...

Re: [web2py] Update application without deleting tables

2011-05-06 Thread pbreit
I would suggest trying to figure out the root cause instead of deleting tables because that should not be happening.

Re: [web2py] Update application without deleting tables

2011-05-06 Thread pbreit
That's odd. And odd that deleting the tables fixes it. Do you have a settings.table_event or settings.table_event_name in any of your models? You might also try updating to a more current version of Web2py (but this should not be necessary).

[web2py] Re: Confusion using experts4solutions

2011-05-06 Thread GoldenTiger
* >> Massimo Di Pierro*: * >> I did not know Ross (or I did not remember). That means there are even >> more people doing experts4solution work than I thought * Me too. My current job is because web2py. It is a high-paying job, no schedules, and I work from home. The job requirements were

[web2py] Re: skinning a cat ...

2011-05-06 Thread pbreit
I didn't see EXISTS in dal.py: http://code.google.com/p/web2py/source/browse/gluon/dal.py That seems like it might be a tricky optimization to program but perhaps it's possible. You could also use raw sql: http://web2py.com/book/default/chapter/06#Raw-SQL

[web2py] Re: python/javascript

2011-05-06 Thread ron_m
Please don't multiple post the same question. I have seen this question posed 3 times in the last day and it has been answered by several people in the different instances of the question. If you don't get an answer right away it is because: 1) Everyone that might want to answer is getting 3 or

[web2py] Re: requires questions

2011-05-06 Thread pbreit
Maybe the IS_EXPR() validator? IS_EXPR IS_EXPR Its first argument is a string containing a logical expression in terms of a variable value. It validates a field value if the expression evaluates to True. For example: 1. 2. requires = IS_EXPR

[web2py] Re: spatial page load by ajax

2011-05-06 Thread Anthony
On Friday, May 6, 2011 1:19:55 AM UTC-4, 黄祥 wrote: > >

[web2py] Re: CRUD.search sorting order

2011-05-06 Thread villas
Hi Niknok I have looked at this in a little more detail now. The main problem seems to be that web2py does not accept the orderby argument for crud.search. ** I believe this is a bug ** I think it should be possible to fix this easily enough in tools.py but it is best if someone with more exper

[web2py] Re: validator for self-join

2011-05-06 Thread pbreit
I think this might be what you want: crud.settings.create_onvalidation.mytablename.append(lambda form:) http://web2py.com/book/default/chapter/07#Settings

[web2py] Re: python/javascript

2011-05-06 Thread Massimo Di Pierro
No. You have to send h to the server via ajax. The "message: variable lives in the server, not the client. On May 6, 6:13 am, Resa wrote: > how can i put javascript in a python variable eg > > var h-"hello" > {{message}}=h > can this work and if not how can i do it?

[web2py] Re: Chunked downloads and corrupt files with Internet Explorer 8 (IE8)

2011-05-06 Thread Massimo Di Pierro
Can you try 1.95.1 On May 6, 6:03 am, Stefan Scholl wrote: > The classic download function: > > def download(): >     return response.download(request, db) > > I'm developing on localhost (127.0.0.1, no SSL) and one strange thing > happened: Downloads in IE8 (Windows XP) were all corrupt/broken i

[web2py] Re: Gluon contrib json encoder

2011-05-06 Thread pbreit
Looks like the whole package was updated March 1: http://code.google.com/p/web2py/source/detail?r=8b84ce8b08ebe4af15778d54dc3fc898d159055e&path=/gluon/contrib/simplejson/encoder.py

[web2py] Re: 1.95.1 - Field delete_this_record does not belong to the table

2011-05-06 Thread Massimo Di Pierro
I believe this is fixed in trunk. Can you confirm? On May 6, 4:05 am, andrej burja wrote: > After upgrading to 1.95.1 (on windows, from source) get error: > > Traceback (most recent call last): >   File "...\gluon\restricted.py", line 181, in restricted >     exec ccode in environment >   File ".

[web2py] PowerTable editable callback

2011-05-06 Thread Tiago Moutinho
Hello, I'm using PowerTable and I love it! But I have an issue: I want to edit a column named status, but only that column. And i want to alter de value of that column (status) on the databse, with an update. I've made an editable function, but something is missing, i guess, because it does not w

[web2py] PowerTable editable callback

2011-05-06 Thread Tiago Moutinho
Hello, I'm using PowerTable and I love it! But I have an issue: I want to edit a column named status, but only that column. And i want to alter de value of that column (status) on the databse, with an update. I've made an editable function, but something is missing, i guess, because it does not w

[web2py] Web2py MySql Tables coming empty

2011-05-06 Thread vrathore
Hello There, I am connecting to my existing Mysql DB, i am able to connect, but i am getting tables empty. Here is the Sample Code db=SQLDB('mysql://varun:VaruN@192.168.0.240:3306/test') print db print "gettables" ,db.tables I get the following respose on the console database , 'che ck_reserved'

[web2py] crud update weirdness

2011-05-06 Thread Mike
I'm trying to utilize crud update but for some reason the submission is not working right. I'm trying to send the page to a crud update page using this logic: VIEW: {{=FORM(INPUT(_type='submit',_value = 'Edit'), hidden=dict(Record=row.id),_action='hostname_modify')}} CONTROLLER FOR CRUD: def host

[web2py] Re: webfaction python2.5 -> python2.6

2011-05-06 Thread pbreit
Is this what you want? http://docs.webfaction.com/software/python.html 1. Open an SSH session. 2. Open ~/.bash_profile in a text editor. 3. On a new line, add alias python=python*X.Y* where *X.Y* is the Python version number. For example, to use Python 2.6 by default, add a new line

Re: [web2py] Update application without deleting tables

2011-05-06 Thread Kenneth Lundström
Hello, why do you have to remove the tables? What kind of changes are you making to the code? Kenneth The problem I have is when I update an application, when loading the application with the changes I have to remove the tables auth_event, auth_group, auth_membership, auth_permission. My qu

[web2py] Re: Update application without deleting tables

2011-05-06 Thread pbreit
I believe this will do it although I have not tested: # ## if none, they will be created settings.table_group = True settings.table_membership = True settings.table_permission = True settings.table_event = True I usually just ignore them. One thing I do is

[web2py] Re: represented fields and jqgrid

2011-05-06 Thread pbreit
I'm not sure this is a valid function: config.member_status.get(i) Where did you get that?

[web2py] Re: represented fields and jqgrid

2011-05-06 Thread Ross Peoples
I had similar issues with computed fields. I don't know if this helps or not, but it looks like you are using member_status as a selection of hard coded options. This is what I do: db.member_statuses = { 1: 'Active', 2: 'Inactive', } db.define_table('auth_user_extended', Field('auth_user',

[web2py] Re: how do you put a JavaScript variable in a python variable

2011-05-06 Thread pbreit
I suppose you could do this but I'm not really sure why you'd want to. What are you trying to do? {{js = XML("alert('Hello.');")}} {{=js}}

Re: [web2py] Re: a chance to vote for web2py

2011-05-06 Thread Robert Kooij
Voted! :)

[web2py] Update application without deleting tables

2011-05-06 Thread mmartinez
The problem I have is when I update an application, when loading the application with the changes I have to remove the tables auth_event, auth_group, auth_membership, auth_permission. My question is I have to do to avoid having to delete these tables, I am working with postgresql.

[web2py] Re: how do you put a JavaScript variable in a python variable

2011-05-06 Thread ron_m
In a typical view file you have to think about where the execution will occur. The Python code in the view will run on the server as part of the page generation process, the page is shipped out to the user's browser as the response and will be HTML and Javascript and the Javascript that possibl

[web2py] Re: Component's non-ascii response.flash does not show well in IE and Firefox

2011-05-06 Thread Iceberg
You did not see them, because I did not mail them. :-) Well, nice to see two fixes are in. But your fix to issue 260 breaks all response.js feature. I've write some comment in the code review. Read the "line-by-line comment" here please. http://code.google.com/p/web2py/source/detail?r=01fc4d0b7feb

[web2py] how do you put a JavaScript variable in a python variable

2011-05-06 Thread Resa
how can i put javascript in a python variable eg var h-"hello" {{message}}=h can this work and if not how can i do it?

[web2py] webfaction python2.5 -> python2.6

2011-05-06 Thread olivier
hi there, I have an old installation of web2py on webfaction. It is using mod_wsgi 2.5 and Python 2.5.4 How can I a upgrade to python 2.6? (I need it for some modules I plan to use) Should I start a new installation from scratch or is there a simpler way to migrate to mod_wsgi 3.3 and Python 2.6?

[web2py] Re: vertical submenu width pb

2011-05-06 Thread francois
ok that's good, yesterday I was not having the right glasses. thank you Francois On 5 mai, 20:20, Anthony wrote: > I see a few problems: > >    - It should be =MENU(...), not MENU=(...) >    - The arguments should be separated by commas, not spaces. >    - _lu_class should be ul_class. > >

[web2py] PowerTable editable callback

2011-05-06 Thread Francisco Costa
Hello, I'm using PowerTable and I love it! But I have an issue: I want to edit a column named status, but only that column. And I want to alter de value of that column (status) on the databse, with an update. I've made an editable function, but something is missing, I guess, because it doesn't wo

[web2py] Re: validator for self-join

2011-05-06 Thread Dave
I'm having trouble getting a custom validator to work with the crud form. Is the is the correct implementation? def f(form): #if form.vars.id == form.vars.myfield: form.errors.myfield = 'cannot be same as id' ... form = crud.update(db.mytable,myrecord,onvalidation=f) ... The form

[web2py] Gluon contrib json encoder

2011-05-06 Thread omicron
Before, the encoder have : """Implementation of JSONEncoder Modified by Massimo Di Pierro to handle datetime """ and now it's not the case in the last stable version ?

[web2py] Re: represented fields and jqgrid

2011-05-06 Thread niknok
bump... Anyone? On May 5, 8:27 am, niknok wrote: > I .represent a field as follows: > >         db.auth_user.gender.represent=lambda i: db.aux_gender[i].concept[:1] > if i>0 else '?' >         db.auth_user.member_status.represent=lambda i: > config.member_status.get(i)[:1] or '?' > > The first

[web2py] requires questions

2011-05-06 Thread niknok
I'm doing a requires statement so the id number matches a prescribed format, encrypt it, and then store it in the database (if it isn't a duplicate number) db.card.id_number.requires=[eval(db.agency[int(request.vars.id_number)].regex),CRYPT(),IS_NOT_IN_DB(db,'card.id_number') Do you use ev

[web2py] skinning a cat ...

2011-05-06 Thread niknok
this SQL statement : SELECT agency.card_type FROM agency WHERE agency.id NOT IN (select issuer from card where person=1) is equivalent in DAL: registered_cards=db(db.card.person==1)(db.card.issuer==db.agency.id)._select(db.card.issuer) unregistered_cards=db((db.agency.is_active

[web2py] Re: CRUD.search sorting order

2011-05-06 Thread niknok
Thanks for the response Villas. Do note that my use of fields=['id','last_name','first_name', ... is based on examples in the book . I tried your suggestions, sadly, I'm getting a KeyError error message. W2P complaining about the "db.auth_user" table names... Have you tried this out yourself an

  1   2   >