[web2py] Get rid of a label in web2py SQLFORM

2011-08-24 Thread Jason Brower
I have a label I want to get ride of but this doesn't work... Field('email', 'string', label=None), no this... Field('email', 'string', label=""), Any other ideas? -- BR, Jason Brower

Re: [web2py] iconset

2011-08-24 Thread Tito Garrido
http://www.famfamfam.com/lab/icons/silk/ famfamfam :-) free and nice! On Wed, Aug 24, 2011 at 10:24 PM, pbreit wrote: > I'm torn. JQuery UI is the obvious choice since we are using JQuery but I > really dislike its aesthetics. -- Linux User #387870 . _/_õ|__| ..º[ .-.___.

[web2py] Re: Problem with Oracle access and web2py database administration

2011-08-24 Thread Massimo Di Pierro
can you tell me which web2py version (number and date) and list of steps to reproduce the problem? On Aug 24, 8:49 pm, Tim Korb wrote: > I'm getting the same error (Invalid Query ORA-00907: missing right > parenthesis) when using the admin interface to access tables for a > newly-created Oracle d

[web2py] Re: Time intervals with MySQL and DAL

2011-08-24 Thread Massimo Di Pierro
Thanks pbreit. Anyway, there should be an issue in google code because the original dal expression is supposed to work even if your code below is better. On Aug 24, 8:22 pm, pbreit wrote: > I do this: > >     time_diff = datetime.timedelta(minutes=30) >     now = request.now + time_diff >     not

[web2py] Re: Problem with Oracle access and web2py database administration

2011-08-24 Thread Tim Korb
I'm getting the same error (Invalid Query ORA-00907: missing right parenthesis) when using the admin interface to access tables for a newly-created Oracle database (without primarykey setting).

Re: Re : Re: [web2py] web2py on fluxflex (free hosting) VIDEO/HOWTO

2011-08-24 Thread t13one
It looks like the GAE offers better quotas, but I wonder how it compares in performance. With that said, it looks like the main benefits of fluxflex are MySQL (no Big Table limitations/code workarounds), effortless deployment, and github integration. I can't wait to see more community-developed web

Re: [web2py] Re: uuid - Postgresql-type

2011-08-24 Thread pbreit
I think you could go with length 36. And you could get down to 32 by stripping out the dashes.

Re: [web2py] iconset

2011-08-24 Thread pbreit
I'm torn. JQuery UI is the obvious choice since we are using JQuery but I really dislike its aesthetics.

[web2py] Re: Time intervals with MySQL and DAL

