[web2py:30583] Re: Static Content

2009-09-10 Thread Richard
oh really! No I haven't tried that. That must be what Sean meant by front-end Apache (or nginx) server I read some documentation (https://help.webfaction.com/index.php? _m=knowledgebase_a=viewarticlekbarticleid=26) about serving static directories on webfaction but it seems complex because you

[web2py:30584] Re: Ajax

2009-09-10 Thread eddwinston
Hi, I am away from my app right now but I guess it would be something like this: data: '{ name_of_ username_field: username_field_value, name_of_password_field: password_field_value, _formkey: form_key_value, _formname: formname_value }' On Sep 10, 8:45 

[web2py:30585] Re: Ajax

2009-09-10 Thread Richard
It sounds like you're getting the HTML for the login page, which is what I would expect because you're requesting that URL. Also you're missing a ) for URL() Richard On Sep 10, 3:11 pm, eddwinston eddwins...@gmail.com wrote: Hi, This is what I did: jQuery.ajax({    type: POST,    url:

[web2py:30586] Re: Ajax

2009-09-10 Thread mdipierro
I think no quotes: data: { name_of_ username_field: username_field_value, name_of_password_field: password_field_value, _formkey: form_key_value, _formname: formname_value } The problem is that you do not know the formkey until the form is generated and

[web2py:30587] Re: get random record efficiently

2009-09-10 Thread Richard
neat! On Sep 10, 3:32 pm, Robin B robi...@gmail.com wrote: On GAE, the default ordering depends on which index is needed to answer the query, and it is stable, so it is non-random. To get random rows on GAE, I use a float field called random, which is assigned a float from 0 and 1, then to

[web2py:30588] Re: Web2py example slide questions (db.label)

2009-09-10 Thread mr.freeze
Try putting it in db.py directly in your Field declaration. Here is an example: db.define_table('mytable',Field('myfield','string',label='My Field'),Field('file','upload',label='My File')) IMO, the 2nd edition manual is the best source of info (besides the source code). You can view it here:

[web2py:30589] Re: Best XML parsing library?

2009-09-10 Thread Richard
Check out lxml: http://codespeak.net/lxml/parsing.html It is also great at parsing HTML and very efficient: http://blog.ianbicking.org/2008/03/30/python-html-parser-performance/ Richard On Sep 8, 11:03 am, mr.freeze nat...@freezable.com wrote: I am working with web services from

[web2py:30590] Re: Pycon

2009-09-10 Thread Richard
I would also be interested in understanding more about the DAL, particularly the new one in development. On Sep 10, 2:02 am, mr.freeze nat...@freezable.com wrote: I would like to see a 'deep dive' into the DAL included complex queries, best practices, limitations, tips and tricks. On Sep 6,

[web2py:30591] Re: Ajax

