Re: [web2py] Re: MongoDB and Web2Py

2011-04-01 Thread Tom Atkins
+1 On 1 April 2011 06:35, David Marko wrote: > I'm also interested in testing ... > > David Marko >

[web2py] Re: GSOC 2011 - BioChemical Reaction Network Visualization - web2py

2011-04-01 Thread selecta
> can you summarize for us, what is done, what needs to be done. so far we have experiences visualizing biochemical networks with tools like Cytoscape, Graphviz, ... we even wrote our own web2py plugin to create force directed graphs http://groups.google.com/group/web2py/browse_thread/thread/d9c5

Re: [web2py] Re: clean database

2011-04-01 Thread Martín Mulone
Jonathan was talking about how the w2p is generated. It's only a compressed file: tar.gz. Always you can digg in the code http://code.google.com/p/web2py/source/browse/gluon/fileutils.py#183 and http://code.google.com/p/web2py/source/browse/gluon/fileutils.py#218 make your own that only include the

Re: [web2py] recaptcha or requires login for comments

2011-04-01 Thread Vasile Ermicioi
also I need to localize reCaptcha, any easy way in web2py?

[web2py] Re: datetime, DAL and JSON serialization

2011-04-01 Thread Omri Har-Shemesh
Sorry for the long reply time (I am working at two jobs and didn't have time to get to it yet). I can supply the following simple example: the data model is: db.define_table("timestamps", Field("by", db.auth_user), Field("at", "datetime", default=request.now)) and the controller function is:

[web2py] Garbaginator

2011-04-01 Thread cjrh
f.y.i. A Django blog mentions a garbage collection problem in most python frameworks, and web2py is also mentioned: http://pydanny.blogspot.com/2011/03/announcing-garbaginator.html

[web2py] Re: Garbaginator

2011-04-01 Thread Massimo Di Pierro
It is one of the April's fools jokes There is more than one fake news here: http://www.reddit.com/r/Python/ On Apr 1, 7:08 am, cjrh wrote: > f.y.i. A Django blog mentions a garbage collection problem in most > python frameworks, and web2py is also mentioned: > > http://pydanny.blogspot.com/201

[web2py] Uploaded file content issue.

2011-04-01 Thread Limesle
Hello, as you know, Web2py transform the content and the name of a file when uploaded. I tried several time to expose the real content of the file But I always have "Fieldstorage" and other information at the begining. I can't get rid of this. The file content are like: FieldStorage('file_path'

[web2py] Re: MongoDB and Web2Py

2011-04-01 Thread Moritz Pein
I'd also like to help with web2py+mongodb.

[web2py] Re: Garbaginator

2011-04-01 Thread cjrh
On Apr 1, 2:29 pm, Massimo Di Pierro wrote: > It is one of the April's fools jokes > There is more than one fake news here:http://www.reddit.com/r/Python/ Ha Ha. I suspected something was up when I had a quick look at the source repo after I posted the link here. I think I need a holiday :)

[web2py] Re: issues with session.auth.last_visit for login expiration?

2011-04-01 Thread Carlos
Hi, can anyone please confirm or correct the behavior I'm describing above?. Thanks, Carlos

[web2py] [FUN] Python at your feet

2011-04-01 Thread Michele Comitini
The road to web2py is a too steep climb? put Python at your feet! http://www.lasportiva.com/magazine/?p=1176&lang=en (disclaimer: i am not affiliated in any way to the above brand)

[web2py] Oracle Offers to Buy Web2py! ! !

2011-04-01 Thread NetAdmin
In an unusual move, Oracle offers to buy Web2py. Ha Ha! April Fool Mr.Netadmin

Re: [web2py] Re: Garbaginator

2011-04-01 Thread Bruno Rocha
Web.2.py Garbaginator Bridgerator ('cause people always get Web2Py and web.py confused with each other so we bridged them together) http://garbaginator.cartwheelweb.com/ DJ2PY Allied Forces is the best joke of the day! -- Bruno Rocha [ About me: http://zerp.ly/rochacbruno ] On Fri, Apr 1,

[web2py] Re: Garbaginator

2011-04-01 Thread Anthony
On Friday, April 1, 2011 8:29:47 AM UTC-4, Massimo Di Pierro wrote: > > It is one of the April's fools jokes > There is more than one fake news here: > http://www.reddit.com/r/Python/ Yeah, now even Flask is going "Enterprise". :) http://www.reddit.com/r/Python/comments/gfxzf/we_just_releas

Re: [web2py] Oracle Offers to Buy Web2py! ! !

2011-04-01 Thread Jonathan Lundell
...on condition that it be rewritten in Java.

Re: [web2py] Oracle Offers to Buy Web2py! ! !

2011-04-01 Thread Vasile Ermicioi
web2py is just a scripting framework on top of jython which runs on jvm, so they can buy it :)

[web2py] LinkedIn Python group talks web frameworks

2011-04-01 Thread Terrence Brannon
The Python Community group has a discussion on replacing ASP pages with python frameworks. http://www.linkedin.com/groups?home=&gid=25827 I think this is a good place for regular updates on web2py (such as the video webcasts) to be announced.

[web2py] Bug in Dal: import for csv

2011-04-01 Thread Jlew
When importing the database from csv, it appears that it does not update the reference id's in list:reference. It looks like to me that only references are mapped to their new values and list:reference is just grabbed as a string. In dal.py, within import_from_csv, the fix function seems to just

[web2py] Re: odata

2011-04-01 Thread Marcel Luethi
Just skimmed over it. Looks very powerful and promising. If it's easy to implement with parse_as_rest it would be a great feature for web2py! There are still not many "consumers" (http://www.odata.org/consumers), but nevertheless it'd be worth IMHO. (Unfortunately no Python client library seems to

[web2py] Re: MongoDB and Web2Py

2011-04-01 Thread Marcel Luethi
Despite a lot of time, I'd like to help as well. MongoDB looks promising. On 1 Apr., 04:58, Massimo Di Pierro wrote: > Lots of people asked for support but nobody volunteered to help test > it. > If you are interested and can help with some regular tests we can make > it work in relatively sho

Re: [web2py] Re: MongoDB and Web2Py

2011-04-01 Thread David J.
While DAL might not support MongDB; you can still use it via mongoengine; On 4/1/11 10:41 AM, Marcel Luethi wrote: Despite a lot of time, I'd like to help as well. MongoDB looks promising. On 1 Apr., 04:58, Massimo Di Pierro wrote: Lots of people asked for support but nobody volunteered

[web2py] Re: Question for mac users....

2011-04-01 Thread Ross Peoples
The extra shared memory allows PostgreSQL to cache more and perform better. It's mostly for production servers. It shouldn't have any adverse effects on the Mac. If it's the same setting I'm thinking of, then all it does is increase the amount of shared ram a single application can use. If it do

[web2py] DAL: all database connections should be made by using the credentials of the authenticated user?!?!

2011-04-01 Thread teemu
I have been experimenting with web2py for a while. I have used only sqlite so far. However, in the future I would like to create new a web interface upon our existing mysql database. Currently we are using MS Access based user interfaces. MS Access connects to mysql by using ODBC driver and each us

[web2py] Re: CVStash finally launched! Thanks for all the help :-)

2011-04-01 Thread CVstash dot com
Thanks for props guys ;-) @Martin: I was actually looking on enhancing the entry description field, in which I stumbled upon markitup, which should be supporting markmin. I just made the enhancement a while ago. Regards, Arbie On Apr 1, 3:37 am, Martín Mulone wrote: > I like it, perhaps you can