2011-08-24 Thread pbreit
I do this: time_diff = datetime.timedelta(minutes=30) now = request.now + time_diff notifications = db((db.watchlist.status=='active') & (db.watchlist.send_date

[web2py] Re: Allowing provisional login with email only

2011-08-24 Thread pbreit
I was actually referring to the situation where in the future you link any prior orders to a newly created account based on email address. It sounded like you might have been considering that. But from a conservative info privacy standpoint, Anthony's concern might be an issue as well.

[web2py] Re: Problem creating forms inside a form.accepts

2011-08-24 Thread pbreit
I unfortunately help because Google Groups is not showing your code formatting very well (nothing is indented). Multiple forms on one page is definitely challenging especially since I think you want one form to be based on the other. We might need to see more of your code (where's the "return"?

Re: [web2py] Re: User-friendly checkbox/radio-button widget in gluon/sqlhtml.py

2011-08-24 Thread Anthony
On Wednesday, August 24, 2011 7:19:12 PM UTC-4, ryo1kato wrote: > > > Yes, using will make the labels clickable, but won't do dynamic > > style updating. I like the idea of dynamic styling, but just not sure it > > belongs in the core framework code -- then users who don't like it or > want > > t

[web2py] Re: Problems running a module in web2py shell

2011-08-24 Thread Eric Scott
you mean include 'print db.tables' in the script? if you mean run 'print db.tables' in the shell to test my connection to the db, I've done that and it shows all my tables, until I run the script. At that point, I can no longer access the tables in the shell. I did read in an external site about

[web2py] Problem creating forms inside a form.accepts

2011-08-24 Thread Francisco
Hello everyone I'm building an app where users are going to use a barcode scanner to add products to a cart. In the session I keep up a dictionary of products in cart, so if a product is scanned twice it will increase quantity rather than add another entry. That worked fine, but now I wanted to

Re: [web2py] Re: User-friendly checkbox/radio-button widget in gluon/sqlhtml.py

2011-08-24 Thread KATO Ryoichi
> Yes, using will make the labels clickable, but won't do dynamic > style updating. I like the idea of dynamic styling, but just not sure it > belongs in the core framework code -- then users who don't like it or want > to implement it differently will have to disable it. Maybe if it's optional, >

Re: [web2py] Re: Understanding Rocket Threads

2011-08-24 Thread Michele Comitini
Try session.forget() and see what happens mic 2011/8/25 G : > Thank you for the suggestion. I made a test application that used no > database accesses (no auth and randomly generated data). It showed the > same behavior, so I do not think it is the culprit. In addition, since > the application i

Re: [web2py] CRUD update in modal iframe

2011-08-24 Thread Bruno Rocha
Your modal uses Iframe? nyroModal needs target='_blank' to open in iframe and work as you want. Other modal plugins has other ways for doing it. For redirect in parent window. You ll need to execute a javascript inside modal. window.parent.location = '' http://zerp.ly/rochacbruno Em 24/08/2011

Re: Re : Re: [web2py] web2py on fluxflex (free hosting) VIDEO/HOWTO

2011-08-24 Thread Bruno Rocha
They have pro plans. Starting in $1 to $9 month. But. If I understand well, the goal there is not website/webapp hosting. The main purpose there is webservices histing. You can write bots, schedullers, or post tasks throught some API. As a webservice this consumes less requests but has more proc

[web2py] Re: CRUD update in modal iframe

2011-08-24 Thread Anthony
Can you show some code? On Wednesday, August 24, 2011 4:53:31 PM UTC-4, Jim S wrote: > Hi > > I have a crud.update that I'm displaying in a modal iFrame. This is > working fine for me except when there is an error in the form and crud > redisplays with the error message. This is opening outsi

[web2py] Re: Understanding Rocket Threads

2011-08-24 Thread G
Thank you for the suggestion. I made a test application that used no database accesses (no auth and randomly generated data). It showed the same behavior, so I do not think it is the culprit. In addition, since the application is monitor only, the real application only reads from the database, whic

[web2py] browser caching info

2011-08-24 Thread Richard
Hello, I found this about browser caching : http://betterexplained.com/articles/how-to-optimize-your-site-with-http-caching/ Don't know how to make it fit with web2py... Will look at it soon. Enjoy. Richard

[web2py] Re: Understanding Rocket Threads

2011-08-24 Thread ron_m
You also need to consider the database type used by the application for the model. The SQLite database has a transaction lock which will cause the application to look like it is single threaded if the database is held in a transaction pending state while the background work is performed.

[web2py] Re: Debugging RestrictedErrors

2011-08-24 Thread G
I didn't specify ajax (didn't need it), so I think it defaults to ajax=False. On Aug 24, 2:49 pm, Massimo Di Pierro wrote: > was LOAD(, ajax=True) or LOAD(ajax=False)? > > On Aug 24, 4:46 pm, G wrote: > > > Sorry, I meant to mention I'm running from the trunk. I ended up > > tracing the problem

[web2py] Re: Debugging RestrictedErrors

2011-08-24 Thread Massimo Di Pierro
was LOAD(, ajax=True) or LOAD(ajax=False)? On Aug 24, 4:46 pm, G wrote: > Sorry, I meant to mention I'm running from the trunk. I ended up > tracing the problem to an exception in my code, but I still don't > understand why it was presented as such. The exception was in a > controller function

[web2py] Re: update=request.now not working

2011-08-24 Thread Massimo Di Pierro
I guess we need a new release soon. Will try by Monday. Massimo On Aug 24, 4:44 pm, Vidul Petrov wrote: > Yes, unfortunately this is broken in stable. > > On Aug 24, 11:14 pm, Massimo Di Pierro > wrote: > > > > > > > > > Is this broken in stable? > > > On Aug 24, 1:17 pm, JimK wrote: > > > > A

[web2py] Re: Debugging RestrictedErrors

2011-08-24 Thread G
Sorry, I meant to mention I'm running from the trunk. I ended up tracing the problem to an exception in my code, but I still don't understand why it was presented as such. The exception was in a controller function that was being accessed as a .load component if that make any difference. Thanks, G

[web2py] Re: update=request.now not working

2011-08-24 Thread Vidul Petrov
Yes, unfortunately this is broken in stable. On Aug 24, 11:14 pm, Massimo Di Pierro wrote: > Is this broken in stable? > > On Aug 24, 1:17 pm, JimK wrote: > > > > > > > > > Aha!  This was driving me crazy yesterday! > > > Thanks for looking into the issue. > > > Jim > > > On Aug 23, 8:21 pm, Mas

[web2py] Re: Debugging RestrictedErrors

2011-08-24 Thread Massimo Di Pierro
which web2py version? On Aug 24, 3:59 pm, G wrote: > Hello, > I am occasionally getting errors like the followng: > > Traceback (most recent call last): >   File "/home/dl/trunkw2p/web2py/gluon/restricted.py", line 194, in > restricted >     exec ccode in environment >   File "/home/dl/trunkw2p/w

[web2py] Re: Upload & Install packed application on FluxFlex - Error500

2011-08-24 Thread Massimo Di Pierro
I emailed the author of the installation script. It just got updated. Perhaps there is a bug? massimo On Aug 24, 4:26 pm, Valter Foresto wrote: > I tryed to Upload & Install some simple packed applications on FluxFlex but > I get always "Error 500" from the Server. > I attached here the file wit

Re: Re : Re: [web2py] web2py on fluxflex (free hosting) VIDEO/HOWTO

2011-08-24 Thread Pystar
Apart from the fact that fluxflex is free, can it handle a site with reasonable traffic? On Aug 24, 8:47 pm, JmiXIII wrote: > great thanks

[web2py] R: Re: web2py hosting

2011-08-24 Thread Valter Foresto
Video "How to deploy / use web2py on free FluxFlex hosting" on Vimeo by Massimo Di Pierro.

[web2py] Debugging RestrictedErrors

2011-08-24 Thread G
Hello, I am occasionally getting errors like the followng: Traceback (most recent call last): File "/home/dl/trunkw2p/web2py/gluon/restricted.py", line 194, in restricted exec ccode in environment File "/home/dl/trunkw2p/web2py/applications/devel/views/default/ blah.html", line 71, in

[web2py] CRUD update in modal iframe

2011-08-24 Thread Jim Steil
Hi I have a crud.update that I'm displaying in a modal iFrame. This is working fine for me except when there is an error in the form and crud redisplays with the error message. This is opening outside the iFrame when I want it to load inside the iFrame. But, on submit, the next url should

Re: [web2py] Re: web2py hosting

2011-08-24 Thread Juan Tiger
I'm shocked with fluxflex! less than 1 min to get free account + subdomain + web2py installation ... install bluezone.fluxflex.com 2011/8/24 Massimo Di Pierro > fluxflex.com > > On Jul 7, 8:50 am, stargate wrote: > > For hosting I would usehttps://www.dotcloud.com/But only for big > > projec

[web2py] Re: update=request.now not working

2011-08-24 Thread Massimo Di Pierro
Is this broken in stable? On Aug 24, 1:17 pm, JimK wrote: > Aha!  This was driving me crazy yesterday! > > Thanks for looking into the issue. > > Jim > > On Aug 23, 8:21 pm, Massimo Di Pierro > wrote: > > > > > > > > > oops...fixed in trunk. Please check it. > > > On Aug 23, 7:31 pm, pbreit wro

Re : Re: [web2py] web2py on fluxflex (free hosting) VIDEO/HOWTO

2011-08-24 Thread JmiXIII
great thanks

[web2py] cache.ram represent lambda problem with None or empty field

2011-08-24 Thread Richard
Hello, I try to cache.ram a lambda represent function like Massimo suggest in this post : http://www.mail-archive.com/web2py@googlegroups.com/msg52736.html My problem is that there record where the field to be represent is empty... I was using the and/or trick before like this that was working

[web2py] socialdevcampchicago.com

2011-08-24 Thread Massimo Di Pierro
DePaul University is the premiere sponsor for SocialDevCamp (http:// 2011.socialdevcampchicago.com/), which is this weekend. If you would like to attend, you can register at http://sdcchi2011.eventbrite.com/ I will be there on Friday

[web2py] Re: Understanding Rocket Threads

2011-08-24 Thread G
I should also mention I'm open to other suggestions to alleviate this problem. The end goal is to display information (text or image) then request an update, and when it's ready, display the new text/ information. G On Aug 24, 11:39 am, G wrote: > Hi, > First a little background: My application

[web2py] Understanding Rocket Threads

2011-08-24 Thread G
Hi, First a little background: My application involves displaying and auto- refreshing data both in the form of text from .load components and dynamically generated images. I use JavaScript setInterval calls so that ideally the refreshes should occur some time after the last refresh completes. As i

Re: [web2py] Re: fluxflex

2011-08-24 Thread Yota Ichino
I merged get_new_stable branch into master branch. 2011/8/24 Yota Ichino : > Iceberg, Massimo Di Pierro, > > Your idea is great. These influence me and I rewrite .flx file. > It is created on same github project with branch "get_new_stable". > https://github.com/nus/web2py-for-fluxflex/tree/get_ne

[web2py] Re: Link calling function w/results in modal popup?

2011-08-24 Thread Anthony
If you want to use the Minimal Modal plugin, it looks like you can specify a URL as the 'callback' argument to PluginMModal(), though you'll also have to specify the 'id' argument to identify the modal div for the callback. Anthony On Wednesday, August 24, 2011 1:12:40 PM UTC-4, Aaron Mahler w

[web2py] Re: update=request.now not working

2011-08-24 Thread JimK
Aha! This was driving me crazy yesterday! Thanks for looking into the issue. Jim On Aug 23, 8:21 pm, Massimo Di Pierro wrote: > oops...fixed in trunk. Please check it. > > On Aug 23, 7:31 pm, pbreit wrote: > > > > > > > > > I believe this change is > > responsible:http://code.google.com/p/we

Re: [web2py] Re: Dynamically created png in HTML

2011-08-24 Thread Richard Dijkstra
Richard, Anthony, You have sent me in the right direction; it works :) Richard Op 24-8-2011 18:09, Richard Vézina schreef: Try this : URL('static','SUBFOLDER/FILENAME') Richard On Wed, Aug 24, 2011 at 11:55 AM, Richard Dijkstra mailto:richard.dijks...@planet.nl>> wrote: Anthony, Rich

[web2py] Re: Allowing provisional login with email only

2011-08-24 Thread Anthony
On Wednesday, August 24, 2011 1:41:22 PM UTC-4, peter wrote: > > Pbreit > > I do not think that fake logging in with others email is a risk as all > they will see is the cart that has not been checked out. > Some people may consider it a violation of their privacy if you expose their shopping ca

[web2py] Re: Allowing provisional login with email only

2011-08-24 Thread peter
Pbreit I do not think that fake logging in with others email is a risk as all they will see is the cart that has not been checked out. Anthony and villas, thanks for your feedback. Maybe you are right that email in session is good enough. I will have to index all orders on index instead of auth.u

[web2py] Re: Link calling function w/results in modal popup?

2011-08-24 Thread Aaron Mahler
Just to be sure I'm not missing a far simpler approach here... is there a way with the Minimal Modal plugin to assign the results of a function call to its content argument? - Aaron On Aug 24, 12:11 pm, Aaron Mahler wrote: >  That first example looks very close. Let me study that one a bit..

[web2py] Re: Problems running a module in web2py shell

2011-08-24 Thread Massimo Di Pierro
try print db.tables On Aug 24, 10:55 am, Eric Scott wrote: > I'm having trouble running a module in the web2py shell.  It's having > difficulty with a db query that I execute with no problems in any > controller.  Here's the traceback: > > Traceback (most recent call last): >   File "", line 1,

Re: [web2py] web2py on fluxflex (free hosting) VIDEO/HOWTO

2011-08-24 Thread Sebastian Batalla
Thanks! 2011/8/24 Massimo Di Pierro > So far this is the best web2py deployment experience. This is how it > should work on every web hosting provider: > > http://vimeo.com/28112026 > -- * Sebastian Batalla.- http://www.linkedin.com/in/sbatalla*

[web2py] web2py on fluxflex (free hosting) VIDEO/HOWTO

2011-08-24 Thread Massimo Di Pierro
So far this is the best web2py deployment experience. This is how it should work on every web hosting provider: http://vimeo.com/28112026

Re: [web2py] Re: Mobile detector

2011-08-24 Thread Ross Peoples
Well, the reason is_mobile is in the base object is for polymorphism to work. If we later did do a WindowsMobile(Dist): class, we can easily set is_mobile = True in it, since Dist is a subclass of the DetectorBase. I just left is_mobile attached to the response even if it's not mobile because it

[web2py] Re: web2py hosting

2011-08-24 Thread Massimo Di Pierro
fluxflex.com On Jul 7, 8:50 am, stargate wrote: > For hosting I would usehttps://www.dotcloud.com/But only for big > projects. > > On Jul 1, 1:17 pm, DenesL wrote: > > > > > > > > > Information collected from actual users of the service. > > Comments can belong to several people, > > and can be

[web2py] Re: How to use SQLFORM.grid

2011-08-24 Thread Massimo Di Pierro
I think you want: def journal_grid(): query = db.akb_journal.publisher == db.akb_publisher.uuid fields = [db.akb_journal.title,db.akb_journal.standard_name, db.akb_journal.issn, db.akb_journal.abbrev_iso, db.akb_publisher.publisher, db.akb_journal.subject] f

[web2py] Re: Link calling function w/results in modal popup?

2011-08-24 Thread Anthony
Maybe http://labs.blouweb.com/PowerGrid/default/gridinpopup or http://powertable.blouweb.com/category. On Wednesday, August 24, 2011 12:03:31 PM UTC-4, Aaron Mahler wrote: > > Hello! > > I'm curious to get some recommendations on how best to approach this > - possibly using the Minimal Moda

[web2py] Re: Time intervals with MySQL and DAL

2011-08-24 Thread Massimo Di Pierro
sorry for the oversight. Can you please open a google code issue? On Aug 24, 10:03 am, G wrote: > Sorry to repost but I was surprised there were no responses. It seems > like time interval arithmetic must be fairly common for web2py > applications. Has no one else run into a similar problem? > Th

Re: [web2py] Re: User-friendly checkbox/radio-button widget in gluon/sqlhtml.py

2011-08-24 Thread Anthony
On Wednesday, August 24, 2011 11:50:38 AM UTC-4, ryo1kato wrote: > > > I say don't use Javascript if it can be done with a simple html > > element. > Right, but I couldn't figure out how for dynamic style update; Yes, using will make the labels clickable, but won't do dynamic style updating.

Re: [web2py] Re: Dynamically created png in HTML

2011-08-24 Thread Anthony
On Wednesday, August 24, 2011 11:55:56 AM UTC-4, Richard wrote: > > Anthony, Richard, > > Thank you for the feedback. > > Getting the png file from the static area could be done, and how do I get > the dynamically create file in that static area? > What would the output path be in : > >

[web2py] Re: Link calling function w/results in modal popup?

2011-08-24 Thread Aaron Mahler
That first example looks very close. Let me study that one a bit... Thanks! - Aaron On Aug 24, 12:08 pm, Anthony wrote: > Maybehttp://labs.blouweb.com/PowerGrid/default/gridinpopuporhttp://powertable.blouweb.com/category. > > > > > > > > On Wednesday, August 24, 2011 12:03:31 PM UTC-4, Aaron

Re: [web2py] Re: Dynamically created png in HTML

2011-08-24 Thread Richard Vézina
file=URL('static','SUBFOLDER/FILENAME') On Wed, Aug 24, 2011 at 12:09 PM, Richard Vézina < ml.richard.vez...@gmail.com> wrote: > Try this : URL('static','SUBFOLDER/FILENAME') > > Richard > > > On Wed, Aug 24, 2011 at 11:55 AM, Richard Dijkstra < > richard.dijks...@planet.nl> wrote: > >> Anthony,

Re: [web2py] Re: Dynamically created png in HTML

2011-08-24 Thread Richard Vézina
Try this : URL('static','SUBFOLDER/FILENAME') Richard On Wed, Aug 24, 2011 at 11:55 AM, Richard Dijkstra < richard.dijks...@planet.nl> wrote: > Anthony, Richard, > > Thank you for the feedback. > > Getting the png file from the static area could be done, and how do I get > the dynamically creat

Re: [web2py] Re: Memory problems on Webfaction

2011-08-24 Thread Vasile Ermicioi
[web2py] wget http://www.web2py.com/examples/static/web2py_src.zip unzip web2py_src.zip python2.7 web2py.py #seems needed before using it [uwsgi] wget http://projects.unbit.it/downloads/uwsgi-0.9.8.3.tar.gz tar xvzf uwsgi-0.9.8.3.tar.gz cd uwsgi-0.9.8.3 /home/yourname/bin/python2.7 uwsgiconfig.py

[web2py] Link calling function w/results in modal popup?

2011-08-24 Thread Aaron Mahler
Hello! I'm curious to get some recommendations on how best to approach this - possibly using the Minimal Modal plugin, but I'm open to whatever other methods might achieve it. I have a table of results being displayed. There is a field in each row that contains information which I don't wan

[web2py] Re: field inheritance

2011-08-24 Thread DenesL
@ Andrew: thanks, yes that is the idea. @ Bruno: thank you, but I would like to be able to template also from existing tables (legacy mostly) not just from explicit template definitions, the sample function above does that I believe.

Re: [web2py] Re: Dynamically created png in HTML

2011-08-24 Thread Richard Dijkstra
Anthony, Richard, Thank you for the feedback. Getting the png file from the static area could be done, and how do I get the dynamically create file in that static area? What would the output path be in : grdevices.png(file="/tmp/rweb2output.png" , width=512, height=512) Richard Op 24-8

[web2py] Problems running a module in web2py shell

2011-08-24 Thread Eric Scott
I'm having trouble running a module in the web2py shell. It's having difficulty with a db query that I execute with no problems in any controller. Here's the traceback: Traceback (most recent call last): File "", line 1, in File "/home/www-data/web2py/gluon/custom_import.py", line 280, in

Re: [web2py] Re: User-friendly checkbox/radio-button widget in gluon/sqlhtml.py

2011-08-24 Thread KATO Ryoichi
> I say don't use Javascript if it can be done with a simple html > element. Right, but I couldn't figure out how for dynamic style update; what's "formstyle"? Anyway, I should shut up and wait when someone skilled than me is working for similar thing ;-) On Thu, Aug 25, 2011 at 00:32, Anthony w

[web2py] Google App Engine : Python 2.7 runtime is opened for Trusted Tester

2011-08-24 Thread Wobmofo
Signup here: https://docs.google.com/spreadsheet/viewform?formkey=dDVaelk0NkhHMVA2NU5kS1hfajNfM0E6MQ

[web2py] Re: User-friendly checkbox/radio-button widget in gluon/sqlhtml.py

2011-08-24 Thread Massimo Di Pierro
I think you are right.I just did not try it. On Aug 24, 10:18 am, Bruno Rocha wrote: > I dont understand why we do need jquery to take this action? > > just incluce and this wiill be done! or not?

Re: [web2py] Re: User-friendly checkbox/radio-button widget in gluon/sqlhtml.py

2011-08-24 Thread Anthony
I say don't use Javascript if it can be done with a simple html element. I think Bruno is working on a patch for that (plus more flexible formstyle): https://groups.google.com/d/msg/web2py-developers/N8GfwA3p4jk/XULfOX5PlmYJ. Anthony On Wednesday, August 24, 2011 11:26:17 AM UTC-4, ryo1kato

[web2py] Re: URL inside .load component

2011-08-24 Thread Anthony
On Wednesday, August 24, 2011 3:16:38 AM UTC-4, Álvaro J. Iradier wrote: > > Thanks very much, that made it. I couldn't find documentation about > the extension=False option for the URL function, it would be nice to > have it in the book. > It's in there -- re-read my last sentence. :-)

Re: [web2py] Re: User-friendly checkbox/radio-button widget in gluon/sqlhtml.py

2011-08-24 Thread KATO Ryoichi
No, we don't need jQuery. Just using plain JavaScript, and it's for dynamic style update. And yes, If we only want to check/uncheck by click on labels, is sufficient. On Thu, Aug 25, 2011 at 00:18, Bruno Rocha wrote: > I dont understand why we do need jquery to take this action? > just incluce

Re: [web2py] Re: User-friendly checkbox/radio-button widget in gluon/sqlhtml.py

2011-08-24 Thread Bruno Rocha
I dont understand why we do need jquery to take this action? just incluce and this wiill be done! or not?

[web2py] Re: DB - removing reference when deleting referenced object...

2011-08-24 Thread Anthony
Are you saying you want to do ON DELETE SET NULL (i.e., set the value of the reference field to NULL when the referenced object is deleted)? web2py Fields take an ondelete argument that defaults to CASCADE (which will delete referencing records when the referenced object is deleted). I suppose

Re: [web2py] Re: User-friendly checkbox/radio-button widget in gluon/sqlhtml.py

2011-08-24 Thread KATO Ryoichi
Sure! (I'm not sure about coding style, but perhaps it's better not to touch web2py_ajax.js for this kind of fix?) On Thu, Aug 25, 2011 at 00:01, Massimo Di Pierro wrote: > Your idea is really good. I think I have a solution in trunk that only > requires a change to sqlhtml.py and that will als

[web2py] Re: Time intervals with MySQL and DAL

2011-08-24 Thread G
Sorry to repost but I was surprised there were no responses. It seems like time interval arithmetic must be fairly common for web2py applications. Has no one else run into a similar problem? Thanks, G On Aug 23, 8:27 am, G wrote: > Hello, > I've noticed that the cleanup task in scheduler.py is no

[web2py] Re: User-friendly checkbox/radio-button widget in gluon/sqlhtml.py

2011-08-24 Thread Massimo Di Pierro
Your idea is really good. I think I have a solution in trunk that only requires a change to sqlhtml.py and that will also allow to style the options using pure css. Can you try it? massimo On Aug 24, 9:36 am, KATO Ryoichi wrote: > I've re-implemented the code using , as Anthony advised. >    htt

Re: [web2py] Re: User-friendly checkbox/radio-button widget in gluon/sqlhtml.py

2011-08-24 Thread Anthony
Is all the JS just to get the dynamic highlighting? If so, I'm not sure it's worth adding to the framework. Instead, maybe just add a class to the (or a wrapping ), and let the developer add dynamic highlighting or other effects if desired. Anthony On Wednesday, August 24, 2011 10:36:20 AM U

[web2py] Re : Re: fluxflex

2011-08-24 Thread JmiXIII
Hello, Does'nt it work with the upgrade button of the admin page ?

[web2py] Re: How to use SQLFORM.grid

2011-08-24 Thread Anthony
I think the first argument should be either a table or a query, but don't pass a table and a query as the first two arguments. Anthony On Wednesday, August 24, 2011 10:09:22 AM UTC-4, spyker wrote: > The following is not working. What is the syntax suppose to be? > > def journal_grid(): >

[web2py] web2py classes

2011-08-24 Thread Massimo Di Pierro
I am teaching a certificate course on web2py again: http://www.cdm.depaul.edu/ipd/Programs/Pages/WebDevelopmentwithPython.aspx In case anybody is interested. massimo

Re: [web2py] Re: Mobile detector

2011-08-24 Thread Angelo Compagnucci
This works like a charm! def detect(self, agent, result): if agent and self.checkWords(agent): result[self.info_type] = Storage(name=self.name) version = self.getVersion(agent) if version: result[self.info_type].version = version

[web2py] Re: Dynamically created png in HTML

2011-08-24 Thread Anthony
On Wednesday, August 24, 2011 8:29:11 AM UTC-4, Richard wrote: > > Here is the R output via a tmp png file > obj text > > Since src is a relative url, it will end up being http://127.0.0.1:8000/tmp/rweb2output.png (assuming you're running on your local machine on the default port). Instead

Re: [web2py] Re: User-friendly checkbox/radio-button widget in gluon/sqlhtml.py

2011-08-24 Thread KATO Ryoichi
I've re-implemented the code using , as Anthony advised. http://code.google.com/r/ryo1kato-web2py/source/list?name=better-checkbox2 And demo is updated also http://ryo1kato.appspot.com/checkbox The code is shorter, but still ugly. But I couldn't figure out how to improve even more, despite

[web2py] Re: fluxflex

2011-08-24 Thread Ray (a.k.a. Iceberg)
Yota Ichino, Thanks for your prompt response! It looks working well. Another big issue. How to upgrade to the latest web2py (when available)? Every time I do a git import in fluxflex panel, with or WITHOUT checking "Run initialize scripts for setting up the project", ends up with my whole web2py

[web2py] Re: MSSQL DAL multiple cascade paths not allowed

2011-08-24 Thread Massimo Di Pierro
I would prefer to leave this as it is for backward compatibility reasons but you can do Field(, ondelete="no action") correct? In any case open an issue on google code. On Aug 17, 2:16 pm, Omi Chiba wrote: > I was fololwing the web2py book with mssql for my database. > > db.define_table('comm

Re: [web2py] Dynamically created png in HTML

2011-08-24 Thread Richard Vézina
The source of your image looks strange... Is the image really in MAC root /tmp/ folder? Can you get it with your file browser? If so there is maybe OS permissions issue or the file could get earased... Web2py use www-data user (not sure on MAC)... So try to give this user access to the generated fi

Re: [web2py] Re: Mobile detector

2011-08-24 Thread Angelo Compagnucci
Hi Ross, I thought deeply on the implication on using the dist object. There are many points in favour: 1) Only dist object could be mobile ones from the code, Android - Iphone - Ipad are all dist objects. 2) If you want to detect Windows Mobile in a near future, you'll create a new dist object r

