[web2py] Re: Detecting test vs. production environments

2011-02-02 Thread ron_m
I put all my production vs developer settings in an if else block and use my own variable PRODUCTION. This is in the model directory and named 0_customization.py in my case. This allows you to set the migrate, local_import reload parameter and anything else you want. Then I just need to

[web2py] Re: Detecting test vs. production environments

2011-02-02 Thread Dane
I'm doing something similar for configuration, but I'd really like to find a way to detect this setting automatically instead of setting a flag which just adds needless complexity to my git deployments. All I really need is a way to reliably check the full url of my app as the client sees it, and

[web2py] Re: execfile

2011-02-02 Thread Tom Atkins
See Massimo's response here: https://groups.google.com/forum/#!topic/web2py/dmN54cpMuXo

[web2py] Re: web2py exec in the new again

2011-02-02 Thread desfrenes
On 1 fév, 21:16, Massimo Di Pierro massimo.dipie...@gmail.com wrote: In web2py you cannot store instances of objects into session. While Armin makes it tool like this is a web2py problem this is more complex and general than that. In Python if you pickle and object that is instance of a class

[web2py] Re: execfile

2011-02-02 Thread desfrenes
Yes, I read it. Anyway, thank you Massimo for keeping python web development out of the wannabe-java everything-should-be-made-standard syndroms. And the statement about web2py being harmful to the python community is just shit. Web2py was the one framework that got me interested in python web

[web2py] Mac OSX server startup files

2011-02-02 Thread rif
I made web2py autostart on a mac osx server conforming to tutorialhttp://docstore.mik.ua/orelly/unix3/mac/ch02_02.htm . Install web2py in /Applications folder. The StartupParameters.plist must be placed in the /Library/StartupItems/ (if you don't have one already). Then create a directory named

[web2py] Defualt values with DAL and define_table

2011-02-02 Thread vortex
Is it possible to make the default value of one column the mathematical result of two other columns?

[web2py] Re: Defualt values with DAL and define_table

2011-02-02 Thread Jose
On 2 feb, 07:43, vortex billyara...@gmail.com wrote: Is it possible to make the default value of one column the mathematical result of two other columns? Yes you can, please look at [1] Regards, Jose [1] http://www.web2py.com/book/default/chapter/06#Computed-Fields

Re: [web2py] jQuery 1.5 released

2011-02-02 Thread Plumo
For a while now I have been running my apps off the latest version on Google's CDN and haven't noticed any problems. http://ajax.googleapis.com/ajax/libs/jquery/1/jquery.min.js

Re: [web2py] jQuery 1.5 released

2011-02-02 Thread rif
Google is still on 1.4.4 (including your link).

[web2py] upload an excel sheet to be added to the system

2011-02-02 Thread Neveen Adel
Hello, Is there a library that can be used to import an excel file that insert records in a specific table ? If there is no a library how can i do that ? Thanks in Advance

Re: [web2py] jQuery 1.5 released

2011-02-02 Thread w2padawan
I second why massimo said. worth to wait a while to include 1.5 in web2py officials 2011/2/2 rif feric...@gmail.com: Google is still on 1.4.4 (including your link).

Re: [web2py] jQuery 1.5 released

2011-02-02 Thread w2padawan
2011/2/2 w2padawan web2py.n...@gmail.com: I second why massimo said. worth to wait a while to include 1.5 in web2py officials fe de errata: I second *what* massimo said. worth to wait a while to include 1.5 in web2py officials

Re: [web2py] upload an excel sheet to be added to the system

2011-02-02 Thread Kenneth Lundström
I know you can import/export CSV-files and export XLS files. But I don´t know if there is a way to import XLS files directly. Kenneth Hello, Is there a library that can be used to import an excel file that insert records in a specific table ? If there is no a library how can i do that ?

[web2py] Re: upload an excel sheet to be added to the system

2011-02-02 Thread Neveen Adel
Hello Kenneth, Thanks for your reply:) It is ok about import/export CSV files, How can i do this into my application ? On Feb 2, 3:39 pm, Kenneth Lundström kenneth.t.lundst...@gmail.com wrote: I know you can import/export CSV-files and export XLS files. But I don t know if there is a way to