2009-09-10 Thread mr.freeze
Try this. u is the url, i is the form index (set to 0 for a single form on the page), and t is the target for the response. function ajaxSubmit(u,i,t){ frm = jQuery(form:eq( + i + )); query = 'undefined=' + i; if (frm.length==1){query = frm.serialize();} jQuery.ajax({type: POST,

[web2py:30592] Re: Best XML parsing library?

2009-09-10 Thread mr.freeze
Many thanks. Looks good. On Sep 10, 1:15 am, Richard richar...@gmail.com wrote: Check out lxml:http://codespeak.net/lxml/parsing.html It is also great at parsing HTML and very efficient:http://blog.ianbicking.org/2008/03/30/python-html-parser-performance/ Richard On Sep 8, 11:03 am,

[web2py:30593] Re: Default application with virtualhost

2009-09-10 Thread Fran
On Sep 9, 10:06 pm, Jose jjac...@gmail.com wrote: WSGIScriptAlias / /home/myaccount/webapps/apachewsgi/web2py/ wsgihandler.py WSGIDaemonProcess web2py user=myaccount group=myaccount \    home=/home/myaccount/webapps/apachewsgi/web2py/ \    processes=1 maximum-requests=1000 Aha, so this is

[web2py:30594] Re: Proxy Error 502

2009-09-10 Thread Fran
On Sep 10, 3:27 am, Richard richar...@gmail.com wrote: I've created a backend process to postprocess the uploaded files separately to the request, and so am no longer receiving this error. Is there a way to configure Apache to allow more time before this timeout error?

[web2py:30595] Re: connecting to existing SQLite database

2009-09-10 Thread Fran
On Sep 8, 10:11 pm, Tim Michelsen timmichel...@gmx-topmail.de wrote: If you need to access legacy databases the best way is to create a database view for your table. How do I do this? Can you give an example or reference (to your book)? http://www.sqlite.org/lang_createview.html Not

[web2py:30596] Re: Ajax

2009-09-10 Thread eddwinston
Thanks a lot guys. I will try it when I get hands on my app again. Regards, Winston On Sep 10, 9:28 am, mr.freeze nat...@freezable.com wrote: Try this. u is the url, i is the form index (set to 0 for a single form on the page), and t is the target for the response. function

[web2py:30597] Re: Uploading File for Statistical Operations

2009-09-10 Thread Timmie
This does exactly what you want:    http://vimeo.com/6401333 the source code is in    http://bazaar.launchpad.net/~mdipierro/qcdmc/development/files Wow, thanks for posting this here and letting us know. It's great and shows a good enterprise directed application. Use such good examples

[web2py:30599] Re: Pycon

2009-09-10 Thread desfrenes
Also Tips on using the DAL with a domain model would be nice... On 10 sep, 08:17, Richard richar...@gmail.com wrote: I would also be interested in understanding more about the DAL, particularly the new one in development. On Sep 10, 2:02 am, mr.freeze nat...@freezable.com wrote: I would

[web2py:30598] Re: T3 rocks!

2009-09-10 Thread Timmie
This would be an excellent addition to the appliances web2py already has. I was recently trying out GAE and set up a test site using T3. The installation was dead simple and T3 worked really well. With minimal effort I was able to set up -http://fightalzheimers.appspot.com Yes, T3 is good. I

[web2py:30600] T3

2009-09-10 Thread eddwinston
Hi, What exactly is T2 or T3? Are they applications built with web2py or are not. I don't actually get it --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups web2py-users group. To post to this group, send email to

[web2py:30601] win32com and web2py

2009-09-10 Thread tvw
Hi, I've been trying to use win32com with web2py to get data from an external process. I have been using the following in a controller for my app (default.py) import win32com.client serv = win32com.client.Dispatch(MyService) Once I installed web2py source this worked fine, however

[web2py:30602] Re: Uploading File for Statistical Operations

2009-09-10 Thread mdipierro
credits: That is paid for by the Department of Energy. I need to add the acknowledgment to the info page. Massimo On Sep 10, 3:11 am, Timmie timmichel...@gmx-topmail.de wrote: This does exactly what you want:    http://vimeo.com/6401333 the source code is in    

[web2py:30603] Re: win32com and web2py

2009-09-10 Thread mdipierro
I would put the code below in a module in web2py/ and from the module import serv in your apps. On Sep 10, 7:16 am, tvw surftas...@gmail.com wrote: Hi,     I've been trying to use win32com with web2py to get data from an external process. I have been using the following in a controller for

[web2py:30604] Re: T3

2009-09-10 Thread mdipierro
Yes. Old ones. Proof of concepts for things to come. T2 was an example of a possible plugin structure but everything in T2 is now in web2py. T3 is harder to explain. There is a video on vimeo. It is a handy app, it's only problem is that it still use T2 stuff. It should be rewritten. It will not

[web2py:30605] Re: error on rendering just a record!

2009-09-10 Thread Carlos Aboim
I'm sorry I didn't get the point. What should I do with {{=crud.update(db.cliente, cliente)}} I put it in the view and... thank you CA 2009/9/9 mdipierro mdipie...@cs.depaul.edu {{=crud.update(db.cliente,cliente)}} On Sep 9, 9:50 am, Carlos Aboim abo...@gmail.com wrote: Hey Massimo,

[web2py:30606] json errors

2009-09-10 Thread Manoj
Hello, I have following code in my controller @service.json @service.jsonrpc def list_users(): return dict(users=db(db.auth_user.id0).select()) when i go to http://127.0.0.1:8000/userapp/default/list_users.json it gives me no json http://127.0.0.1:8000/userapp/default/list_users.xml works

[web2py:30607] Re: Default application with virtualhost

2009-09-10 Thread Jose
On 10 sep, 07:17, Fran francisb...@googlemail.com wrote: To redirect to your application, I use mod_rewrite: RewriteEngine On RewriteRule ^/$ /myapplication/ [R] F Thanks Fran. Works well Regards Jose --~--~-~--~~~---~--~~ You received this message

[web2py:30608] Re: return and redirect

2009-09-10 Thread __Kyo__
Becouse the form created, is configured to download a pdf (return), but when I resume using the form, it needs to be updated (redirect). thanks On Sep 10, 12:50 am, Richard richar...@gmail.com wrote: why do you need to update the form? On Sep 10, 6:58 am, __Kyo__ iacastil...@gmail.com wrote:

[web2py:30609] ticket tracking

2009-09-10 Thread David Zejda
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Hello, for a productive site I wish to touch the default error handler, maybe using some kind of decorator. IMO it would be good to 1. retain the ticket generation 2. notify admin by e-mail 3. redirect client to a custom error page I would like to

[web2py:30610] Re: error on rendering just a record!

2009-09-10 Thread mdipierro
That is all. When you visit the page there will be a create form in the page. Perhaps I misunderstand what you want to do. On Sep 10, 8:14 am, Carlos Aboim abo...@gmail.com wrote: I'm sorry I didn't get the point. What should I do with {{=crud.update(db.cliente, cliente)}} I put it in the

[web2py:30611] Re: json errors

2009-09-10 Thread mdipierro
DAL Rows objects are not json serializable. It must be converted to a list of dict first as below: @service.json @service.jsonrpc def list_users(): return dict(users=db(db.auth_user.id0).select().as_list()) On Sep 10, 8:28 am, Manoj sonawane.ma...@gmail.com wrote: Hello, I have following

[web2py:30612] Re: ticket tracking

2009-09-10 Thread mdipierro
make app error with a controller default.py and an action def index(): from gluon.tools import Mail mail=Mail() mail.settings.server=smpt.example.com:port mail.settings.sender=y...@example.com mail.settings.login=you:password ticket=request.vars.ticket subject=Ticket:

[web2py:30613] Importing XML code

2009-09-10 Thread encompass
I know how to work with xml code. I just wanted to make sure I do it with all the built in libraries that are possible. I have an existing tool that will be sending me an XML in a post request. What is the best way for me to take that data and use it in my Web2py Application? they are not

[web2py:30614] Building queries from strings

2009-09-10 Thread Don
Ex: x = 'db.table.id == value' query = db(x) * This fails. Is it possible to convert a string into a query? --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups web2py-users group. To post to this group, send email

[web2py:30615] Re: Uploading File for Statistical Operations

2009-09-10 Thread Anand Vaidya
Have a look at the Algorithms Animator, Cool! http://vimeo.com/1735226 Regards Anand On Sep 10, 4:11 pm, Timmie timmichel...@gmx-topmail.de wrote: This does exactly what you want:    http://vimeo.com/6401333 the source code is in    

[web2py:30616] Re: Building queries from strings

2009-09-10 Thread Jose
On 10 sep, 14:26, Don sam...@gmail.com wrote: Ex: x = 'db.table.id == value' query = db(x) * This fails.  Is it possible to convert a string into a query? Replace with: x = (db.table.id == value) query = db(x) Jose --~--~-~--~~~---~--~~ You received this

[web2py:30617] Re: Building queries from strings

2009-09-10 Thread Yarko Tymciurak
the idiom is db(WHERE_CLAUSE).select(FROM_CLAUSE) (a simplification, but you get the idea) so you want query_results = db(x).select() or (equivalently): query_results = db(x).select(db.table.ALL) On Thu, Sep 10, 2009 at 9:26 AM, Don sam...@gmail.com wrote: Ex: x = 'db.table.id == value'

[web2py:30618] Re: action based on received email

2009-09-10 Thread Julio
I think the OP wanted to execute something based on an email trigger, i.e. when sending an email to a specific address with, say, the contents of a blog post, and have the system automatically add the post based on the contents of the email, something like that, this is somewhat away from web2py,

[web2py:30619] Re: Building queries from strings

2009-09-10 Thread Don
Okay, that was a bad example and my fault. Let's try again x = 'db.table.id == value' query = x set = db(query) row = set.select() This will fail because the query variable is not a gluon.sql.Query object, it is just a string. How can I convert from a string to a query? On Sep 10, 10:32 am,

[web2py:30620] Re: error on rendering just a record!

2009-09-10 Thread Carlos Aboim
From Clientes/index (a list of clients) I want to pick up a record and edit it. with the earlier configuration I get the record but I can't edit it. How I merge my confs with your suggestion? maybe would be better explain everything again but if you can understand.. thanks CA 2009/9/10

[web2py:30621] Writing test codes

2009-09-10 Thread Maurice Ling
Hi everyone, I have a problem here seeking assistance. I am confused about how to start writing test codes in web2py. Say I want to test the following: def input_SS(): if session.username == None: redirect(URL(r=request, f='../account/log_in')) form = FORM( TABLE(

[web2py:30622] Re: SQLite for Production?

2009-09-10 Thread ctalley
FYI, something to consider is that SQLite doesn't natively support foreign key constraints. For example, ON DELETE CASCADE doesn't work. It is possible to write triggers to handle referential integrity, but a dbms like postgresql just does it. So, depending on your requirements, postgresql

[web2py:30623] Re: Importing XML code

2009-09-10 Thread mdipierro
Try def xml_uploader(): import xml.etree.ElementTree mytree=xml.etree.ElementTree.parse(request.body.read()) # do something with mytree. look into python docs about it On Sep 10, 9:22 am, encompass encomp...@gmail.com wrote: I know how to work with xml code. I just wanted to make

[web2py:30624] Re: Building queries from strings

2009-09-10 Thread mdipierro
This is dangerous because vulnerable to SQL Injections. Anyway a query can be a valid SQL WHERE clause: x = table.id == %i % value query = x set = db(query) row = set.select() in this case x is valid SQL. Notice it is not 'db.table.id' but 'table.id' because db is a web2py animal not a SQL

[web2py:30625] Re: Building queries from strings

2009-09-10 Thread Don
Ahh.. Thanks I will try it out. On Sep 10, 11:12 am, mdipierro mdipie...@cs.depaul.edu wrote: This is dangerous because vulnerable to SQL Injections. Anyway a query can be a valid SQL WHERE clause: x = table.id == %i % value query = x set = db(query) row = set.select() in this

[web2py:30626] Database administration - db upload field

2009-09-10 Thread ab
Hi I found issue in database administration module and blob field for files storage When model is defined as below db.define_table('picture', Field('file','upload')) there is no problem with inserting new records using 'database administration' but when model is defined to store files

[web2py:30627] Dzone posting Coding Django polls tutorial in web2py

2009-09-10 Thread mikech
http://www.dzone.com/links/coding_django_polls_tutorial_in_web2py.html --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups web2py-users group. To post to this group, send email to web2py@googlegroups.com To unsubscribe

[web2py:30628] where is isoformat described?

2009-09-10 Thread jayvandal
Hi, I have looked at the web2py 2nd edition and I see no description of isoformat. Jm --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups web2py-users group. To post to this group, send email to web2py@googlegroups.com

[web2py:30629] Re: where is isoformat described?

2009-09-10 Thread Yarko Tymciurak
see date.isoformat() here: http://docs.python.org/library/datetime.html On Thu, Sep 10, 2009 at 11:36 AM, jayvandal jayvan...@gmail.com wrote: Hi, I have looked at the web2py 2nd edition and I see no description of isoformat. Jm --~--~-~--~~~---~--~~ You

[web2py:30630] Using db field labels for column headers

2009-09-10 Thread villas
It seems strange that the db.field 'label' is not used as the column header by default in SQLTABLE. After all, if someone has gone to the trouble of specifying a 'label', surely they would wish to use it everywhere. I eventually found this excellent tip from Massimo. Controller:

[web2py:30632] file descriptors leak

2009-09-10 Thread zahariash
Hello, I've found some weird behavior of web2py script. After few hours from script start it throw error: OSError: [Errno 24] Too many open files Indeed, there is many attached files: lsof -p 13149 python2.5 13149 www-data 24u REG 202,0 02702 /tmp/ tmpkvWcld (deleted) python2.5

[web2py:30633] Re: Database administration - db upload field

2009-09-10 Thread mdipierro
Please try Field('file_data','blob',default='')) On Sep 10, 10:57 am, ab adam.ba...@googlemail.com wrote: Hi I found issue in database administration module and blob field for files storage When model is defined as below db.define_table('picture', Field('file','upload'))

[web2py:30634] Re: Using db field labels for column headers

2009-09-10 Thread mdipierro
This comes up once in a while and the answer is no. The problem is that SQLTABLE may need to display the result of a join where the same field appears has two columns and some columns may be computed from expressions. They do not have a label and even if they do, using label would be confusing.

[web2py:30635] Re: file descriptors leak

2009-09-10 Thread mdipierro
Thank you. What OS do you use? Can you email me your full name, to log the patch? Massimo On Sep 10, 11:52 am, zahariash karra...@gmail.com wrote: Hello, I've found some weird behavior of web2py script. After few hours from script start it throw error: OSError: [Errno 24] Too many open

[web2py:30638] Re: Using db field labels for column headers

2009-09-10 Thread villas
I see it may not be straightforward, but if I may still make a non- urgent suggestion for future consideration: 1. Check whether it's a normal looking, unambiguous fieldname. 2. If true, and a label exists, then use the label. After all, if there are any problems with column headers, we could

[web2py:30639] Re: Using db field labels for column headers

2009-09-10 Thread mdipierro
You can just do {{=SQLTABLE(rows, headers=dict([('mytable.'+f,db.mytable[f].label) for f in db.mytable.fields]))}} On Sep 10, 1:07 pm, villas villa...@gmail.com wrote: I see it may not be straightforward, but if I may still make a non- urgent suggestion for future consideration: 1. Check

[web2py:30640] Re: SQLite for Production?

2009-09-10 Thread Joe Barnhart
Good point. Another factor is handling threads. IIRC Sqlite won't handle more than 1 thread while the others will. On Thu, Sep 10, 2009 at 8:01 AM, ctalley ctal...@caci.com wrote: FYI, something to consider is that SQLite doesn't natively support foreign key constraints. For example, ON

[web2py:30641] web2py containers

2009-09-10 Thread Thadeus Burgess
mediatemple.net has Django Containers, basically a VPS designed specifically to run Django, is there anything out there like this for web2py? I can imagine the having the dedicated django container is faster than what could be set up with web2py? Could the django container be used to host

[web2py:30642] Re: who made this? I really like it

2009-09-10 Thread Wes James
Massimo, use your mac. run terminal type in: whois icoexist.org might give a hint... :) -wes On Wed, Sep 9, 2009 at 4:23 PM, mdipierromdipie...@cs.depaul.edu wrote: http://www.icoexist.org/ --~--~-~--~~~---~--~~ You received this message because

[web2py:30643] Re: get random record efficiently

2009-09-10 Thread Robin B
Also if you already have many existing rows w/o a random float field, you will need to add a random field to those rows. You could use the remote datastore API [ ru.ly/g6 ] to add a random field to each row in the table. It basically connects you to the production datastore from your local

[web2py:30644] Re: file descriptors leak

2009-09-10 Thread zahariash
What OS do you use? Debian 5.0.3 Can you email me your full name, to log the patch? Zahariash is ok ;) --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups web2py-users group. To post to this group, send email to

[web2py:30645] Re: web2py containers

2009-09-10 Thread mdipierro
I assume those are virtual machines. Some users have posted virtual machines containing web2py. I think there is still room for improvement. Ideally I would like a ubuntu server virtual machine with 1) apache preconfigured to run web2py via mod_wsgi 2) postgresql preconfigured and perhaps a