[web2py] Re: Allowing provisional login with email only

2011-08-24 Thread villas
Just set a cookie for the email address until you can trust it?

[web2py] How to use SQLFORM.grid

2011-08-24 Thread Johann Spies
The following is not working. What is the syntax suppose to be? def journal_grid(): query = db.akb_journal.publisher == db.akb_publisher.uuid fields = [db.akb_journal.title,db.akb_journal.standard_name, db.akb_journal.issn, db.akb_journal.abbrev_iso, db.akb_pub

Re: [web2py] iconset

2011-08-24 Thread Ross Peoples
As much as jQuery UI can be a pain and the library somewhat big, the ThemeRoller is awesome. They do a good job with CSS

Re: [web2py] Re: Mobile detector

2011-08-24 Thread Ross Peoples
Forgot to attach, sorry """ Extract client information from http user agent The module does not try to detect all capabilities of browser in current form (it can easily be extended though). Aim is * fast * very easy to extend * reliable enough for practical purposes * and assist p

Re: [web2py] Re: Mobile detector

2011-08-24 Thread Ross Peoples
Nice work on that Angelo, I did have to change a few things, since 'dist' will not always exist (like when a non-Linux desktop machine visits). So this is what I did: When any 'dist' or 'os' returns is_mobile=True, then the result will have is_mobile at the root. So you can test for mobile like

Re: [web2py] Re: table, grid, smartgrid, getting better

2011-08-24 Thread Johann Spies
> TypeError: () takes exactly 1 argument (2 given) > > > I still get this error with the following model (all 'represent' lines commented out): db.define_table('akb_articles', Field('title'), Field('primaryauthor'), Field('authors', 'text'),

Re: [web2py] Re: testing scheduler in windows

2011-08-24 Thread António Ramos
i´m running from the command prompt c:\python26_32\python.exe d:\web2pyMercurial\Web2py.py -K a0 Python is 2.6.5 32bits and Windows 7(64Bits) Thank you 2011/8/24 Massimo Di Pierro > It is failing on "import platform" a standard python module. Can you > run it form shell? What windows versio

[web2py] Re: SQLFORM.demo will blow your mind

2011-08-24 Thread David Marko
Currently using SQLFORM.grid even the show link require autentication. How can I define required permissions for each action ? (show, edit, delete) ?

Re : Re: Re : Re: [web2py] Re: fluxflex

2011-08-24 Thread JmiXIII
Good thanks a lot. I thought I've tried it but my browser confused me with (I must have made a mistake) Anyway thanks to you and to this community.

Re: Re : Re: [web2py] Re: fluxflex

2011-08-24 Thread Massimo Di Pierro
JmiXIII, You need a better landing page. This one does not make justice to this excellent project: http://www.fluxflex.com/library/47 Massimo On Aug 24, 3:37 am, Yota Ichino wrote: > JmiXIII, > > You need to access to your admin page > HTTPS.https://projecttest.fluxflex.com/admin > > 2011/8/24

Re: [web2py] Re: table, grid, smartgrid, getting better

2011-08-24 Thread Johann Spies
On 24 August 2011 13:47, Massimo Di Pierro wrote: > Feature! > > it used to be that represent = lambda value:... > but then we moved on to represent = lambda value, row:... > > previous code has been made backward compatible (will accept both) but > new code (grid and smartgrid) will expect the ne

[web2py] Re: testing scheduler in windows

2011-08-24 Thread Massimo Di Pierro
It is failing on "import platform" a standard python module. Can you run it form shell? What windows version? What python version? On Aug 23, 4:27 am, António Ramos wrote: > hello i´m testing scheduler from trunk in windows and following Maximo video > on Vimeo > > i have a strange behaviour when

Re: [web2py] Re: Memory problems on Webfaction

2011-08-24 Thread Johann Spies
On 24 August 2011 13:27, Vasile Ermicioi wrote: > glad to see that I was helpful > my personal experience with webfaction is a great one, thanks to nginx, > uwsgi and of course web2py :) > > now uwsgi has a http protocol, and nginx installation is not needed anymore > > I will post later what and

  1   2   >