[web2py] Re: Garbaginator

2011-04-01 Thread ron_m
Hmm didn't know Rails was a Python web framework, according to Garbaginator it is. :-) Check out gmail motion on Google home page

[web2py] little question about "pack all"

2011-04-01 Thread LightOfMooN
I created some app. Then packed it with "pack all" to install on VPS for deploy. When I install it, I have seen, that it didn't make postgres database structure, because of files in myapplication/database. Also all upload folder was packed. So, the question is: for what purpose "pack all" pack in

[web2py] web2py joins Pylons project

2011-04-01 Thread Bruno Rocha
http://web2pyramid.pylonsproject.org/ -- Bruno Rocha [ About me: http://zerp.ly/rochacbruno ]

[web2py] auth.add_group

2011-04-01 Thread Mike
DISCLAIMER: very new to web2py, read book and building first app... I'm having some brain cramps trying to add some default groups. Basically I need some default groups set-up when I rollout my application, like Admins, End-Users, Management - when users register one of us will manually filter the

[web2py] Re: web2py joins Pylons project

2011-04-01 Thread CVstash dot com
Happy April 1 to you too. On Apr 2, 1:50 am, Bruno Rocha wrote: > http://web2pyramid.pylonsproject.org/ > > -- > Bruno Rocha > [ About me:http://zerp.ly/rochacbruno]

