Re: [web2py] Re: Embed youtube videos

2012-06-07 Thread pbreit
You could write a little but of code to figure out if the user put in the whole URL or just the code and then just save the code. On Wednesday, June 6, 2012 10:46:55 PM UTC-7, dundee wrote: Ok thanks for answering. Thanks for the idea. I include the first part of the url and replace the

Re: [web2py] niphlod tvseries error

2012-06-07 Thread blye
thanks again I am curious.. in light of above, my web2py runs very fine most of time but newer apps are having this issue why does the web2py distrib bin version have py 25 dll etc Are there any references to this issue in the lit or books Is a new main thread worthwhile in this regard? On

Re: [web2py] niphlod tvseries error

2012-06-07 Thread Niphlod
There are a few places here and there stating that web2py supports python 2.5 , 2.6 and 2.7, preferring 2.5 . I contacted Massimo the last week just about that the binary distribution with a recent python version could enable some new features that are in stable. Builds against 2.7 seems

[web2py] Re: Anyone using BootSwatch with new web2py layout

2012-06-07 Thread Paolo Caruccio
I'm afraid you can not do it. The first item in the dropdown menu (having class=dropdown) can not contain an URL. The structure of the dropdown menu is as follows (taken from this page http://twitter.github.com/bootstrap/components.html#navbar): Adding dropdown menus Adding dropdowns and

[web2py] Re: Anyone using BootSwatch with new web2py layout

2012-06-07 Thread LightDot
Yes, I thought it might be a feature, not a bug :) I was just testing the bootstrap integration and capabilities, so no great harm. Thanks for clarifying. On Thursday, June 7, 2012 10:24:44 AM UTC+2, Paolo Caruccio wrote: I'm afraid you can not do it. The first item in the dropdown menu

[web2py] Multiple buttons in links of smartgrid

2012-06-07 Thread Cornelius Kölbel
Hi, is it possible to add more than one button to a SQLFORM.smartgrid? At the moment I would add one button like this...| links = [lambda row: A(T('Add a contact to this customer'),_href=URL(customer,add_contact,args=[row.id]))] |Thanks a lot and kind regards CorneliusKölbel signature.asc

[web2py] Re: Anyone using BootSwatch with new web2py layout

2012-06-07 Thread Andrew
Hi Paolo, I'm afraid I can't reproduce it anymore. The caret is there and I now see buttons on the nav menu. I updated to the latest layout.html, and reverted back and it's still fixed !? Sorry for the time waster but I swear I tried everything yesterday ? I've just put your two files

Re: [web2py] Multiple buttons in links of smartgrid