[web2py:30646] Re: Database administration - db upload field

2009-09-10 Thread ab
Thanks. Working fine. I have one more question. When I upload file by database administration, field file contains for example following entry - picture.file.975598ae58526cda. 46697265666f785f77616c6c70617065722a706a67.png I want to upload files by REST. Is there function which I can use to

[web2py:30647] Re: Database administration - db upload field

2009-09-10 Thread mdipierro
It depends on how you send the file. Can you send me an example? On Sep 10, 2:19 pm, ab adam.ba...@googlemail.com wrote: Thanks. Working fine. I have one more question. When I upload file by database administration, field file contains for example following entry -

[web2py:30648] Re: Ajax

2009-09-10 Thread eddwinston
Hi guys, The login now works, the session is saved but the value returned from the server is still a full page html markup. How can I get either xml or json as a return value? Thanks Winston On Sep 10, 10:42 am, eddwinston eddwins...@gmail.com wrote: Thanks a lot guys. I will try it when I

[web2py:30649] Re: Database administration - db upload field

2009-09-10 Thread ab
I don't know uploaded file name. There is only stream of bytes to save in blob field. On Sep 10, 9:27 pm, mdipierro mdipie...@cs.depaul.edu wrote: It depends on how you send the file. Can you send me an example? On Sep 10, 2:19 pm, ab adam.ba...@googlemail.com wrote: Thanks. Working fine.