Re: [web2py] Re: web2py joins Pylons project

2011-04-01 Thread contatogilson...@gmail.com
hahaha _ *Gilson Filho* *Web Developer http://gilsondev.com* 2011/4/1 CVstash dot com > Happy April 1 to you too. > > On Apr 2, 1:50 am, Bruno Rocha wrote: > > http://web2pyramid.pylonsproject.org/ > > > > -- > > Bruno Rocha > > [ About me:http://ze

[web2py] Re: Garbaginator

2011-04-01 Thread Massimo Di Pierro
I love this one: http://www.reddit.com/r/Python/comments/ggh70/the_pylons_project_announces_web2pyramid/ Massimo On Apr 1, 11:45 am, ron_m wrote: > Hmm didn't know Rails was a Python web framework, according to Garbaginator > it is. :-) > Check out gmail motion on Google home page

[web2py] what drawback is there to web2py executing python files via execute?

2011-04-01 Thread Terrence Brannon
Here is the comment - http://linkd.in/gNkdsa """ I read the web2py manual, and most what I saw in it is in the way thing should not be done. Without going into details, just the strategy of executing python files that are not modules with execute() make the framework a no-go. """

[web2py] Re: auth.add_group

2011-04-01 Thread Anthony
Yes, your model files will be executed upon every request, so you don't want to add the default groups there. The easiest method might be to add groups into the auth_groups table via appadmin (see http://web2py.com/book/default/chapter/03#More-on-appadmin). You can get to appadmin for your appl

[web2py] Re: Garbaginator

2011-04-01 Thread Anthony
On Friday, April 1, 2011 2:21:50 PM UTC-4, Massimo Di Pierro wrote: > > I love this one: > > > http://www.reddit.com/r/Python/comments/ggh70/the_pylons_project_announces_web2pyramid/ That's pretty funny coming from a framework that had to take nearly 12,000 words to defend its own design deci

[web2py] eliminate 'column-header' titles from query response?

2011-04-01 Thread james c.
This is probably simple but I can't find in the documentation or recognize anything posted on this. I have a primary database including fields which entries must be members of other databases - this is enforced through the primary database definition and select lists entry for the enforced membersh

[web2py] Re: auth.add_group