[web2py] Re: Deployment Confusion

2011-02-02 Thread Gary Bee
Just to follow up on my troubles so far... I have deployed my site using google app engine, just to get it out there. I have adjusted the setting as described in the app engine documentation to get my domain forwarded (is that the right term) to google app engine. I had no succes when trying

Re: [web2py] Re: migration from 1.88.2 to 1.91.6 problem

2011-02-02 Thread Richard Vézina
True Richard On Wed, Feb 2, 2011 at 12:20 AM, Marin Pranjic marin.pran...@gmail.comwrote: ### this happens because FROM has no knowledge of writable ### and thinks that a missing boolean field is a None if self.table[fieldname].type ==

[web2py] Multiple users on computer and authorization with Janrian (RPX)

2011-02-02 Thread devGS
Hi, I found the following problem while with Janrain's authorization, and would like to know if there is a way to fix it within web2py: While testing RPX logging-in in my app, I tried to login, logged out and passed the computer to my mate who logged in to my app with his own account. At first,

Re: [web2py] Re: upload an excel sheet to be added to the system

2011-02-02 Thread Bruno Rocha
Take a look at this pack:http://www.python-excel.org/ Bruno Rocha http://about.me/rochacbruno/bio

Conceptual web2py (was Re: [web2py] Re: Kudos for web2py!)

2011-02-02 Thread Offray Vladimir Luna Cárdenas
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Hi, El 01/02/11 19:58, mikech escribió: Ok a link would be useful: http://smalltalkzen.wordpress.com/2011/02/01/a-secret-passion-and-your-choice-of-web-framework/ Thanks for the link and the quote from it. It touch my experience in some kind of

Re: [web2py] Re: Important Pycon 2011

2011-02-02 Thread James Hancock
I want to go so bad! I am making it to the conference, but to poor to get there two days early... I am Staying for the sprints afterword, and will be hacking on https://launchpad.net/pybookbuilder. Any plans for web2py work? I would love to participate if there is, especially if there is

[web2py] Mixing/supporting CMS with Web2py

2011-02-02 Thread Carl
has anyone direct experience of using Wordpress, SquareSpace or similar solution alongside Web2py? These solutions appeal for their maturity and I'd like to use one to do the donkey work and fall back to Web2py to do my site's specific functionality. Without them I feel like I'm reinventing

Re: [web2py] Re: Detecting test vs. production environments

2011-02-02 Thread Vinicius Assef
Try to check the REMOTE_HOST. If it is localhost, it is local. On Wed, Feb 2, 2011 at 6:09 AM, Dane dane.schnei...@gmail.com wrote: I'm doing something similar for configuration, but I'd really like to find a way to detect this setting automatically instead of setting a flag which just adds

[web2py] onaccept after user registers;

2011-02-02 Thread David J.
Is there an example of using onaccept after a user registers?

Re: [web2py] Re: Testing the new router

2011-02-02 Thread Tom Atkins
Thanks for your work on the new routers Jonathan - it makes life much easier. Quick question, say I have: routers = dict( BASE = dict( domains = { 'domain1.com' : 'app1', 'domain2.com' : 'app2', } ), ) But would also like www.domain1.com to map to app1 but

[web2py] Router and Routes

2011-02-02 Thread Arun K.Rajeevan
I'm sure that I missed something. What's that router.py in addition to earlier routes.py. Should I be able to see a documentation on this topic somewhere?

Re: [web2py] Mixing/supporting CMS with Web2py

2011-02-02 Thread contatogilson...@gmail.com
Instant Press - http://code.google.com/p/instant-press/ _ *Gilson Filho* *Web Developer http://gilsondev.com* 2011/2/2 Carl m...@carlroach.com has anyone direct experience of using Wordpress, SquareSpace or similar solution alongside Web2py?

Re: [web2py] Re: Detecting test vs. production environments

2011-02-02 Thread Jonathan Lundell
On Feb 2, 2011, at 12:09 AM, Dane wrote: I'm doing something similar for configuration, but I'd really like to find a way to detect this setting automatically instead of setting a flag which just adds needless complexity to my git deployments. All I really need is a way to reliably check the

Re: [web2py] Re: Important Pycon 2011