[web2py:30650] Re: web2py containers

2009-09-10 Thread Thadeus Burgess
This is a shame there is no one click support for web2py aside from google engine. I think web2py will suffice to a prototyping framework, and then use django for the real thing, considering that many web hosts have one click django support. (not that adminstering an apache server is difficult, it

[web2py:30651] Re: Ajax

2009-09-10 Thread mdipierro
make a view like user.json that contains {{if user.is_logged_in():}}1{{else:}}0{{pass}} then call the use action with URL(r=request,c='default', f='user', args='login',extension='json') On Sep 10, 2:31 pm, eddwinston eddwins...@gmail.com wrote: Hi guys, The login now works, the session is

[web2py:30652] Re: Database administration - db upload field

2009-09-10 Thread mdipierro
def upload(): import cStringIO data=request.body.read() f=cStringIO.StringIO(data) current_filename='bla.bla' # how to you know the file extension if you do not pass the name? new_filename=db.mytable.picture.store(f,current_filename) # do something with new_filename and

[web2py:30653] Re: web2py containers

2009-09-10 Thread mdipierro
There are dedicated web hosts that provide web2py pre-installed. On Sep 10, 2:48 pm, Thadeus Burgess thadeus.burg...@gmail.com wrote: This is a shame there is no one click support for web2py aside from google engine. I think web2py will suffice to a prototyping framework, and then use django

[web2py:30654] Re: T3

2009-09-10 Thread Fran
On Sep 10, 2:10 pm, mdipierro mdipie...@cs.depaul.edu wrote: T3 is harder to explain. There is a video on vimeo. It is a handy app, it's only problem is that it still use T2 stuff. It should be rewritten. It will not take long so perhaps it is one of the first things I would do. I just

[web2py:30655] Re: T3

2009-09-10 Thread mdipierro
Fran, I would take a different approach. Instead of making a t3 brank I would rewrite it. I would only keep (the function that executed pages), the function that creates menus recursively. Instead of things like t2.create expose crud.create and instead of t2.login expose auth.login, etc. The

[web2py:30656] headers for crud.select()

2009-09-10 Thread Oleg
Is something wrong with the idea, that labels, defined for the fields, will be also default headers for the crud.select() table. Just found myself continuously filling up and updating headers parameters every time when I add new field in DB ;) but it is the same with label, I defined for the