2011-04-01 Thread Mike
Nevermind. I thought there was a builtin web2py way for this but I just did this instead (after sifting more through the groups): def groupadd(check_group): if not db(db.auth_group.role==check_group).count(): db.auth_group.insert(role=check_group) groupadd('Admins') groupadd('Maintenance

[web2py] Re: eliminate 'column-header' titles from query response?

2011-04-01 Thread DenesL
On Apr 1, 3:24 pm, "james c." wrote: > This is probably simple but I can't find in the documentation or > recognize anything posted on this. I have a primary database including > fields which entries must be members of other databases - this is > enforced through the primary database definition

[web2py] april fools

2011-04-01 Thread elffikk
from my country http://www.tigan.md/card1.aspx?id=7417ac7c-3188-4652-b9b2-362875219e70 from google http://www.google.com/mail/help/motion.html#utm_source=en-et-na-us&utm_medium=new-features-link&utm_campaign=en

[web2py] Re: what drawback is there to web2py executing python files via execute?

2011-04-01 Thread pbreit
Massimo has addressed this previously so it might be best to search the postings. Python programmers should definitely be careful about the use of exec but Massimo has made a very conscientious decision to use it. There are tradeoffs and many feel that the design decisions Web2py has made are b

Re: [web2py] Re: web2py joins Pylons project

2011-04-01 Thread pbreit
Pylons can only wish it has those features!

[web2py] app structural question

2011-04-01 Thread Mike
Hello, Im designing an application for license management of some software that my company produces. The intended workflow is as follows: 1) End-user of product registers on app, approval pending for review 2) When a user in the 'Admin' group logins they have access to a approval section where the

[web2py] Re: app structural question

2011-04-01 Thread JorgeRpo
And your question is?

[web2py] Re: GAE 1.4.3 has support for mysql and sqlite?

2011-04-01 Thread howesc
haven't seen any news either. it's probably an indication that they are at least testing it. cfh

[web2py] Re: DAL: all database connections should be made by using the credentials of the authenticated user?!?!

2011-04-01 Thread howesc
Teemu, i have never tried it but i have an idea, but first a question: can you use web2py's built in history tracking with the authentication to preserve the information you need. i assume you are looking for an audit trail of who did what. i'm assuming you have already considered this so, th

[web2py] Re: Question for mac users....

2011-04-01 Thread mart
Thanks for that! I guess its that easy way out I was looking for (removing that sysctl.conf file) thanks for the handy info! Mart :) On Apr 1, 11:29 am, Ross Peoples wrote: > The extra shared memory allows PostgreSQL to cache more and perform better. > It's mostly for production servers. It sho

[web2py] Re: app structural question

2011-04-01 Thread mart
I think, he may be inquiring about workflow capabilities? If so, I don;t think web2py has workflow built in (I could be wrong), but can be concocted in a few different ways (depends on effort, time & interest ;) ). If I remember, Massimo's conferencing app had some workflow features (something like

[web2py] Re: auth.add_group

2011-04-01 Thread Joe Barnhart
That's pretty close to what I did. Since my groups are created once and never changed I did one check to see if there are ANY groups created. If not, I create the ones I care about: if not db(db.auth_group).count(): db.auth_group.insert(role='root',description='Exactly what you think it does

[web2py] Re: little question about "pack all"

2011-04-01 Thread Joe Barnhart
It does not copy the DATA from your database. But the STRUCTURE is defined by the Python files in the "models" area. Your new application should create a new instance of the database with all tables initially empty. If you want to copy your table data, you can export the database to a CSV file a

[web2py] Re: app structural question

2011-04-01 Thread pbreit
Correct, there's not built-in workflow. But there is built-in authentication and roles. If you keep it simple, shouldn't be too bad.

[web2py] Bug in populate?

2011-04-01 Thread nick name
I think there's a bug in the populate.py code: when a string field has an IS_IN_SET(['a','b','c','d']) validator, populate will also add a fifth option '' (zero length string). This follows from it reading the field.options set (which includes the zero length string *unless* you set zero=None i

[web2py] Re: eliminate 'column-header' titles from query response?

2011-04-01 Thread james c.
Thanks Denes, Thank you Denes for your recommendations. I've seen documentation leading me to believe that most of this here should work. But it doesn't. 'Which reminds me that I have Python 2.6x installed and when I downloaded my current version, Version 1.91.6 (2011-01-03 17:55:14), there was

[web2py] Re: auth.add_group

2011-04-01 Thread Anthony
On Friday, April 1, 2011 2:22:55 PM UTC-4, Mike wrote: > > Nevermind. I thought there was a builtin web2py way for this but I > just did this instead (after sifting more through the groups): > > def groupadd(check_group): > if not db(db.auth_group.role==check_group).count(): > db.auth

