[web2py] Getting Apache error on a web2py.com page

2010-12-27 Thread Kenneth Lundström
I was looking for making a page into a popup and found this page in Google groups: http://groups.google.com/group/web2py/browse_thread/thread/a753c07af1e396bc/56f7ed4ca7a62fb1?lnk=gst&q=popup+login#56f7ed4ca7a62fb1 There is a link to page: http://www.web2py.com/events/default/index which return

[web2py] SQLFORM into a pop window

2010-12-27 Thread Kenneth Lundström
Does anybody have a example of how to make a sqlform open up in a popup window? Kenneth

[web2py] cron quest

2010-12-27 Thread Manuele Pesenti
Hi *! I'm trying to set up a function in crontab, I'd like to run it daily or after run web2py so following the doc I write the crontab file as follows: #crontab @reboot * * * * root *cronfun/fetch_all_data @daily * * * * root *cronfun/fetch_all_data now running web2py it seams it h

[web2py] Re: Left Join with aliased table and the new DAL

2010-12-27 Thread HaM
First, Merry Christmas. Since I still experiencing problem on left join I have looked more deeply and try to find where is the difference between old and new DAL. I found that my problem only appears on a more complex request: Domain = dbPsnol.domain Client = dbPsnol.client Contact = dbPsnol.cont

Re: [web2py] Re: memory leak - model remains in memory after requests

2010-12-27 Thread David Zejda
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 I think you are right. It is highly probable that my app is leaking somehow. I do not cache dal objects directly and I use finite set of indentifiers for cached objects, but it is possible that some of my objects reference dal objects in an unwanted wa

[web2py] autocomplete - style: widht hard coded ??

2010-12-27 Thread Ole Martin Maeland
Hi, I have a autocomplete field in a form, and I would like it to be wider. Looking at the code it looks like it is hard coded - width: 200px, how do I overriede that in CSS ?? jQuery('#_autocomplete_paper_div').fadeOut('slow');" type="text">

[web2py] Re: CSS probleme

2010-12-27 Thread Martin.Mulone
There are no css customization over upload input in the base.css, because any css rules is override with the browser, perhaps some yes, but it's hard to achieve and requiere some js hacks and don't work with all browser. See http://www.quirksmode.org/dom/inputfile.html if you want to do that, a

Re: [web2py] autocomplete - style: widht hard coded ??