[web2py:30657] Re: headers for crud.select()

2009-09-10 Thread mdipierro
http://groups.google.com/group/web2py/browse_thread/thread/9016f07f57605698# On Sep 10, 4:00 pm, Oleg obutov...@googlemail.com wrote: Is something wrong with the idea, that labels, defined for the fields, will be also default headers for the crud.select() table. Just found myself

[web2py:30658] Views with \ instead of /

2009-09-10 Thread Chris S
I've been paying with some of the example apps and run across an oddity in the 'Views'. When I create a view, for example: default/index.html It shows up in the list as: default\index.html When I try to view or edit this file with the links on the Edit page I get an 404 Error: The requested URL

[web2py:30659] web2vy

2009-09-10 Thread David Hofmann
Hi all here, have somebody though on porting web2py framework in groovy ?( Is somebody doing it already ? ) I am asking this because groovy has the same potencial as python, just with a liiitle more complexity than straigth python. I have made ( http://code.google.com/p/swebj/ ) a similar web2py

[web2py:30660] Re: Using db field labels for column headers

2009-09-10 Thread villas
Wow, thanks! Don't forget to include in the book. BTW have you seen the Cakephp book? It's a great collaborative effort. It would be great if everyone could proposed edits, fix typos etc and take some of the strain off the core development team. Just a thought. Thanks again for the labels!

[web2py:30661] Re: web2vy

2009-09-10 Thread Thadeus Burgess
Why would anyone bother porting a system that is still in heavy development? On Thu, Sep 10, 2009 at 4:48 PM, David Hofmann hofmannda...@gmail.comwrote: Hi all here, have somebody though on porting web2py framework in groovy ?( Is somebody doing it already ? ) I am asking this because groovy

[web2py:30662] cron error for no cron

2009-09-10 Thread Richard
hi, I have a backend job that I run periodically with: python -u web2py.py --import_models --no-cron --shell=test --run=applications/test/modules/backend.py As you can see I am specifying no cron, but every so often I get this error: WARNING:root:alreadyrunning WARNING:root:WEB2PY CRON:

[web2py:30663] Re: SQLite for Production?

2009-09-10 Thread Richard
One advantage of sqlite is that migrations work much better than postgres, so it is great to use while developing your app. On Sep 11, 4:14 am, Joe Barnhart joe.barnh...@gmail.com wrote: Good point.  Another factor is handling threads.  IIRC Sqlite won't handle more than 1 thread while the

[web2py:30664] Any comments on Tornado Server?

2009-09-10 Thread Anand Vaidya
Facebook has released Tornado Server http://www.tornadoweb.org/ Any comments? Regards Anand Tornado is an open source version of the scalable, non-blocking web server and tools that power FriendFeed. The FriendFeed application is written using a web framework that looks a bit like web.py or

[web2py:30665] Enable line numbering in the admin interface editor???

2009-09-10 Thread cesmiga
All: Is there a way to enable line numbering in the admin interface editor? Thank you, Christopher --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups web2py-users group. To post to this group, send email to

[web2py:30666] Re: Any comments on Tornado Server?

2009-09-10 Thread Joe Barnhart
Looks kinda like Twisted to me, but without the generality of other protocols. But it supports epoll on Linux (and Mac?). It *can* support WSGI but you lose the cool asynchronous stuff so why do it? In short, it sounds like an excellent solution for someone else's problem! -- Joe B. On Thu,

[web2py:30667] Re: Ajax

2009-09-10 Thread eddwinston
Hi Massimo, I tried the above method but the return value is still a full page markup. Don't know what I am doing wrong On Sep 10, 11:32 pm, mdipierro mdipie...@cs.depaul.edu wrote: make a view like user.json that contains {{if user.is_logged_in():}}1{{else:}}0{{pass}} then call the use

[web2py:30668] Fixing Autocomplete for Web2Py With Pydev IDE

2009-09-10 Thread Bottiger
I starting to use PyDev now that the extensions are now free. I remembered some of you had problems with the autocomplete because of the Web2Py globals. Here is a solution. When you add a Python Interpreter, go into forced globals. Click new. Copy and paste the following:

[web2py:30669] Re: win32com and web2py

2009-09-10 Thread tvw
Thank you so much :) Been trying for ages to figure that out on my own - works like a dream now. Recent convert to python from perl. web2py automates a LOT of things I used to do very manually. I think this is going to be a big hit. On Sep 10, 9:08 am, mdipierro mdipie...@cs.depaul.edu