2012-06-07 Thread Johann Spies
On 7 June 2012 11:01, Cornelius Kölbel cornelius.koel...@lsexperts.dewrote: Hi, is it possible to add more than one button to a SQLFORM.smartgrid? Yes. At the moment I would add one button like this... links = [lambda row: A(T('Add a contact to this

Re: [web2py] Dynamic model creation

2012-06-07 Thread Christian Hoffmann
Hi pbreit and thanks for the reply. So web2py is not the preferred way to go as DAL needs a scheme? Is there no way to integrate DAL in a dynamic way? Regards, Christian Am Sonntag, 3. Juni 2012 schrieb pbreit : My guess is it's NoSQL, probably Mongo which seems to be the preferred DB behind

[web2py] Newbie Alert: A flow chart of how things happen

2012-06-07 Thread Omar Ali
I'm a total newbie. I have programmed extensively during the VB days (event driven programming) (I know, you'd hardly call that programming!) so ... Web programming is taking a toll on me. Could someone explain to me the dynamics of web2py programming in a way that an event driven programming

Re: [web2py] Multiple buttons in links of smartgrid

2012-06-07 Thread Cornelius Kölbel
Am 07.06.2012 12:46, schrieb Johann Spies: On 7 June 2012 11:01, Cornelius Kölbel cornelius.koel...@lsexperts.de mailto:cornelius.koel...@lsexperts.de wrote: Hi, is it possible to add more than one button to a SQLFORM.smartgrid? Yes. At the moment I would add one button

[web2py] Re: Errors creating/reading tickets

2012-06-07 Thread Chris
Following up on some of the clues others have suggested -- I have this problem when running web2py version 1.99.7 on Red Hat Enterprise 6.2 (very similar to CentOS) and mod_wsgi with Apache. Happy to provide copies of the error tickets if that would help with troubleshooting -- ? On

Re: [web2py] Newbie Alert: A flow chart of how things happen

2012-06-07 Thread Jim Steil
I think it would really help for you to get the web2py book and read it. It does a great job explaining the flow of control and how data gets passed around. -Jim On 6/7/2012 5:15 AM, Omar Ali wrote: I'm a total newbie. I have programmed extensively during the VB days (event driven

Re: [web2py] Fluxflex will be shut down and no longer available on June 30, 2012

2012-06-07 Thread Ismael Serratos
Why don't we make our own web2py cloud environment? On Wed, Jun 6, 2012 at 4:34 PM, Bruno Rocha rochacbr...@gmail.com wrote: pythonanywhere has easy deployment for web2py http://zerp.ly/rochacbruno Em 06/06/2012 15:10, sesenmaister sesenmais...@gmail.com escreveu: Andrew, I have the same

[web2py] Re: Newbie Alert: A flow chart of how things happen

2012-06-07 Thread Anthony
It might be easier if you go through http://web2py.com/books/default/chapter/29/1#Model-View-Controller, http://web2py.com/books/default/chapter/29/4#Workflow, and http://web2py.com/books/default/chapter/29/4#Dispatching, and then come back with specific questions. Anthony On Thursday, June

Re: [web2py] Re: Embed youtube videos

2012-06-07 Thread Kevin Miller
Yes thanks. I was thinking about that. Thank you very much for your responses. I recently started to use web2py and I think its a wonderful python framework. This is my first project with it. On Thu, Jun 7, 2012 at 2:15 AM, pbreit pbreitenb...@gmail.com wrote: You could write a little but of

[web2py] Re: web2py: crud interface and query strings

2012-06-07 Thread Joel Robinson
Thanks for the reply. I tried your sugestion but am still getting an error, though a different one: Traceback (most recent call last): File /home/joel/Source/web2py/gluon/restricted.py, line 205, in restricted exec ccode in environment File

[web2py] Re: web2py: crud interface and query strings

2012-06-07 Thread Anthony
Same problem -- everything has to go inside your if rows: block -- don't attempt to create a crud.update form if no rows have been returned. Anthony On Thursday, June 7, 2012 10:30:17 AM UTC-4, Joel Robinson wrote: Thanks for the reply. I tried your sugestion but am still getting an error,

[web2py] Re: Dynamic model creation

2012-06-07 Thread Anthony
Once you specify a given type of object, will its schema always remain the same? If so, you should be able to dynamically generate the DAL table definition and have the DAL create the table. However, if you need to make arbitrary dynamic changes to the schema within a given class of object,

[web2py] Re: web2py: crud interface and query strings

2012-06-07 Thread Joel Robinson
Thanks for the reply, but its still not working correctly. I changed the code to the following: if rows: row = rows[0] record = crud.update(db.invent, row.id ) return dict(record=record) with a URL like:

Re: [web2py] Fluxflex will be shut down and no longer available on June 30, 2012

2012-06-07 Thread Marin Pranjić
I was thinking about this. +1 On Thu, Jun 7, 2012 at 3:27 PM, Ismael Serratos ialejandr...@gmail.comwrote: Why don't we make our own web2py cloud environment? On Wed, Jun 6, 2012 at 4:34 PM, Bruno Rocha rochacbr...@gmail.com wrote: pythonanywhere has easy deployment for web2py

[web2py] Is anyone using GWT?

2012-06-07 Thread Carl
Before I ask specifics, is there anyone using GWT on the client and Web2py on the server?

Re: [web2py] Is anyone using GWT?

2012-06-07 Thread Richard Vézina
I can't speak for the orthers, but web2py is tigthly bone to jQuery and it is very easy to include jQuery UI, so I guest many users just use those lib in a similar way they could use GWT. Richard On Thu, Jun 7, 2012 at 11:18 AM, Carl m...@carlroach.com wrote: Before I ask specifics, is there

Re: [web2py] Is anyone using GWT?

2012-06-07 Thread Carl
thanks Richard. It's the specifics that are different and where my questions lie. On Thursday, 7 June 2012 16:31:30 UTC+1, Richard wrote: I can't speak for the others, but web2py is tightly bone to jQuery and it is very easy to include jQuery UI, so I guest many users just use those lib

[web2py] Re: web2py: crud interface and query strings

2012-06-07 Thread Anthony
What are you returning in case no rows are found? Also, you can instead do: row = db(db.invent.partnum == request.vars.partnum).select().first() if row: etc. .first() returns the first row or None if there are no records. Anthony On Thursday, June 7, 2012 10:49:54 AM UTC-4, Joel Robinson

Re: [web2py] Is anyone using GWT?

2012-06-07 Thread Larry Wapnitsky
I'm slowly learning the PyJS/Pyjamas libraries, so I'll say yes for me On Thursday, June 7, 2012 11:31:30 AM UTC-4, Richard wrote: I can't speak for the orthers, but web2py is tigthly bone to jQuery and it is very easy to include jQuery UI, so I guest many users just use those lib in a

[web2py] trunk and statusbar?

2012-06-07 Thread Martin Weissenboeck
Today I have tried to build a new application using the trunk. Where has the status-bar gone? I could not find it in layout.html Regards, Martin

Re: [web2py] Is anyone using GWT?

2012-06-07 Thread Carl Roach
Larry, I really enjoyed coding in Pyjs. GWT/Java involves a lot of hoops which I'm jumping through. I'm looking at porting my Pyjs app to GWT. On 7 June 2012 17:29, Larry Wapnitsky wrote: I'm slowly learning the PyJS/Pyjamas libraries, so I'll say yes for me On Thursday, June 7, 2012

Re: [web2py] Is anyone using GWT?

2012-06-07 Thread Larry G. Wapnitsky
Cool. If you have any tips for the n00b to Pyjs, send them my way (privately, not via the group so that we don't clog this up). On 6/7/2012 12:41 PM, Carl Roach wrote: Larry, I really enjoyed coding in Pyjs. GWT/Java involves a lot of hoops which I'm jumping through. I'm looking at porting my

[web2py] Re: web2py: crud interface and query strings

2012-06-07 Thread Joel Robinson
Thanks for the reply. I tried you sugestion but still no joy. I haven't included all the code so that the examples as simple as possible. I can try to attach some of my code and send it to you if you wish. If you add some code such as: else : record = 'No part number URL should read

Re: [web2py] Is anyone using GWT?

2012-06-07 Thread Michele Comitini
2012/6/7 Carl Roach m...@carlroach.com: Larry, I really enjoyed coding in Pyjs. GWT/Java involves a lot of hoops which I'm jumping through. Of course its Java.  I'm looking at porting my Pyjs app to GWT. Why hurting yourself? If you do not like pyjs, try coffescript or cappucino. mic

[web2py] SQLFORM.grid - questions/suggestions

2012-06-07 Thread Doug Philips
I know that SQLFORM.grid is marked experimental and thus I shouldn't expect it to be as refined as some of the other parts of web2py, but I'm hoping that also means it is still a bit open to adjustment? SQLFORM.grid has saved me a ton of work, but there are few things I wish it did slightly

[web2py] Re: web2py: crud interface and query strings

2012-06-07 Thread Anthony
Yeah, I think you'll have to show more code. On Thursday, June 7, 2012 12:58:45 PM UTC-4, Joel Robinson wrote: Thanks for the reply. I tried you sugestion but still no joy. I haven't included all the code so that the examples as simple as possible. I can try to attach some of my code and

Re: [web2py] SQLFORM.grid - questions/suggestions

2012-06-07 Thread Richard Vézina
I am almost sure I saw a email were Massimo explain how to set a different text for submit button, can't find it back... Have you try with SQLFORM attribute ? Or SQLFORM attribute with _ before : _submit_button = 'Submit' Richard On Thu, Jun 7, 2012 at 1:20 PM, Doug Philips

[web2py] Re: For all users using web2py editor on Firefox: solution to the blurry or ghosty text

2012-06-07 Thread sesenmaister
Sorry, the good value for *document.getElementById('** textarea').style.opacity* is *0.1* Value 0, is thiner than in chrome and the cursor disappear.

Re: [web2py] SQLFORM.grid - questions/suggestions

2012-06-07 Thread Doug Philips
On 6/7/12, Richard Vézina ml.richard.vez...@gmail.com wrote: I am almost sure I saw a email were Massimo explain how to set a different text for submit button, can't find it back... Have you try with SQLFORM attribute ? Or SQLFORM attribute with _ before : _submit_button = 'Submit' Well, I

Re: [web2py] SQLFORM.grid - questions/suggestions

2012-06-07 Thread Richard Vézina
Do you have the latest trunk? Because, web2py change rapidly... Richard On Thu, Jun 7, 2012 at 2:02 PM, Doug Philips douglas.phil...@gmail.comwrote: On 6/7/12, Richard Vézina ml.richard.vez...@gmail.com wrote: I am almost sure I saw a email were Massimo explain how to set a different

Re: [web2py] SQLFORM.grid - questions/suggestions

2012-06-07 Thread Anthony
I'm not sure if this is in stable, but in trunk you can specify dictionaries of args to pass to SQLFORM, including separate dictionaries for create, edit, and view forms: http://code.google.com/p/web2py/source/browse/gluon/sqlhtml.py#1500. Anthony On Thursday, June 7, 2012 2:02:34 PM UTC-4,

[web2py] Re: For all users using web2py editor on Firefox: solution to the blurry or ghosty text

2012-06-07 Thread Andrew
I use the trunk editor with Firefox and it works well. Ie7 on the other hand, no line wrap.

[web2py] Re: uWSGI + Cherokee + web2py - a howto.

2012-06-07 Thread Leopold
Hello everyone, I'm in need of help to get this configuration (ubuntu + cherokee + web2py + uwsgi) running. I used a very similar how to on this (this happened many months ago) and everything worked perfectly. When I followed the instructions I had an ubuntu version with python 2.6 but when I

Re: [web2py] Dynamic model creation

2012-06-07 Thread pbreit
I'm not sure it's a Web2py limitation so much as an SQL limitation. You actually might be able to implement dynamic schemas in Web2py I guess by building your define_tables() on-the-fly but it doesn't sound like the best idea (you'd need to be doing a lot of unpredictable migrations). But

[web2py] Re: Newbie Alert: A flow chart of how things happen

2012-06-07 Thread pbreit
I'd suggest running through the Overview: http://web2py.com/books/default/chapter/29/3 If I understand correctly, you're not going to see event driven programming. Basic web programming is Request Build Response Send Response back to the User. On Thursday, June 7, 2012 3:15:26 AM UTC-7,

Re: [web2py] Re: A Web2py CMS like Joomla ?

2012-06-07 Thread Andrew
Yes, me too. Can anyone point me to the documentation referenced on the movu.ca home page? I would like to see what it looks like as a plain cms without the social bits, or maybe making some of it available. To add to this thread, I've installed Movuca, instant press, and plugin wiki,

[web2py] Re: uWSGI + Cherokee + web2py - a howto.

2012-06-07 Thread pbreit
Are you committed to Cherokee? I would advise against that since development has stalled/stopped and instead consider Apache or Nginx. If Nginx, web2py includes a setup script: http://code.google.com/p/web2py/source/browse/scripts/setup-web2py-nginx-uwsgi-ubuntu.sh You can either run the script

Re: [web2py] Dynamic model creation

2012-06-07 Thread Andrew
Check out http://www.web2pyslices.com/slice/show/1491/plugin-lookout I have a need to open up other databases and inspect their structures, by looking at the other system's catalog. The slice above also does that.

Re: [web2py] Re: A Web2py CMS like Joomla ?

2012-06-07 Thread Luc Chase
I would say a CMS becomes a wiki when it allows links to pages which don't yet exist ( it dynamically creates it when the link is created). On Jun 7, 2012 8:07 PM, Andrew awillima...@gmail.com wrote: Yes, me too. Can anyone point me to the documentation referenced on the movu.ca home page? I

[web2py] Re: Newbie Alert: A flow chart of how things happen

2012-06-07 Thread Cliff Kachinske
Some googles: http request http response On Thursday, June 7, 2012 6:15:26 AM UTC-4, Omar Ali wrote: I'm a total newbie. I have programmed extensively during the VB days (event driven programming) (I know, you'd hardly call that programming!) so ... Web programming is taking a toll on

[web2py] Re: uWSGI + Cherokee + web2py - a howto.

2012-06-07 Thread Leopold
I am not committed to cherokee and if this goes unsolved then I would be forced to choose another webserver, Apache seems overkill since my app is only used by intranet users; I am taking a look at Nginx at the moment. Still, I'm a bit reluctant to just forget about it since it worked

Re: [web2py] Re: recognizing web2py restart

2012-06-07 Thread Derek
Ah, it seemed to me this is just a development environment and thus you wouldn't need this feature in production? On Thursday, May 31, 2012 2:47:51 PM UTC-7, Jonathan Lundell wrote: On May 31, 2012, at 2:32 PM, Derek wrote: If you're blowing away your database, why don't you clear memcached

[web2py] Re: Errors creating/reading tickets

2012-06-07 Thread Derek
The issue has been fixed in trunk. If you want the fix, you'll have to use the source version or wait for the next release. On Thursday, June 7, 2012 4:40:28 AM UTC-7, Chris wrote: Following up on some of the clues others have suggested -- I have this problem when running web2py version

[web2py] Re: backward-compatible CRYPT() upgrades

2012-06-07 Thread pbreit
Bumping since another password compromise came out today (last.fm). I would like to at least salt my passwords. Also would be nice to have a bcrypt option. Finally, would be nice to have an easy way to migrate an existing set of users to new password scheme as they log in (or I've also seen

[web2py] Re: backward-compatible CRYPT() upgrades

2012-06-07 Thread pbreit
For example: https://docs.djangoproject.com/en/dev/topics/auth/#password-upgrading When users log in, if their passwords are stored with anything other than the preferred algorithm, Django will automatically upgrade the algorithm to the preferred one. This means that old installs of Django

Re: [web2py] Re: backward-compatible CRYPT() upgrades

2012-06-07 Thread Richard Vézina
pbreit, I think you should open up a issue also! Richard On Thu, Jun 7, 2012 at 4:00 PM, pbreit pbreitenb...@gmail.com wrote: For example: https://docs.djangoproject.com/en/dev/topics/auth/#password-upgrading When users log in, if their passwords are stored with anything other than the

[web2py] Re: Newbie Alert: A flow chart of how things happen

2012-06-07 Thread Omar Ali
Thank you all for your feedback. I suppose that's correct. I should try to change my way of thinking about writing applications from plain simple event-driven programming. It just felt so natural thinking about it that way... I will definitely go through the online manuals thoroughly and then

Re: [web2py] Re: Newbie Alert: A flow chart of how things happen

2012-06-07 Thread Bruno Rocha
This is a very nice tutorial -- http://killer-web-development.com/ *Bruno Cezar Rocha* http://www.CursoDePython.com.br [image: Facebook] http://facebook.com/rochacbruno [image: Twitter]http://twitter.com/rochacbruno [image: LinkedIn] http://linkedin.com/in/rochacbruno [image:

[web2py] Re: Errors creating/reading tickets

2012-06-07 Thread Frederick Yankowski
The fix that I saw was just to ignore the exception during unpickling. As selecta said at least that allows viewing the other tickets. It does not address the root problem of corrupted error files being created.

[web2py] Re: web2py: crud interface and query strings

2012-06-07 Thread Anthony
Two problems: 1. You are using partnum as a GET variable, but it is also the name of one of the form fields, so when you submit the form, there is a partnum in both the GET and the POST variables. When the same variable appears in both the GET and POST variables, web2py puts them

Re: [web2py] Multiple buttons in links of smartgrid

2012-06-07 Thread Paolo Caruccio
links is a list so you could add more items to it. links = [lambda row: A(T('action 1'),_href=URL(acontroller ,function1,args=[row.id])), lambda row: A(T('action 2'),_href=URL(acontroller ,function2,args=[row.id, row.field1])), lambda row: A(T('action 3'),_href=URL(acontroller

[web2py] Re: web2py: crud interface and query strings

2012-06-07 Thread Joel Robinson
Thank you so much for your reply. That took care of everything. Thank you very much for the tips. I know the code is very rough. I had just started on it when I ran into this problem, and I'm still fairly new to web2py and python. Thanks again for your help. Joel Robinson On Thursday,

Re: [web2py] Re: recognizing web2py restart

2012-06-07 Thread Cliff Kachinske
It's not unusual to have a setup like this: development box - test box - production box The test box is a clone of the production box, as much as you can make it so. No reason why it couldn't be a virtual machine, but it has to be there to prevent surprises due to different patch/version

[web2py] Re: backward-compatible CRYPT() upgrades

2012-06-07 Thread Anthony
https://groups.google.com/d/msg/web2py/WEiNGgDya58/ljDoE23gI8gJ On Thursday, June 7, 2012 3:58:11 PM UTC-4, pbreit wrote: Bumping since another password compromise came out today (last.fm). I would like to at least salt my passwords. Also would be nice to have a bcrypt option. Finally,

[web2py] default foreign key

2012-06-07 Thread Vincent
Hi, I'm looking for a way to define a default foreign key dynamically. For example if I have the following schema: db.define_table('owner',Field('name', 'string'), Field('isdefault','boolean',default=False)) db.people.insert('name'='Bill') db.people.insert('name'='unknown',isdefault=True)

[web2py] Re: Dynamic model creation

2012-06-07 Thread Anthony
Also, see this discussion: https://groups.google.com/d/msg/web2py/r0pLhvGi27Y/VtTibzxs6koJ On Thursday, June 7, 2012 10:42:48 AM UTC-4, Anthony wrote: Once you specify a given type of object, will its schema always remain the same? If so, you should be able to dynamically generate the DAL

[web2py] Re: default foreign key

2012-06-07 Thread Derek
Have you tried this: db.define_table('dog', Field('name','string'),Field('owner',db.owner,default=db(db.owner.isdefault=True).select().first())) On Thursday, June 7, 2012 2:20:30 PM UTC-7, Vincent wrote: Hi, I'm looking for a way to define a default foreign key dynamically. For example

[web2py] Help me get a better feel for efficient code

2012-06-07 Thread Cliff Kachinske
I'm just starting to use modules with classes for code commonality. I don't have a good feel for the most efficient way to, for example, pass the db to a class method. I can think of three ways. - Pass it in when you call the method. - Pass it in when you initialize the class - Import current,

[web2py] Re: Help me get a better feel for efficient code

2012-06-07 Thread Niphlod
I'll follow this thread as well I choose the third method, the second didn't work when connection was dropped, or with sqlite...kept getting connection is closed after a while. Il giorno giovedì 7 giugno 2012 23:42:33 UTC+2, Cliff Kachinske ha scritto: I'm just starting to use modules

[web2py] Re: default foreign key

2012-06-07 Thread Vincent
Thanks for the suggestion. It returns the following error: SyntaxError: keyword can't be an expression On Thursday, June 7, 2012 4:26:03 PM UTC-5, Derek wrote: Have you tried this: db.define_table('dog',

Re: [web2py] Re: what do you think about waitress webserver

2012-06-07 Thread Derek
Yeah, that whole large files get corrupted when downloading is a big issue... On Tuesday, June 5, 2012 1:14:14 PM UTC-7, Massimo Di Pierro wrote: Good reason to be busy. Anyway, if can assemble a team a people who can reproduce the problem, I can help fix it over IRC chat. Next week. On

Re: [web2py] Fluxflex will be shut down and no longer available on June 30, 2012

2012-06-07 Thread Omi Chiba
Bruno, I'm interested in pythonanywhere. Can we set up web2py with free account ? Any documentation I can refer ? On Wednesday, June 6, 2012 4:34:46 PM UTC-5, rochacbruno wrote: pythonanywhere has easy deployment for web2py http://zerp.ly/rochacbruno Em 06/06/2012 15:10, sesenmaister

Re: [web2py] Re: recognizing web2py restart

2012-06-07 Thread Jonathan Lundell
On Jun 7, 2012, at 2:03 PM, Cliff Kachinske wrote: It's not unusual to have a setup like this: development box - test box - production box The test box is a clone of the production box, as much as you can make it so. No reason why it couldn't be a virtual machine, but it has to be there

Re: [web2py] Help me get a better feel for efficient code

2012-06-07 Thread Jonathan Lundell
On Jun 7, 2012, at 2:42 PM, Cliff Kachinske wrote: I don't have a good feel for the most efficient way to, for example, pass the db to a class method. I can think of three ways. - Pass it in when you call the method. - Pass it in when you initialize the class - Import current, do

[web2py] Re: Help me get a better feel for efficient code

2012-06-07 Thread Anthony
- Pass it in when you initialize the class This is how Auth and Crud work: http://code.google.com/p/web2py/source/browse/gluon/tools.py#898, http://code.google.com/p/web2py/source/browse/gluon/tools.py#3056. Probably the best approach when you need to access db from multiple methods.

Re: [web2py] Re: Help me get a better feel for efficient code

2012-06-07 Thread Bruce Wade
I using the same process as Auth, all my shared code is put in a package at the same level as gluon and I import what I need when I need it passing the db object to the constructor. On Thu, Jun 7, 2012 at 4:29 PM, Anthony abasta...@gmail.com wrote: - Pass it in when you initialize the class

[web2py] Re: Fluxflex will be shut down and no longer available on June 30, 2012

2012-06-07 Thread greaneym
Hello, people can also consider using RedHat's Openshift services for hosting as they do support python. They will be soon offering commercial pricing but maybe for many people their free platform is sufficient. Please contact Sumitha Nathan for details, snat...@redhat.com. I got her

Re: [web2py] Help me get a better feel for efficient code

2012-06-07 Thread Cliff Kachinske
Thanks, Jonathon, Does that mean there's only one instance of current for a running instance of Web2py? So if I do current.db, it could overwrite a current.db assigned in an earlier request? On Thursday, June 7, 2012 7:07:35 PM UTC-4, Jonathan Lundell wrote: On Jun 7, 2012, at 2:42 PM,

[web2py] Re: Help me get a better feel for efficient code

2012-06-07 Thread Cliff Kachinske
Anthony, Bruce, thank you. I will study the Auth and Crud code. On Thursday, June 7, 2012 5:42:33 PM UTC-4, Cliff Kachinske wrote: I'm just starting to use modules with classes for code commonality. I don't have a good feel for the most efficient way to, for example, pass the db to a

Re: [web2py] Help me get a better feel for efficient code

2012-06-07 Thread Jonathan Lundell
On Jun 7, 2012, at 6:12 PM, Cliff Kachinske wrote: Does that mean there's only one instance of current for a running instance of Web2py? So if I do current.db, it could overwrite a current.db assigned in an earlier request? No, it's unique to the current request (that's why it's called

Re: [web2py] Re: web2py still unable to create application on WebFaction

2012-06-07 Thread JoeCodeswell
Hi Noel, I had this problem occur AGAIN, TODAY on WebFaction, when I upgraded to Version 1.99.7 (2012-03-04 22:12:08) stable, Running on Apache/2.2.17 (Unix) mod_wsgi/3.3 Python/2.7.3. When creating a new simple app from the web admin interface i get unable to create application newapp (it may

[web2py] Is the welcome.w2p file missing in Version 1.99.7?

2012-06-07 Thread JoeCodeswell
This is a continuation of the web2py still unable to create application on WebFactionhttps://groups.google.com/forum/#!searchin/web2py/welcome.w2p/web2py/5eM4OTq-K1Q/Eru0UlZ8bs0J topic. When creating a new simple app from the web admin interface i get unable to create application newapp (it

[web2py] Re: conflicts with issue 778

2012-06-07 Thread Massimo Di Pierro
I am a bit lost. Can you email me a patch to remove what should have not been included? massimo On Wednesday, 6 June 2012 16:43:21 UTC-5, Carlos wrote: Hi Massimo, Why was the code in the following changeset re-included?: (e808fd6f684a) do not show errors about already uploaded files

[web2py] Re: has_permission() broken?

2012-06-07 Thread Massimo Di Pierro
Why do you say that? The exception is raised by the app controller, not by web2py. There is not enough info here to help debug. massimo On Wednesday, 6 June 2012 21:17:04 UTC-5, craley wrote: Traceback (most recent call last): File /srv/web2py/gluon/restricted.py, line 204, in restricted

Re: [web2py] niphlod tvseries error

2012-06-07 Thread Massimo Di Pierro
You did? I am not sure I have them. On Thursday, 7 June 2012 03:08:50 UTC-5, Niphlod wrote: There are a few places here and there stating that web2py supports python 2.5 , 2.6 and 2.7, preferring 2.5 . I contacted Massimo the last week just about that the binary distribution with a

Re: [web2py] SQLFORM.grid - questions/suggestions

2012-06-07 Thread Doug Philips
On Thu, Jun 7, 2012 at 2:12 PM, Anthony abasta...@gmail.com wrote: I'm not sure if this is in stable, but in trunk you can specify dictionaries of args to pass to SQLFORM, including separate dictionaries for create, edit, and view forms: 

[web2py] Re: trunk and statusbar?

2012-06-07 Thread Massimo Di Pierro
it is this: header class=jumbotron subhead id=overview../div I feel is new welcome is still too much cluttered anyway. There is too much js and too may obscure classes (jumbotron?) On Thursday, 7 June 2012 11:34:58 UTC-5, mweissen wrote: Today I have tried to build a new application using

[web2py] Re: default foreign key

2012-06-07 Thread Massimo Di Pierro
db(db.owner.isdefault=True).select() should be db(db.owner.isdefault==True).select() On Thursday, 7 June 2012 16:48:57 UTC-5, Vincent wrote: Thanks for the suggestion. It returns the following error: SyntaxError: keyword can't be an expression On Thursday, June 7, 2012 4:26:03 PM

Re: [web2py] Re: what do you think about waitress webserver

2012-06-07 Thread Massimo Di Pierro
agree. On Thursday, 7 June 2012 16:49:07 UTC-5, Derek wrote: Yeah, that whole large files get corrupted when downloading is a big issue... On Tuesday, June 5, 2012 1:14:14 PM UTC-7, Massimo Di Pierro wrote: Good reason to be busy. Anyway, if can assemble a team a people who can

Re: [web2py] Re: web2py still unable to create application on WebFaction

2012-06-07 Thread Massimo Di Pierro
The file welcome.w2p does not ship with web2py. It is created when the file NEWINSTALL is present. NEWINSTALL ships with web2py. How did you upgrade? If you upgrade from trunk, it is not there. On Thursday, 7 June 2012 20:35:19 UTC-5, JoeCodeswell wrote: Hi Noel, I had this problem occur

[web2py] Re: Is the welcome.w2p file missing in Version 1.99.7?

2012-06-07 Thread Massimo Di Pierro
cd web2py echo '' NEWINSTALL then web2py will create a welcome.w2p for you. On Thursday, 7 June 2012 20:47:02 UTC-5, JoeCodeswell wrote: This is a continuation of the web2py still unable to create application on

[web2py] Symbolic links in the applications directory...

2012-06-07 Thread Doug Philips
I can only find one mention of symbolic links in the book, under: http://web2py.com/books/default/chapter/29/4#Application-init That seems to imply that symbolic links at the applications directory level are ok. Specifically, if I have the following applications: ProjectX2010

[web2py] Re: conflicts with issue 778

2012-06-07 Thread Carlos
Hi Massimo, In summary, just revert changeset # e808fd6f684a, since that code is already included in the assert_status function. Thanks, Carlos On Thursday, June 7, 2012 9:38:44 PM UTC-5, Massimo Di Pierro wrote: I am a bit lost. Can you email me a patch to remove what should have not

[web2py] grid/smartgrid ondelete issue

2012-06-07 Thread weheh
I gave grid (and later tried smartgrid) an ondelete parameter, but it's not getting used at all by the grid object. Inspection of the grid's Delete button shows the onclick action to be the same regardless of whether or not I have an ondelete argument to SQLFORM.grid. Related questions,

[web2py] Re: conflicts with issue 778

2012-06-07 Thread Massimo Di Pierro
done. Thank you Carlos. Sorry for the confusion. On Thursday, 7 June 2012 22:18:05 UTC-5, Carlos wrote: Hi Massimo, In summary, just revert changeset # e808fd6f684a, since that code is already included in the assert_status function. Thanks, Carlos On Thursday, June 7, 2012 9:38:44

[web2py] Re: Is the welcome.w2p file missing in Version 1.99.7?

2012-06-07 Thread JoeCodeswell
Hi Massimo. Thanks for the reply. I DID do what you said to do. Here are the commands i ran. [web2py]$ echo '' NEWINSTALL [web2py]$ ls anyserver.py gaehandler.py options_std.py setup_exe.py appengine_config.py gluon parameters_80.pysetup.py

[web2py] Re: Is the welcome.w2p file missing in Version 1.99.7?

2012-06-07 Thread Massimo Di Pierro
Now I see the problem. For now you should be able to do echo '' NEWINSTALL python web2py.py -a 'hello' Ctrl+C when starting with apache the first time it skips the logic to create welcome.w2p. On Thursday, 7 June 2012 23:33:18 UTC-5, JoeCodeswell wrote: Hi Massimo. Thanks for the reply. I

[web2py] Re: [web2py:34669] Re: Does your Response Flash get in the way?

2012-06-07 Thread Janath
How can I change the location of response.flash. It overlaps with my menu items... Thank you, Janath On Thursday, November 5, 2009 1:16:41 PM UTC-6, Jonathan Lundell wrote: On Nov 5, 2009, at 8:52 AM, Thadeus Burgess wrote: Instead of putting a timer on response.flash, I moved its location

[web2py] Re: [web2py:34669] Re: Does your Response Flash get in the way?

2012-06-07 Thread pbreit
It's controlled with CSS in the web2py.css file. Look for div.flash. With the new bootstrap support, I put this in my layout.html: {{if response.flash:}} div class=alert button class=close data-dismiss=alert×/button {{=response.flash}} /div {{pass}} Right below: div

[web2py] Re: [web2py:34669] Re: Does your Response Flash get in the way?

2012-06-07 Thread Annet
I have been struggling with the flash messages as well. At the moment I have a separate view flash.html: {{if response.flash:}} div class= alert {{if alert:}}{{=alert}}{{else:}}{{alert-info}}{{pass}} a class=close data-dismiss=alertx/a {{=response.flash}} /div !-- /alert -- {{pass}}

[web2py] Which checker (PyChecker, Lint, PyFlakes, ...?) is good for using with web2py projects, and how?

2012-06-07 Thread nick name
What works? What doesn't work? What are the pitfalls? Do you need to write any if 0: import ... statements to make it recognize the functions? Thanks in advance.