2010-12-27 Thread Branko Vukelić
Better modify the code. On Mon, Dec 27, 2010 at 11:28 AM, Ole Martin Maeland wrote: > Hi, > > I have a autocomplete field in a form, and I would like it to be wider. > Looking at the code it looks like it is hard coded - width: 200px, how do I > overriede that in CSS ?? > > > > jQuery('#_autocomp

Re: [web2py] Re: CSS probleme

2010-12-27 Thread Branko Vukelić
On Mon, Dec 27, 2010 at 11:30 AM, Martin.Mulone wrote: >  See http://www.quirksmode.org/dom/inputfile.html if you want to do that, > any easy solution is welcome. I don't think there's a good solution for that that doesn't involve javascript. And even the best-looking solutions I've seen simply c

Re: [web2py] Re: The stability of web2py releases

2010-12-27 Thread Martín Mulone
+1 to bitbucket. Bitbucket is great!, If we can clone in bitbucket, also if we can separate welcome/ and admin/ as independant app, we can contribute more to the web2py. 2010/12/24 Branko Vukelić : > 2010/12/24 Kenneth Lundström : >> Is there instructions how to use the hg stuff to use the trunk.

Re: [web2py] autocomplete - style: widht hard coded ??

2010-12-27 Thread Ole Martin Maeland
the code is a autogenerated form using SQLFORM - from the construction of the db, where I defined the autocomplete widget. would not like to hardcode it in the view template - so are there any other way to change the widht ?? regards Ole Martin 2010/12/27 Branko Vukelić > Better modify the code

[web2py] SimpleGeo - free tools for creating location aware apps with Python Client and SDK

2010-12-27 Thread Tom Atkins
Just for interest if you're building a location aware app: http://simplegeo.com

[web2py] jquey effect problem

2010-12-27 Thread Sahil Arora
I tried this code to see the jquery effect. Hello World but onclicking on Hello slide Toggles but nothing appears( 'world' doesn't appear).Just a blank line. -- Sahil Arora B.Tech 2nd year Computer Science and Engineering IIT Delhi Contact No: +91 9871491046 Homepage-www.cse.iitd.ac.in/~cs10902

[web2py] Re: jquey effect problem

2010-12-27 Thread Luther Goh Lu Feng
The syntax is correct. Is the jquery library included? You need to include something like Also look at the javascript console for possible errors. On Dec 27, 8:21 pm, Sahil Arora wrote: > I tried this code to see the jquery effect. > > Hello > World > > but onclicking on Hello slide Toggles

Re: [web2py] Re: jquey effect problem

2010-12-27 Thread Sahil Arora
i am doing this in default/index.html page in a application which extends layout.html which i think includes web2py_ajax.html . So is there any need to include any thing else. On Mon, Dec 27, 2010 at 6:29 PM, Luther Goh Lu Feng wrote: > The syntax is correct. Is the jquery library included? > > Y

[web2py] Possible bug in SQLFORM.factory in version 1.91.4?

2010-12-27 Thread Lisandro
I've been working with web2py for a while. Lastnight I updated to last version, and my webforms collapsed (those constructed with SQLFORM.factory). More precisely, the problem appeared in the forms where I mix some existing fields of the database with other fields defined on the run, just like thi

[web2py] Re: jquey effect problem

2010-12-27 Thread Luther Goh Lu Feng
I suggest inspecting the source to see the hhtml for the blank line. On Dec 27, 9:10 pm, Sahil Arora wrote: > see the attachment.. > first is before clicking on hello > second is after clicking.. > only a blank line comes > > On Mon, Dec 27, 2010 at 6:32 PM, Sahil Arora wrote: > > > > > > > > > >

[web2py] How can I translate/customize plugin_wiki multiselect widget?

2010-12-27 Thread Tito Garrido
Hi Folks, How can I personalize plugin_wiki multiselect widget? Regards, Tito -- Linux User #387870 . _/_õ|__| ..º[ .-.___.-._| . . . . .__( o)__( o).:___

Re: [web2py] How can I translate/customize plugin_wiki multiselect widget?

2010-12-27 Thread Bruno Rocha
plugin_multiselect is only JavaScript. You have to edit css and JS files in /static/plugin_wiki/multiselect/ 2010/12/27 Tito Garrido > Hi Folks, > > How can I personalize plugin_wiki multiselect widget? > > Regards, > > Tito > > -- > > Linux User #387870 > . > _/_õ|__| > ..º[

Re: [web2py] SimpleGeo - free tools for creating location aware apps with Python Client and SDK

2010-12-27 Thread Bruno Rocha
Thanks for sharing, exactly what I need for a new project. 2010/12/27 Tom Atkins > Just for interest if you're building a location aware app: > > http://simplegeo.com > > > -- Bruno Rocha http://about.me/rochacbruno/bio

[web2py] Re: 1.91.4 error reading version file

2010-12-27 Thread reyelts
So is this a packaging error when building the source package for download from web2py.com? On Dec 25, 5:22 pm, Jonathan Lundell wrote: > On Dec 25, 2010, at 1:40 PM, reyelts wrote: > > > > > Either the code should be looking for the name 'version' (since that's > > what is shipped) or the file s

[web2py] INNER JOIIN and aliased table

2010-12-27 Thread HaM
Hi, I'm trying to do INNER JOIN with aliased table and I'm experiencing problem. Here is my example: Domain = db.domain Client = db.client Manager = db.contact.with_alias('manager') sql = db((Domain.id==1)& (Client.id==Domain.client_id)& (Manager.id==Client.manager_id))._select(

Re: [web2py] Re: The stability of web2py releases

2010-12-27 Thread R. Strusberg
+1 2010/12/24 ron_m : > I for one am happy with the current release cycle. It is a good balance > between new features and the ultimate stability of release 1.XX.N  where N > is the last version before XX+1 for example. The nightly build is a bit of a > misnomer, many projects (C or C++ mostly) ha

Re: [web2py] Re: The stability of web2py releases

2010-12-27 Thread Bruno Rocha
Is there a web2py clone in bitbucket (updated 16 months ago) https://bitbucket.org/mdipierro/web2py/overview Just needs to update this repository 2010/12/27 R. Strusberg > +1 > > 2010/12/24 ron_m : > > I for one am happy with the current release

[web2py] Ajax pattern with Web2py

2010-12-27 Thread Markus Schmitz
Good afternoon everybody, I am trying my hand at a web2py based application and as long as I stay with the good old postback pattern, everything works brilliantly and coding is very efficient. In this style I programmed in the new application the account management, a database logging feature, a F

[web2py] ('str' object has no attribute 'update_record')

2010-12-27 Thread reyelts
I think I found another issue with upgrading from 1.81.4 to 1.91.4. My code that updates table entries craps out with the subject exception. I'm just doing the normal update_record as described in the book: elif form.accepts(request.vars,session,dbio=False): del form.vars['button']

[web2py] Call for posting issues on Google Code

2010-12-27 Thread Bruno Rocha
Many issues have emerged here in the list, I think it looks a little messy to manage these issues in this group. I think it's very important to post the issue here and report it as this can generate a good discussion between other users (and often was not even a bug, and sometimes can be solved he

Re: [web2py] Re: jquey effect problem

2010-12-27 Thread Martín Mulone
For me this code is working, the jquery is loaded?, your source code point to /hello/static/js/jquery.js this exist?. Also try to add ";" to the end of jquery sentence and change ".two" with "#b". 2010/12/27 Sahil Arora : > > I have attached the source html...i amgetting no idea > On Mon, Dec 27,

Re: [web2py] Re: 1.91.4 error reading version file

2010-12-27 Thread Jonathan Lundell
On Dec 27, 2010, at 7:39 AM, reyelts wrote: > > So is this a packaging error when building the source package for > download from web2py.com? I got VERSION just now when I downloaded it. Is 'version' repeatable for you? What OS and file sys

[web2py] Re: Getting Apache error on a web2py.com page

2010-12-27 Thread mdipierro
yes that is broken. I will eventually fix it On Dec 27, 2:32 am, Kenneth Lundström wrote: > I was looking for making a page into a popup and found this page in > Google > groups:http://groups.google.com/group/web2py/browse_thread/thread/a753c07af1... > > There is a link to page:http://www.web2py

[web2py] Re: cron quest

2010-12-27 Thread mdipierro
how do you start web2py? On Dec 27, 3:23 am, Manuele Pesenti wrote: > Hi *! > I'm trying to set up a function in crontab, I'd like to run it daily or > after run web2py so following the doc I write the crontab file as follows: > > #crontab > @reboot  *  *  *  *  root *cronfun/fetch_all_data > @da

[web2py] Re: Left Join with aliased table and the new DAL

2010-12-27 Thread mdipierro
We'll fix this. Pleas open a ticket on google code. Thanks for bringing this up. Massimo On Dec 27, 3:23 am, HaM wrote: > First, Merry Christmas. > > Since I still experiencing problem on left join I have looked more > deeply and try to find where is the difference between old and new > DAL. > I

[web2py] Re: Possible bug in SQLFORM.factory in version 1.91.4?

2010-12-27 Thread mdipierro
this has been fixed in trunk. I will post a new version soon. On Dec 27, 7:03 am, Lisandro wrote: > I've been working with web2py for a while. Lastnight I updated to last > version, and my webforms collapsed (those constructed with > SQLFORM.factory). > > More precisely, the problem appeared in t

[web2py] Re: INNER JOIIN and aliased table

2010-12-27 Thread mdipierro
Did this work with the old dal? On Dec 27, 9:41 am, HaM wrote: > Hi, > > I'm trying to do INNER JOIN with aliased table and I'm experiencing > problem. > Here is my example: > > Domain = db.domain > Client = db.client > Manager = db.contact.with_alias('manager') > sql = db((Domain.id==1)& >      

[web2py] Re: The stability of web2py releases

2010-12-27 Thread mdipierro
Yarko created it and used to maintain it. That is is the problem with having too many clones in different places. Venetually they get out of sync. Massimo On Dec 27, 9:50 am, Bruno Rocha wrote: > Is there a web2py clone in bitbucket (updated 16 months ago) > > https://bitbucket.org/mdipierro/web

[web2py] Re: ('str' object has no attribute 'update_record')

2010-12-27 Thread mdipierro
What is definition of PSDBrec? What is the exact traceback? On Dec 27, 10:04 am, reyelts wrote: > I think I found another issue with upgrading from 1.81.4 to 1.91.4. My > code that updates table entries craps out with the subject exception. > I'm just doing the normal update_record as described i

[web2py] Re: Call for posting issues on Google Code

2010-12-27 Thread mdipierro
+1 On Dec 27, 10:20 am, Bruno Rocha wrote: > Many issues have emerged here in the list, I think it > looks a little messy to manage these issues in this group. > > I think it's very important to post the issue here and report it as > this can generate a good discussion between other users (and of

[web2py] Re: Logging of impersonation events

2010-12-27 Thread alexandremasbr
Massimo, I used impersonation in a app, and update to 1.91.4, and it don't work anymore, using the described in the book. How it works now? Alexandre On 8 dez, 05:16, mdipierro wrote: > I will add logging. > > Mind that it has pointed out that impersonate/0 presents a mild > security risk. We

Re: [web2py] Call for posting issues on Google Code

2010-12-27 Thread Jonathan Lundell
On Dec 27, 2010, at 8:20 AM, Bruno Rocha wrote: > Many issues have emerged here in the list, I think it looks a little messy to > manage these issues in this group. > > I think it's very important to post the issue here and report it as this can > generate a good discussion between other users (

[web2py] About Workflow and Collapsible sections in forms

2010-12-27 Thread António Ramos
Hello, i have an app in Lotus Notes that i designed for my company. It manages workflows and is a great improvement in my work. I want to create something similar in web2py but lotus notes has collapsible sections in forms that are very easily configured and very usefull when restriction access to

[web2py] Re: Logging of impersonation events

2010-12-27 Thread alexandremasbr
Massimo, I find the answer, but there is a bug, anyway. The id have to be send by POST, but generates a error caused by a typo in tools.py if requested_id == DEFAULT and not rquest.post_vars: NameError: global name 'rquest' is not defined Please correct it. Alexandre On 27 dez, 15:26, a

Re: [web2py] Call for posting issues on Google Code

2010-12-27 Thread Bruno Rocha
Google Code has an API for Issue Tracker http://code.google.com/p/support/wiki/IssueTrackerAPIPython I imagine a form in /admin and tickets page where user fill some comment and include the ticket file (maybe), I just sont know how to de

[web2py] Re: Logging of impersonation events

2010-12-27 Thread mdipierro
fixed in trunk. On Dec 27, 11:43 am, alexandremasbr wrote: > Massimo, > > I find the answer, but there is a bug, anyway. > > The id have to be send by POST, but generates a error caused by a typo > in tools.py > >     if requested_id == DEFAULT and not rquest.post_vars: > NameError: global name '

[web2py] I am new to Web2Py............ hello every body!!

2010-12-27 Thread yosvel
So nice to write to you web2py-users I am a experienced PHP web developer with frameworks like Symfony and CodeIgniter.. Now, 3 days reading documentation and I am really impressed on how fun is web development with Python and the Web2Py framework but, I have some questions to ask you: 1. how can

[web2py] multiple SQLFORM.factory per page

2010-12-27 Thread Pawel Jasinski
hi, when I try to put multiple forms generated with SQLFORM.factory things act a bit odd. #controller def index(): form1 = SQLFORM.factory(Field('a')) if form1.accepts(request.vars, session) : print "form1 accepted" form2 = SQLFORM.factory(Field('b')) if form2.accepts(req

[web2py] Question on with_alias using Postgres

2010-12-27 Thread betus
Hey: I just started using web2py a few weeks ago and I love it.. Congratulations for the great work. I have a question that might've been answered before, although I searched and found no answer.. I'm having a problem setting an alias to a field when performing a query. For example: db().select(

[web2py] Re: Question on with_alias using Postgres

2010-12-27 Thread mdipierro
with_alias currently is only supported for left joins. In the case below in particular, it is not functionally useful although I can see the convenience. On Dec 27, 10:32 am, betus wrote: > Hey: > > I just started using web2py a few weeks ago and I love it.. > Congratulations for the great work.

[web2py] Re: multiple SQLFORM.factory per page

2010-12-27 Thread mdipierro
The accepts must have fomrnames (different onces) form1.accepts(request.vars, session, formname='form1') On Dec 27, 10:18 am, Pawel Jasinski wrote: > hi, > > when I try to put multiple forms generated with SQLFORM.factory things > act a bit odd. > > #controller > def index(): >     form1  = SQLF

[web2py] Re: I am new to Web2Py............ hello every body!!

2010-12-27 Thread mdipierro
I think something like #in controller or model if request.env.http_user_agent=='...': response.layout='layout1.html' else: response.layout='layout2.html' and in views {{extend response.layout}} Mind that if you do this will not be able to bytecode apps. On Dec 27, 11:50 am, yosvel

Re: [web2py] I am new to Web2Py............ hello every body!!

2010-12-27 Thread Bruno Rocha
I found this on code compression: http://code.activestate.com/recipes/496882-javascript-code-compression/ http://pypi.python.org/pypi/WebDepCompress/0.2 2010/12/27 yosvel

[web2py] validator.py and T()

2010-12-27 Thread Martin Weissenboeck
Hi, I want to build a website using German. A lot of texts can be translated using the T() object. But there are some problems: (1) I have modified default/user.html: - {{=T('register')}} - {{=T('lost password')}} Works fine. Would be nice to have these lines as standard text. (2) The

Re: [web2py] validator.py and T()

2010-12-27 Thread Bruno Rocha
That is because T() is not in context when validators are defined. you have to pass error_message to your validators. db.table.field.requires=IS_NOT_EMPTY(error_message=T('this field cannot be empty')) That is the way I am doing woth my Portuguese systems and sites. 2010/12/27 Martin Weissenboec

[web2py] Re: Logging of impersonation events

2010-12-27 Thread alexandremasbr
Not working yet. It not recognize the request.post_vars Please, give me a working example. Alexandre On 27 dez, 15:53, mdipierro wrote: > fixed in trunk. > > On Dec 27, 11:43 am, alexandremasbr wrote: > > > > > Massimo, > > > I find the answer, but there is a bug, anyway. > > > The id have to

[web2py] Re: Logging of impersonation events

2010-12-27 Thread alexandremasbr
Not working yet. It not recognize the request.post_vars Please, give me a working example. I used the form below Simulate User: Alexandre On 27 dez, 16:46, alexandremasbr wrote: > Not working yet. It not recognize the request.post_vars > > Please, give me a working example. > > Alexandre > > O

[web2py] Re: executing code from db

2010-12-27 Thread mattynoce
bump. any thoughts on running code stored in the db through the web2py interpreter? On Dec 23, 3:17 pm, mattynoce wrote: > hi all. i know this doesn't sound like a superb idea, but i may have > to do something like it. > > i have data coming from the db and being displayed to the user as > instru

[web2py] Re: Left Join with aliased table and the new DAL

2010-12-27 Thread mdipierro
This should now be fixed in trunk. Please confirm. On Dec 27, 3:23 am, HaM wrote: > First, Merry Christmas. > > Since I still experiencing problem on left join I have looked more > deeply and try to find where is the difference between old and new > DAL. > I found that my problem only appears on

[web2py] what's the use of form.custom.*

2010-12-27 Thread Arun K.Rajeevan
I have these tables, db.define_table('languages', Field('full', 'string', length=30, notnull=True, required=True), Field('short', 'string', length=10 , notnull=True, required=True), format='%(full)s - %(short)s') db.define_table('w

[web2py] Re: Logging of impersonation events

2010-12-27 Thread mdipierro
Did you auth.add_permission(user_group_id,'impresonate','auth_user',217) ? On Dec 27, 12:51 pm, alexandremasbr wrote: > Not working yet. It not recognize the request.post_vars > Please, give me a working example. > > I used the form below > Simulate User: class="hidden"> div> > > Alexandre > >

[web2py] Re: executing code from db

2010-12-27 Thread mdipierro
cube2py does that. http://code.google.com/p/cube2py/source/browse/models/plugin_wiki.py?r=1a9307c63a03ff17d70ea57e946cabf3dae4cc57#497 On Dec 27, 12:56 pm, mattynoce wrote: > bump. any thoughts on running code stored in the db through the web2py > interpreter? > > On Dec 23, 3:17 pm, mattynoce

[web2py] Re: what's the use of form.custom.*

2010-12-27 Thread mdipierro
Those are not setters. They are getters. You use them as in {{=form.custom.inpval['fieldname']}} in custom html forms, not to override settings. massimo On Dec 27, 1:13 pm, "Arun K.Rajeevan" wrote: > I have these tables, > > db.define_table('languages', >                 Field('full', 'string',

[web2py] Re: gql broken in latest version (1.91.4) ?

2010-12-27 Thread jinlin
I added the issue and attached the patch file that is working for me. http://code.google.com/p/web2py/issues/detail?id=139&sort=-id When testing I noticed if there are two applications using the same table name, it will create the same table in gae, without namespace on the table name. It won't

[web2py] Re: ('str' object has no attribute 'update_record')

2010-12-27 Thread reyelts
Here's the complete traceback: Traceback (most recent call last): File "/media/EZTRAIN/web2py_lin/gluon/restricted.py", line 188, in restricted exec ccode in environment File "/media/EZTRAIN/web2py_lin/applications/canyonezt/controllers/ client.py", line 245, in File "/media/EZTRAIN/web

[web2py] Re: what's the use of form.custom.*

2010-12-27 Thread Arun K.Rajeevan
I see, so if there any similar setters?

[web2py] Re: 1.91.4 error reading version file

2010-12-27 Thread reyelts
I do "wget --no-clobber --directory-prefix=blah http://www.web2py.com/examples/static/web2py_src.zip"; followed by "unzip -o -q..." to unravel the file. For both web2py_src.zip and web2py_win.zip, I got "version". In both cases, other file names with uppercase characters were extracted normally (li

[web2py] Re: executing code from db

2010-12-27 Thread mart
Hi Massimo, Is cube2py still something you support? Asking because I haven't read many threads about it lately... And, is the plugin_wiki part of cube2py up to date (or the same?) with the plugin available for download on web2py.com? Meaning, I would love to take that route, is everything compati

[web2py] Re: ('str' object has no attribute 'update_record')

2010-12-27 Thread mdipierro
This: PSDBrec = request.args[1] PSDBrec.update_record(**dict(form.vars)) could never have worked. The ticket is right. PSDrec is a string. This is the correct thing to do: PSDBrec = db.PSDB(request.args(1)) or redirect(URL('error_page')) PSDBrec.update_record(**dict(form.vars)) or

[web2py] Re: what's the use of form.custom.*

2010-12-27 Thread mdipierro
Those values are derived from db.table.field.label db.table.field.default db.table.field.widget Which you can change. On Dec 27, 1:39 pm, "Arun K.Rajeevan" wrote: > I see, > so if there any similar setters?

[web2py] Re: executing code from db

2010-12-27 Thread mdipierro
cube2py is just a scaffolding app + plugin_wiki. The code is in question is also in plugin_wiki although people do not seem to use it (and I am not sure it is in general a good idea to store code in db). On Dec 27, 2:18 pm, mart wrote: > Hi Massimo, > > Is cube2py still something you support? Ask

Re: [web2py] Re: 1.91.4 error reading version file

2010-12-27 Thread Jonathan Lundell
On Dec 27, 2010, at 12:13 PM, reyelts wrote: > > I do "wget --no-clobber --directory-prefix=blah > http://www.web2py.com/examples/static/web2py_src.zip"; followed by > "unzip -o -q..." to unravel the file. For both web2py_src.zip and > web2py_win.zip, I got "version". In both cases, other file nam

[web2py] patch notes

2010-12-27 Thread Jonathan Lundell
By way of explanation... My parse_url patch today is strictly refactoring, with no functional change--another in a series of patches to make URL rewriting more modular. The Rocket patch is slightly more than cosmetic, in a development context. New worker threads, beyond the first default thread

[web2py] Re: executing code from db

2010-12-27 Thread mattynoce
hm. this is true, but what i'm looking to do is a little different. basically i want to do templating like you do in the views. so my view would look like this: __ hello, {{=user.first_name}}, {{=instruction.step}} __ and instruction.step might have text like "your last name is {{=user.last_nam

[web2py] css handling at custom form

2010-12-27 Thread pk
hi together, i need very important help: i have this code example: {{=foto_edit.custom.begin}} Image file: {{=XML("%s%s" % (str(foto_edit.custom.widget.image).split("[")[0], ''))}} Click here to upload: {{=foto_edit.custom.submit}} {{=foto_edit.custom.end}} how can i handle the css for

[web2py] Re: 1.91.4 error reading version file

2010-12-27 Thread mart
this works for me on ac os x: import string from urllib2 import Request, urlopen, URLError, HTTPError url = 'http://www.web2py.com/examples/static/web2py_src.zip' req = Request(url) try: oFile = urlopen(req) latestVersion = string.strip(string.split(string.split(string.split(oFile.read(),

[web2py] Re: patch notes

2010-12-27 Thread mdipierro
Thank you for the clarification Jonathan. On Dec 27, 2:51 pm, Jonathan Lundell wrote: > By way of explanation... > > My parse_url patch today is strictly refactoring, with no functional > change--another in a series of patches to make URL rewriting more modular. > > The Rocket patch is slightly

[web2py] Re: SimpleGeo - free tools for creating location aware apps with Python Client and SDK

2010-12-27 Thread Felipe Pedrini
Do you know if simplegeo Storage will become a paid service? It looks exactly what I need. Thanks for sharing! On Dec 27, 9:10 am, Tom Atkins wrote: > Just for interest if you're building a location aware app: > > http://simplegeo.com

Re: [web2py] Re: The stability of web2py releases

2010-12-27 Thread Thadeus Burgess
Also an issue when only one person has access to said clones. -- Thadeus On Mon, Dec 27, 2010 at 11:04 AM, mdipierro wrote: > Yarko created it and used to maintain it. That is is the problem with > having too many clones in different places. Venetually they get out of > sync. > > Massimo > >

[web2py] Re: 1.91.4 error reading version file

2010-12-27 Thread mart
and this to download ad extract to unique location: from time import strftime, localtime import string from urllib2 import Request, urlopen, URLError, HTTPError from zipfile import ZipFile,ZipExtFile, ZIP_STORED, ZipInfo dateTimeStamp = '{0}'.format(strftime('%y%m%d%H%M%S',

Re: [web2py] Ajax pattern with Web2py

2010-12-27 Thread David J.
Hey Markus; I am questioning the same thing; I am also trying to dig up this information. maybe someone on this list has dealt with similar problems and wouldn't mind sharing? If I find something I will be sure to post. Thanks. On 12/27/10 10:54 AM, Markus Schmitz wrote: Good afternoon

[web2py] writable=False, default=False ... problem (v1.91.4)

2010-12-27 Thread VP
I just upgraded to 1.91.4 (probably should have waited). I don't know if this is related to 1.91.4 but I don't recall having this problem with 1.90.x Anyway, I have a table with a boolean field. In the model definition (db.define.), it is set with default=False and writable=False. With the

[web2py] Re: The stability of web2py releases

2010-12-27 Thread mdipierro
I have no interest and not time for this. If somebody wants to take over the cloning and ask Yarko, I am sure he will not mind. Email me for his address. massimo On Dec 27, 4:15 pm, Thadeus Burgess wrote: > Also an issue when only one person has access to said clones. > > -- > Thadeus > > On Mon

[web2py] Re: The stability of web2py releases

2010-12-27 Thread weheh
@Branko: my point is that python has many stable releases. I have some ancient code that's still on python 2.3 and absolutely, positively can't be upgraded to the latest stable 2.5.X or later. The point being that if I were ever going to have to migrate that code to a new machine, I would have to i

Re: [web2py] Re: The stability of web2py releases

2010-12-27 Thread Branko Vukelić
In other words, you want commit access to the master repository? On Mon, Dec 27, 2010 at 11:15 PM, Thadeus Burgess wrote: > Also an issue when only one person has access to said clones. > > -- > Thadeus > > > > > On Mon, Dec 27, 2010 at 11:04 AM, mdipierro wrote: >> >> Yarko created it and used

[web2py] Re: Ajax pattern with Web2py

2010-12-27 Thread weheh
If you haven't read the sections on ajax (don't recall the chapter) and components (ch 13), then you must read them first. Then, experiment with something really trivial in order to get your feet wet, like this: #controller def index(): return dict() def callback(): return 'hello world' #view

[web2py] Re: writable=False, default=False ... problem (v1.91.4)

2010-12-27 Thread mdipierro
fixed in trunk On Dec 27, 4:58 pm, VP wrote: > I just upgraded to 1.91.4 (probably should have waited).  I don't know > if this is related to 1.91.4 but I don't recall having this problem > with 1.90.x > > Anyway, I have a table with a boolean field.  In the model definition > (db.define.), i

[web2py] Re: executing code from db

2010-12-27 Thread mattynoce
on second thought (or third, or fourth), don't worry about this. i'm going to redo my setup so i don't have to pull code from the db or try to template templates. thanks, matt On Dec 27, 1:02 pm, mattynoce wrote: > hm. this is true, but what i'm looking to do is a little different. > > basicall

Re: [web2py] Re: executing code from db

2010-12-27 Thread Stef Mientki
On 27-12-2010 21:23, mdipierro wrote: > cube2py is just a scaffolding app + plugin_wiki. The code is in > question is also in plugin_wiki although people do not seem to use it > (and I am not sure it is in general a good idea to store code in db). > I wonder why not ? it might be unconventional, an

Re: [web2py] try web2py with cherrypy, diesel, eventlet, fapws,flup, gnuicorn, paste, rocket, tornado, twisted, wsgiref

2010-12-27 Thread Bruno Rocha
I am giving a first try on this: <*cherrypy*> rochacbr...@macubuntu:~/projects/web2py$ python anyserver.py -s cherrypy -p 8080 starting cherrypy on 127.0.0.1:8080... /usr/lib/pymodules/python2.6/cherrypy/lib/cptools.py:3: DeprecationWarning: the md5 module is deprecated; use hashlib instead impo

Re: [web2py] try web2py with cherrypy, diesel, eventlet, fapws,flup, gnuicorn, paste, rocket, tornado, twisted, wsgiref

2010-12-27 Thread Bruno Rocha
Just tried Cyclone - https://github.com/fiorix/cyclone - It is based on twisted then I thought that would run <*cyclone*> rochacbr...@macubuntu:~/projects/web2py$ python anyserver.py -s cyclone -p 8081 starting cyclone on 127.0.0.1:8081... Traceback (most recent call last): File "anyserver.py",

[web2py] Re: Web2Py Foundation?

2010-12-27 Thread Pepe Araya
Hi, some news about this topic? I think 2 things are going in favor of creating a foundation or [whatever]: 1. the community has grown a lot. 2. in all the reviews I read about web2py, always, always, ALWAYS!!! say it is a single-person framework and that takes away the future security of their

[web2py] Re: Web2Py Foundation?

2010-12-27 Thread Vincent
On Dec 27, 8:46 pm, Pepe Araya wrote: > Hi, > > some news about this topic? > > I think 2 things are going in favor of creating a foundation or [whatever]: > 1. the community has grown a lot. > 2. in all the reviews I read about web2py, always, always, ALWAYS!!! say it > is a single-person frame

[web2py] Re: Web2Py Foundation?

2010-12-27 Thread weheh
Non-for-profits take a lot to setup and administer ... more so than corporations. I've set up all different types of corps: Schedule S, Schedule C, LLCs, but never a 501c3 (non-profit). I have 2 family members who have extensive experience setting up and administering 501c3's and from talking with

[web2py] Re: css handling at custom form

2010-12-27 Thread weheh
Use firebug to see the class name of your submit button. Then create a custom css that changes the class. Or ditch the submit button and make your own INPUT(_type=submit, _name= ..., _class='myclass'). On Dec 27, 4:11 pm, pk wrote: > hi together, > i need very important help: > > i have this code

[web2py] Re: try web2py with cherrypy, diesel, eventlet, fapws,flup, gnuicorn, paste, rocket, tornado, twisted, wsgiref

2010-12-27 Thread mdipierro
Look at the code. It is trivial to add it. On Dec 27, 8:00 pm, Bruno Rocha wrote: > Just tried Cyclone -https://github.com/fiorix/cyclone- It is based on >  twisted then I thought that would run > > <*cyclone*> > rochacbr...@macubuntu:~/projects/web2py$ python anyserver.py -s cyclone -p > 8081 >

[web2py] Re: A bug or am I doing something wrong

2010-12-27 Thread Kenneth Lundström
Any thoughts about this one? Kenneth Aapche 2, wsgi, MySQL 5.0, web2py 1.91.4, python 2.6.5 I have defined in my model: Field('f_total_sum_all', type='decimal', label=T('Total Sum')), Even float gives the same error. Only integer works. Version web2py™ Version 1.91.4 (2010-12-22 17:31:23)

Re: [web2py] SQLFORM into a pop window

2010-12-27 Thread Kenneth Lundström
Thank you Bruno, my first thought when I tested it was that this doesn´t work at all, but now I see that it works quite nice. Kenneth Attached is an app which opens a form in a modal box. 2010/12/27 Kenneth Lundström > Does anybody have a example

[web2py] Re: Web2Py Foundation?

2010-12-27 Thread mdipierro
Not sure what a single person framework means. This framework counts almost 100 contributors and at least 50 people very skilled here. If I get hit by a track any of them can take over by forking my branch as allowed by the license. The purpose of the foundation is to collect money for development

[web2py] Re: try web2py with cherrypy, diesel, eventlet, fapws,flup, gnuicorn, paste, rocket, tornado, twisted, wsgiref

2010-12-27 Thread mdipierro
Anyway... I have now try a few of these servers, specifically for comet via HTML5 WebSocket. I am impressed by Tornado for both the ease of use and performance. http://thomas.pelletier.im/2010/08/websocket-tornado-redis/ Massimo On Dec 28, 12:31 am, mdipierro wrote: > Look at the code. It is

[web2py] Not open source yet... but

2010-12-27 Thread mdipierro
http://vimeo.com/18232653

Re: [web2py] Re: cron quest

2010-12-27 Thread Manuele Pesenti
Il 27/12/2010 17:58, mdipierro ha scritto: how do you start web2py? that was my doubt... I just run web2py from it's path where I downloaded it. Is it correct? thank you bye Manuele

[web2py] Re: cron quest

2010-12-27 Thread mdipierro
that is fine. Window, Mac, Linux? Which version? Which Python version? What command do you use python web2py.py ? On Dec 28, 1:02 am, Manuele Pesenti wrote: > Il 27/12/2010 17:58, mdipierro ha scritto:> how do you start web2py? > > that was my doubt... I just run web2py from it's path where I d

  1   2   >