2011-02-02 Thread Richard Vézina
Could it be retransmit into live webminar That way I can get in. Richard On Wed, Feb 2, 2011 at 4:29 AM, James Hancock jlhanc...@gmail.com wrote: I want to go so bad! I am making it to the conference, but to poor to get there two days early... I am Staying for the sprints afterword, and

[web2py] Re: upload an excel sheet to be added to the system

2011-02-02 Thread mart
sticking purely to text, is there a difference between an excel file and csv? if formatted properly, it should be the same thing. Extension names are only incidental, if web2py has the extension hard coded in its look up, then you should be able to simply rename the file... On Feb 2, 9:58 am,

Re: [web2py] jQuery 1.5 released

2011-02-02 Thread ron_m
I wouldn't rush into it either but the testing I did shows a very compatible release when comparing 1.4.4 vs 1.5 including jQueryUI and another plugin I use. I am impressed with their quality and their strong adherence to backwards compatibility.

Re: [web2py] Re: Testing the new router

2011-02-02 Thread Jonathan Lundell
On Feb 2, 2011, at 7:52 AM, Tom Atkins wrote: Thanks for your work on the new routers Jonathan - it makes life much easier. Quick question, say I have: routers = dict( BASE = dict( domains = { 'domain1.com' : 'app1', 'domain2.com' : 'app2', } ), )

Re: [web2py] Router and Routes

2011-02-02 Thread Jonathan Lundell
On Feb 2, 2011, at 7:57 AM, Arun K.Rajeevan wrote: I'm sure that I missed something. What's that router.py in addition to earlier routes.py. Should I be able to see a documentation on this topic somewhere? It's still routes.py. See the comments in router.example.py for documentation,

[web2py] Re: Multiple users on computer and authorization with Janrian (RPX)

2011-02-02 Thread ron_m
I put this chunk of code in models/menu.py just after the index item and before the rest of the menu because I didn't want the other menu items exposed if not logged in. Your case may vary but the code should be the same, just placement. if auth.user: #print 'menu: ', auth.user_id,

Re: [web2py] Re: migration from 1.88.2 to 1.91.6 problem

2011-02-02 Thread Richard Vézina
Can I just remove the added line in sqlhtml.py in the web2py 1.91.6? Is it safe to do so? I have crud.update form where I have some field that are boolean type that are set to writable false then I use a .represent= for them... Ex.: db.table1.valid.represent=\ lambda value: value==True and

[web2py] Re: IS_IN_SET texts