[web2py:30670] Re: Enable line numbering in the admin interface editor???

2009-09-10 Thread Wes James
On Thu, Sep 10, 2009 at 7:00 PM, cesmiga cesm...@gmail.com wrote: All: Is there a way to enable line numbering in the admin interface editor? You may want to consider using the free version of Wing IDE: http://www.wingware.com/downloads/wingide-101 -wes

[web2py:30672] Re: autocomplete

2009-09-10 Thread suiato
i still think of this topic of autocompletion/snippets/collaboration features when editing... found a good editor called Ulipad with nice features like autocompletion, snippets, etc. python-based with wxPython. easy to install and use. found that its author wrote a web framework Uliweb(http://

[web2py:30673] Re: Ajax

2009-09-10 Thread Jason Brower
If you looking for that it is in the manual. And the examples. I think you can create a page like generic.xml like in a new application if you deleted one, just make it. Then you just ask for the page with .xml at the end. A new application has the framework for what I think your wanting to do.

[web2py:30674] Re: Enable line numbering in the admin interface editor???

2009-09-10 Thread suiato
On 9月11日, 午前10:00, cesmiga cesm...@gmail.com wrote: All: Is there a way to enable line numbering in the admin interface editor? i see line numbers on the web2py editor when editing models/ controllers/views. what is 'admin interface editor'? Thank you, Christopher

[web2py:30675] Re: Fixing Autocomplete for Web2Py With Pydev IDE

2009-09-10 Thread Bottiger
For anyone curious, I found out that pasting this at the top of your web2py files seems to be the only way to fix pydev. Its a somewhat updated version of Guido Kollerie's method all in one. Its too bad there isn't a better fix. if 0: from gluon.sql import * from gluon.sql import DAL

[web2py:30676] Re: win32com and web2py

2009-09-10 Thread mdipierro
tell your friends. ;-) On Sep 10, 9:58 pm, tvw surftas...@gmail.com wrote: Thank you so much :) Been trying for ages to figure that out on my own - works like a dream now. Recent convert to python from perl. web2py automates a LOT of things I used to do very manually. I think this is