[web2py] psycopg2 on macos

2011-04-01 Thread mart
so, I installed the the pre-built bins for macos from http://www.postgresql.org/download/ and when trying to connect to a remote DB, i get the 'psycopg2 is not defined' exception. A few days ago, Massimo pointed me to what seems like the obvious solution now (for windows) ;) "install psycopg2". Th

[web2py] rendering database contents in layout

2011-04-01 Thread kawate
hello everybody, i like to display database records in sidebar of every page. i define the function that fetch the records and return as dictionary. then i put the function in default.py and return the result of the function every view function, it works fine. such as, def some_function():

[web2py] Re: rendering database contents in layout

2011-04-01 Thread Anthony
You could define some_function in a model file (functions defined in model files are available in views, though functions defined in controllers are not), and then you could call it directly in your layout.html view (or you could call it within a separate sidebar view file, and then include that

[web2py] Re: eliminate 'column-header' titles from query response?

2011-04-01 Thread Anthony
Are you saying that db(db.customer_names.id==names.index).select('name').first().name does not return just the name? Can you show your model code? Also, if you use as_list, you get a list of dictionaries (one dictionary per Row in the Rows object). If there is only one Row, then there is only

[web2py] Re: rendering database contents in layout

2011-04-01 Thread pbreit
LOAD sounds like the perfect approach.

[web2py] Re: rendering database contents in layout

2011-04-01 Thread kawate
Thank you Anthony That is beautful!! On 4月2日, 午後12:57, Anthony wrote: > You could define some_function in a model file (functions defined in model > files are available in views, though functions defined in controllers are > not), and then you could call it directly in your layout.html view (or

[web2py] Re: web2py fabric, pip, virtualenv, virtualenvwrappers deployment scripts

2011-04-01 Thread Christopher Steel
Some other folks mentioned issues with installing PIL on OS X and I previously mentioned some binaries (they work, but you are "stuck" with Python 2.5). You can compile your own Python if you have XCode installed and then you should have no issues installing PIL to your virtualenvs or your system

[web2py] mongoengine.org: can this work with web2py?

2011-04-01 Thread Pystar
I would like to know if anybody has used mongoengine, it looks like an interesting project.

[web2py] Re: what drawback is there to web2py executing python files via execute?

2011-04-01 Thread cjrh
On Apr 1, 8:21 pm, Terrence Brannon wrote: > Here is the comment -http://linkd.in/gNkdsa > > """ > I read the web2py manual, and most what I saw in it is in the way thing > should not be done. Without going into details, just the strategy of > executing python files that are not modules with execu

[web2py] Re: what drawback is there to web2py executing python files via execute?

2011-04-01 Thread cjrh
On Apr 1, 10:29 pm, pbreit wrote: > Python programmers should definitely be careful about the use of > exec but Massimo has made a very conscientious decision to use it. I think the primary concern with the use of exec() is the danger of arbitrary code execution, because that immediately raises s

[web2py] Re: DAL: all database connections should be made by using the credentials of the authenticated user?!?!

2011-04-01 Thread teemu
Thank you christian! I will try your suggestion. It seems that web2py allows as many connections to different databases as developer needs! Maybe it is good idea to define two database connections like you suggested: one for anonymous/unauthenticated users (db) and another for authenticated users

[web2py] Re: what drawback is there to web2py executing python files via execute?

2011-04-01 Thread Massimo Di Pierro
That is the point where things are mis-interpreted. We do not exec-ute code built from arbitrary user input at all. The fact that we validate all input escape(sanitize) all output is not even relevant here. We ONLY exec-ute programs created by the administrator (whether via shell of administrative

[web2py] Re: little question about "pack all"

2011-04-01 Thread LightOfMooN
Ofcourse, it copy models files. But also! it copy databases folder with *.table files + sql.log. So if I try to install from this w2p packet to another vps, I can't create database structure because of *.table files. On 2 апр, 06:41, Joe Barnhart wrote: > It does not copy the DATA from your data