2011-02-02 Thread Mirek Zvolský
For me works following syntax too: IS_IN_SET(((yes,T(yes)), (no,T(no IS_IN_SET(((1,T(yes)), (0,T(no On 27 led, 21:33, DenesL denes1...@yahoo.ca wrote: You can use requires=IS_IN_SET({1:'Fixed yesterday', 2:'to be fixed today', ...})

Re: [web2py] Re: Testing the new router

2011-02-02 Thread Tom Atkins
Thanks for the quick reply! Your suggestion works fine. Perfect for my low traffic server with lots of small sites. I'll look into getting Apache to manage redirects if (when!) it gets busier. The redirect is useful as if a user comes to the www. version of the site and then to the no www

Re: [web2py] Re: Testing the new router

2011-02-02 Thread Jonathan Lundell
On Feb 2, 2011, at 9:17 AM, Tom Atkins wrote: Thanks for the quick reply! Your suggestion works fine. Perfect for my low traffic server with lots of small sites. I'll look into getting Apache to manage redirects if (when!) it gets busier. The redirect is useful as if a user comes to the

[web2py] new URL router use cases

2011-02-02 Thread Jonathan Lundell
[I'm reposting this message from a couple of weeks ago. It describes some simple use cases for the new URL router (trunk-only at the moment).] Suppose you've written an app, named it 'myapp', and want to make it the default, with its name always removed. Your default controller is still

[web2py] Re: Speeding up IS_IN_DB

2011-02-02 Thread Mirek Zvolský
It is hard to implement following internal behaviour of the control. But I have used it earlier in other language, and it was nice behaviour when there were many records in the related table. Here we need to use JavaScript/Ajax to implement this. And maybe an index on that field? Once user

[web2py] Re: execfile

2011-02-02 Thread Anthony
Keep in mind that web2py has been around and tested in the real world by many users for over three years -- it seems to be working just fine. Anthony On Wednesday, February 2, 2011 2:07:46 AM UTC-5, desfrenes wrote: hey ! How about that ? http://lucumr.pocoo.org/2011/2/1/exec-in-python/

[web2py] Roadmap

2011-02-02 Thread contatogilson...@gmail.com
Hello Massimo, I took a look at the roadmap, the repository and found it has web2py some goals, and these, features for the framework. Voces want to implement something from him? _ *Gilson Filho* *Web Developer http://gilsondev.com*

Re: [web2py] Re: Testing the new router

2011-02-02 Thread Tom Atkins
Initially I tried the short version. Just tried the long version and it works too - impressively no typos in your untested code! Both also work nicely for http and https. What are the pros and cons of the short v long version? On 2 February 2011 17:26, Jonathan Lundell jlund...@pobox.com

Re: [web2py] Re: Testing the new router

2011-02-02 Thread Jonathan Lundell
On Feb 2, 2011, at 10:18 AM, Tom Atkins wrote: Initially I tried the short version. Just tried the long version and it works too - impressively no typos in your untested code! Both also work nicely for http and https. What are the pros and cons of the short v long version? The long

[web2py] [OT] Stylus - a symplified syntax for CSS

2011-02-02 Thread mikech
It begins to look more and more like Python: http://learnboost.github.com/stylus/

[web2py] Re: can web2py support RESTful api calls? if so any pointers on how to build one?I

2011-02-02 Thread Fran
Here is an example of a RESTful API built on Web2Py: http://eden.sahanafoundation.org/wiki/S3XRC/RESTfulAPI F

[web2py] Multiple Selection and Send Email

2011-02-02 Thread Ialejandro
Hi every one! Again me, this time I have a little issue with this: I have the model: db.define_table('location', Field('name','string')) db.define_table('room', Field('name','string'), Field('isbooked','boolean'), Field('location_id', db.location))

Re: [web2py] Re: Testing the new router

2011-02-02 Thread Tom Atkins
On 2 February 2011 18:27, Jonathan Lundell jlund...@pobox.com wrote: The long version seems useful if you had more than one or two domains that you needed to redirect Of course - realised that just after I posted the question! , and it retains the incoming http vs https scheme. Yes - what

Re: [web2py] Multiple Selection and Send Email

2011-02-02 Thread Kenneth Lundström
def create(): form = crud.create(db.booking, next = URL('index')) return dict(form=form) So I was wondering to use a validator like this: db.booking.room_id.requires = IS_IN_DB(db, db.room.id, '% (name)s',multiple=True) But It doesn't work. In what way doesn´t it work? You have to put

[web2py] Re: Support for Drizzle in web2py

2011-02-02 Thread Massimo Di Pierro
According to the list of differences in the docs, web2py should work with it. On Feb 1, 11:57 pm, Rahul rahul.dhak...@gmail.com wrote: Hi All,        http://drizzle.org/Home.html        Not really sure if web2py should support Drizzle (opensource MYSQL forked Database). Will pymysql work with

[web2py] Re: web2py exec in the new again

2011-02-02 Thread Massimo Di Pierro
On Feb 2, 1:26 am, cjrh caleb.hatti...@gmail.com wrote: Now now we know the cause, why doesn't it happen if you have a module? The reason for that is that Python will do a trick when it shuts down modules. It will override all global values that do not begin with an underscore with None Can

[web2py] rename / route app admin

2011-02-02 Thread LightOfMooN
Is there a way to change name of app admin? from https://mydomain.com/admin to something like https://mydomain.com/mysecretadmin I tired this: routes_in = ( ('(?Pany.*)/admin(?Pany2.*)', '\gany/myapp/default/index'), ('(?Pany.*)/mysecretadmin(?Pany2.*)', '\gany/admin\gany2'), ) routes_out =

[web2py] Re: execfile

2011-02-02 Thread Massimo Di Pierro
Thank you. This is usually my response when people bring up that post: http://www.reddit.com/r/Python/comments/f8so6/best_framework_for_gae/c1e8ar5 Massimo On Feb 2, 3:28 am, desfrenes desfre...@gmail.com wrote: Yes, I read it. Anyway, thank you Massimo for keeping python web development

[web2py] Re: Roadmap

2011-02-02 Thread Massimo Di Pierro
which roadmap? On Feb 2, 12:14 pm, contatogilson...@gmail.com contatogilson...@gmail.com wrote: Hello Massimo, I took a look at the roadmap, the repository and found it has web2py some goals, and these, features for the framework. Voces want to implement something from him?

[web2py] Error acessing Database Administration

2011-02-02 Thread Mrekko
Hi guys, Im new in Python language and web2py framework and im recently trying to build an aplicattion in web2py. I´ve created a database but i can´t acess the database administration panel, it gives me the following error: type 'exceptions.KeyError'('Incentivo') Incentivo is a table Please

Re: [web2py] Re: Roadmap

2011-02-02 Thread contatogilson...@gmail.com
http://code.google.com/p/web2py/wiki/Roadmap _ *Gilson Filho* *Web Developer http://gilsondev.com* 2011/2/2 Massimo Di Pierro massimo.dipie...@gmail.com which roadmap? On Feb 2, 12:14 pm, contatogilson...@gmail.com contatogilson...@gmail.com

[web2py] Re: rename / route app admin

2011-02-02 Thread Massimo Di Pierro
Just rename its folder. Counter indication: the redirection for appadmin login will break. On Feb 2, 2:24 pm, LightOfMooN vladsale...@yandex.ru wrote: Is there a way to change name of app admin? fromhttps://mydomain.com/admin to something likehttps://mydomain.com/mysecretadmin I tired

[web2py] Re: Error acessing Database Administration

2011-02-02 Thread Massimo Di Pierro
Can you show the complete traceback? You have some errors here (and following lines) which may be causing it db.Consultorio.id_Utilizador.requires=IS_IN_DB(db, 'Utilizador.id','Utilizador.nome','Utilizador.password','Utilizador.email') You are passing wrong types for the 4th and 5th arguments.

[web2py] Re: Mixing/supporting CMS with Web2py

2011-02-02 Thread Carl
Thanks for the suggestion. I was investigating a less compatible approach than a python CMS. Perhaps a Wordpress website with PHP plug-ins to access a Web2py service APIs. See: http://codex.wordpress.org/Writing_a_Plugin Has anyone taken this approach? On Feb 2, 4:09 pm,

Re: [web2py] Re: Mixing/supporting CMS with Web2py

2011-02-02 Thread Vinicius Assef
If you want to use web2py services via http (i.e, rest), technology doesn't matter. It's trully possible. On Wed, Feb 2, 2011 at 6:33 PM, Carl m...@carlroach.com wrote: Thanks for the suggestion. I was investigating a less compatible approach than a python CMS. Perhaps a Wordpress website

[web2py] Re: Roadmap

2011-02-02 Thread Massimo Di Pierro
I changed id. Everything in there was done long ago. On Feb 2, 2:27 pm, contatogilson...@gmail.com contatogilson...@gmail.com wrote: http://code.google.com/p/web2py/wiki/Roadmap _ *Gilson Filho* *Web Developerhttp://gilsondev.com* 2011/2/2 Massimo

[web2py] web2py promoted at Google App Engine Montreal Hackathon Sat Jan 22

2011-02-02 Thread dlypka
FYI: I participated in the Montreal Hackathon for App Engine in Montreal on Jan 22 where I coded and presented a portion of my web2py app to the group. I was demonstrating high performance data retrieval from the datastore into a treeview. I spoke to Sean Lynch, Product Manager of Google App

[web2py] Help review the DotCloud web2py deployment tutorial

2011-02-02 Thread Anthony
The DotCloud deployment tutorial for web2py ( http://docs.dotcloud.com/static/tutorials/web2py/) includes the following warning. Is this accurate? If so, can we offer a simple fix? When deploying third-party web2py appliances, you should switch from the default Sqlite backend to PostgreSQL or

[web2py] Re: web2py promoted at Google App Engine Montreal Hackathon Sat Jan 22

2011-02-02 Thread Anthony
Cool. I recently mentioned on the developers list that hosting providers often fail to include web2py in their list of Python frameworks ( https://groups.google.com/d/topic/web2py-developers/_Mxb61ip7uQ/discussion). It would be great if we could get GAE to explicitly mention web2py as a

[web2py] Re: web2py promoted at Google App Engine Montreal Hackathon Sat Jan 22

2011-02-02 Thread Massimo Di Pierro
Congratulations. There is other cool stuff coming out on GAE soon. I have been given early access to some of the new SDK since December, but I am under and NDA with Google so I will not say too much. I will say, however, there will soon be more good reasons to have an app developed with web2py.

[web2py] Re: Help review the DotCloud web2py deployment tutorial

2011-02-02 Thread Massimo Di Pierro
The warning is accurate. Disabling session.secure() is not a good idea. Admin and appadmin should not be used without SSL or your admin cookies can be stolen and used to gain remote access to your web application. Massimo On Feb 2, 3:17 pm, Anthony abasta...@gmail.com wrote: The DotCloud

[web2py] Re: web2py exec in the new again

2011-02-02 Thread Anthony
Anyone? Is using local_import to import a class into a model/controller just as safe as using 'from a import A' (i.e., in terms of memory leaks), or do you have to use the Python import statement directly? On Tuesday, February 1, 2011 5:25:51 PM UTC-5, Anthony wrote: But what if

[web2py] Re: adding tables instead of merging?

2011-02-02 Thread howesc
i don't know sqlite. never really used it so i can't say much about that. can you take your file paths and use that to prefix the table names? there is nothing stopping you from creating the table name dynamically and accessing using db['table name string'].

Re: [web2py] Re: web2py exec in the new again

2011-02-02 Thread Jonathan Lundell
On Feb 2, 2011, at 2:08 PM, Anthony wrote: Anyone? Is using local_import to import a class into a model/controller just as safe as using 'from a import A' (i.e., in terms of memory leaks), or do you have to use the Python import statement directly? It should be equivalent; both end up

Re: [web2py] Re: migration from 1.88.2 to 1.91.6 problem

2011-02-02 Thread Richard Vézina
Still waiting for a solution!! Richard On Wed, Feb 2, 2011 at 12:04 PM, Richard Vézina ml.richard.vez...@gmail.com wrote: Can I just remove the added line in sqlhtml.py in the web2py 1.91.6? Is it safe to do so? I have crud.update form where I have some field that are boolean type that

[web2py] Re: migration from 1.88.2 to 1.91.6 problem

2011-02-02 Thread Massimo Di Pierro
This has already been fixed some some time ago in trunk. It is now: if self.table[fieldname].type == 'boolean' and \ self.vars.get(fieldname,True) == None: del self.vars[fieldname] continue On Feb 2, 4:36 pm, Richard Vézina

[web2py] Re: Keys and GAE

2011-02-02 Thread howesc
Matt, sorry for the delay. Since i don't have use for the key queries yet i'm gonna ask you to try something, and then we can ask massimo to include it * grab the latest web2py source from trunk, i have mercurial commit #1572 * in gluon/dal,py find line 2697. it should look like:

[web2py] Some troubles with trailing slash

2011-02-02 Thread walter
When I do next in the action: def check(): if request.args(1) == None: table = request.args(0) return dict(table=table) And my url has a trailing slash after a function argument (i.e. applictation/controller/function/argument/) I catch an internal error everytime. I confused.

Re: [web2py] Some troubles with trailing slash

2011-02-02 Thread Jonathan Lundell
On Feb 2, 2011, at 3:44 PM, walter wrote: When I do next in the action: def check(): if request.args(1) == None: table = request.args(0) return dict(table=table) And my url has a trailing slash after a function argument (i.e. applictation/controller/function/argument/) I

Re: [web2py] Some troubles with trailing slash

2011-02-02 Thread Jonathan Lundell
On Feb 2, 2011, at 4:00 PM, Jonathan Lundell wrote: On Feb 2, 2011, at 3:44 PM, walter wrote: When I do next in the action: def check(): if request.args(1) == None: table = request.args(0) return dict(table=table) And my url has a trailing slash after a function argument

[web2py] Re: Some troubles with trailing slash

2011-02-02 Thread walter
Many thanks. I've understood where is my error.

Re: [web2py] Re: migration from 1.88.2 to 1.91.6 problem

2011-02-02 Thread Richard Vézina
I try and I get back with feedback... Thanks Massimo Richard On Wed, Feb 2, 2011 at 6:17 PM, Massimo Di Pierro massimo.dipie...@gmail.com wrote: This has already been fixed some some time ago in trunk. It is now: if self.table[fieldname].type == 'boolean' and \

Re: [web2py] Re: Some troubles with trailing slash

2011-02-02 Thread Jonathan Lundell
On Feb 2, 2011, at 4:13 PM, walter wrote: Many thanks. I've understood where is my error. It's sort of a bug, too; the empty arg isn't intentional, and it'll go away in the next release.

[web2py] JQuery harmonica menu, but what's the use in web2py, I'm totally confused

2011-02-02 Thread Stef Mientki
hello, at the moment I'm totally confused about what should be where I made a page with 2 columns, on the left a vertical menu and on the center and right the contents to show. The contents to be shown are paragraphs of a book. The left menu shows the chapters of the book, and the

[web2py] Re: upload an excel sheet to be added to the system

2011-02-02 Thread Neveen Adel
Thanks a lot Bruno Rocha for ur reply :) But these packages are used after uploading the file. I want to know the step before that, what i want to do simply is to have a browse button to choose CSV file and then press upload then i can by using one of the packages u suggested to read the CSV

[web2py] Re: Detecting test vs. production environments

2011-02-02 Thread Dane
Where does REMOTE_HOST live? On Feb 2, 10:46 am, Vinicius Assef vinicius...@gmail.com wrote: Try to check the REMOTE_HOST. If it is localhost, it is local. On Wed, Feb 2, 2011 at 6:09 AM, Dane dane.schnei...@gmail.com wrote: I'm doing something similar for configuration, but I'd

Re: [web2py] Re: Detecting test vs. production environments

2011-02-02 Thread Jonathan Lundell
On Feb 2, 2011, at 5:29 PM, Dane wrote: Where does REMOTE_HOST live? Try request.env.remote_host Keep in mind that remote_host is the host of the browser, not web2py. request.env.http_host is the host that the request is directed to. On Feb 2, 10:46 am, Vinicius Assef

[web2py] Re: background task error

2011-02-02 Thread pbreit
I commented out: #import gluon.import_all But now I get: localhost:Resources pbreit$ python web2py.py -S myapp -M -N -R applications/myapp/private/expire_items.py Traceback (most recent call last): File web2py.py, line 4, in module from gluon.widget import start ImportError: No module

[web2py] Re: form / subform / adding row (field)...

2011-02-02 Thread skwasha
I'm curious if you ever got this all figured out? I wanna do something similar (essentially allow people to build up lists of things with arbitrary list length.) If you had something complete I'd love to see it if possible. Very new to web2py myself. On Jan 24, 11:27 am, Richard Vézina

[web2py] First web2py app - some advice needed

2011-02-02 Thread skwasha
Making my first foray into web2py and wanted to run a few things by the list. Let's say I want to have a list of Libraries, each of which contains a Collection of Books. Here's what I've got so far: db.define_table('library', Field('id','id', represent=lambda id:SPAN(id,'

[web2py] Re: form / subform / adding row (field)...

2011-02-02 Thread skwasha
I'm curious if you ever got this all figured out? I wanna do something similar (allow users to create lists of things of arbitrary list length.) I'm new to web2py myself, so if you had something working you'd be willing to share it'd be of great interest/help. thanx On Jan 24, 11:27 am, Richard

[web2py] IS_MATCH() changing a valid value ?

2011-02-02 Thread Ken
I have been having trouble with truncation of data from one field of a form. The culprit turned out to be the IS_MATCH() validator, which was truncating a valid value to return a shorter valid value. I'm not sure whether to call this a bug or just unexpected behavior, but if I had trouble with it,

[web2py] Re: background task error

2011-02-02 Thread Massimo Di Pierro
Can you please try the OSX binary nightly build from the web2py download page? On Feb 2, 7:56 pm, pbreit pbreitenb...@gmail.com wrote: I commented out: #import gluon.import_all But now I get: localhost:Resources pbreit$ python web2py.py -S myapp -M -N -R

[web2py] Re: form / subform / adding row (field)...

2011-02-02 Thread Massimo Di Pierro
I am not sure what the Django doce does. Did you look into Field('items','list:string')? Is that any close? On Feb 2, 5:40 pm, skwasha sas...@umich.edu wrote: I'm curious if you ever got this all figured out? I wanna do something similar (essentially allow people to build up lists of things

[web2py] Re: IS_MATCH() changing a valid value ?

2011-02-02 Thread Massimo Di Pierro
This is the correct behavio of regular expressions. Anyway, good that you are pointing this out since others may find it counter intuitive. Massimo On Feb 2, 6:33 pm, Ken kenma...@mac.com wrote: I have been having trouble with truncation of data from one field of a form. The culprit turned out

[web2py] Re: background task error

2011-02-02 Thread pbreit
Same error: localhost:Resources pbreit$ python web2py.py Traceback (most recent call last): File web2py.py, line 16, in module import gluon.widget ImportError: No module named gluon.widget Could there be a path issue? I do have another python installation on my Mac.

Re: [web2py] IS_MATCH() changing a valid value ?

2011-02-02 Thread Jonathan Lundell
On Feb 2, 2011, at 4:33 PM, Ken wrote: I have been having trouble with truncation of data from one field of a form. The culprit turned out to be the IS_MATCH() validator, which was truncating a valid value to return a shorter valid value. I'm not sure whether to call this a bug or just

[web2py] Re: upload an excel sheet to be added to the system

2011-02-02 Thread Brian M
Neveen, I've got a mini app that I upload excel files to for later parsing, here's now I do it. Getting the file would probably be even easier if you used an upload field in the DB CRUD forms. def excel_uploader(): response.subtitle = Upload excel file from gluon.sqlhtml import

[web2py] Re: Support for Drizzle in web2py

2011-02-02 Thread KMax
http://wiki.drizzle.org/FAQ Can I run a website with this? No. We are still making incompatible changes, and certainly do not believe the code is production quality. Right now we are defaulting many configure operations to generate debugging code for us so our binaries are not optimal. Therefore,

[web2py] Re: Mixing/supporting CMS with Web2py

2011-02-02 Thread KMax
Once I have idea for seamless moving from joomla for web2py. Stoped on attaching to joomla users table and joomla coocke of loggined in. Maing goal was to use links in joomla site to web2py functions which should use user auth from joomla. And with several steps move completely to web2py or share

Re: [web2py] Re: form / subform / adding row (field)...

2011-02-02 Thread Richard Vézina
The app I had attached in the preceding email works, but it broke the workflow. I can't get the added inputs values in form.vars, so I take them from request.vars or somewhere else don't remember... There is also an other problem with this hack... It not uses de validators for all the inputs...

Re: [web2py] Re: form / subform / adding row (field)...

2011-02-02 Thread Richard Vézina
Ref about my search on this topic : RANDOM : NO ORDER Here the funding thread of WTForms FormBase : http://groups.google.com/group/wtforms/browse_frm/thread/c8b5f5d98c41a6d2/6e69c5c4e820fd7b?lnk=gstq=subform#6e69c5c4e820fd7b

[web2py] Re: Support for Drizzle in web2py

2011-02-02 Thread Massimo Di Pierro
yet all of the changes listed are in APIs that are not used by web2py in MySQL. On Feb 2, 9:18 pm, KMax mkostri...@gmail.com wrote: http://wiki.drizzle.org/FAQ Can I run a website with this? No. We are still making incompatible changes, and certainly do not believe the code is production

[web2py] pending issues?

2011-02-02 Thread Massimo Di Pierro
Is there any pending issues I have forgotten about? Please verify the problem persist in trunk or check the nightly built (on the web2py download page) and either post a link to the issue in this thread to remind me or open an issue on googlecode (better). I would like to try close as many

[web2py] Re: pending issues?

2011-02-02 Thread Massimo Di Pierro
clarification by issue I do not mean any question (how do I do this?) but a possible bug issue. On Feb 2, 10:31 pm, Massimo Di Pierro massimo.dipie...@gmail.com wrote: Is there any pending issues I have forgotten about? Please verify the problem persist in trunk or check the nightly built

  1   2   >