[web2py:30677] Separation of Concerns

2009-09-10 Thread Ryan Montgomery
I am new to web2py and I have some questions. The first one being: Does the ability to creating Forms with html tables in the controller violate the principal of Separation of Concerns? Shouldn't this view logic be handled in the view and not in the controller? Please reference example #28

[web2py:30678] web2py newbee: INPUT looping

2009-09-10 Thread Denis
Hello, I am well versed in Python but a newbie in web2py. I have a list of elements and I'd like to generate INPUTs for it using a for loop if possible Specifically myElem = [ ['id_x', 'One'], ['id_y', 'Two'], ['anotherId', 'SomeValue']] should become form input id='id_x'

[web2py:30679] Re: Separation of Concerns

2009-09-10 Thread mdipierro
Yes. The fact that you can do it, does not man you should do it. Sometime need to build HTML programmatically, for this reason web2py provides a OOP server side representation of the DOM so that you never have to manipulate strings in the controllers. You can use this to build forms but you do

[web2py:30680] Re: web2vy

2009-09-10 Thread Yarko Tymciurak
what would be the compelling reason to commit to that work regardless? On Thu, Sep 10, 2009 at 7:14 PM, Thadeus Burgess thadeus.burg...@gmail.comwrote: Why would anyone bother porting a system that is still in heavy development? On Thu, Sep 10, 2009 at 4:48 PM, David Hofmann

[web2py:30681] Re: cron error for no cron

2009-09-10 Thread Yarko Tymciurak
see output of: python web2py.py -h for the option to disable cron On Thu, Sep 10, 2009 at 7:14 PM, Richard richar...@gmail.com wrote: hi, I have a backend job that I run periodically with: python -u web2py.py --import_models --no-cron --shell=test

[web2py:30682] help with static files in webfaction

2009-09-10 Thread drayco
Good night, I ask for your support with this situation I have a subdomain on WebFaction. At this time, I can see and work with the admin, welcome and a mysql database in my application in WebFaction. However, when I request my subdomain, the initial application (init) loads blank pages. I think,

[web2py:30683] Re: SQLite for Production?

2009-09-10 Thread Yarko Tymciurak
what makes you say that? I've had good luck w/ postgres migrations. Have you had problems? On Thu, Sep 10, 2009 at 7:36 PM, Richard richar...@gmail.com wrote: One advantage of sqlite is that migrations work much better than postgres, so it is great to use while developing your app. On

[web2py:30685] Re: SQLite for Production?

2009-09-10 Thread mdipierro
1) actually migrations work better in posgresql because all types of alter tables are supported (http://www.sqlite.org/faq.html#q11). For example if you change the type of a column with postgresql web2py will create a new column, try to convert the data, drop the old column, rename the old

[web2py:30686] Re: autocomplete

2009-09-10 Thread Iceberg
On Sep11, 11:16am, suiato homm...@gmail.com wrote: i still think of this topic of autocompletion/snippets/collaboration features when editing... found a good editor called Ulipad with nice features like autocompletion, snippets, etc. python-based with wxPython.  easy to install and use.

[web2py:30687] new in trunk

2009-09-10 Thread mdipierro
I have made some changes to the code in trunk: 1) Since tonight I attended a presentation about how SQLAlchemy can do on delete cascade in SQLite even if SQLite does not support it, I implemented this feature in web2py too. There is nothing you have to do it now there by default. For example:

  1   2   >