[web2py:37556] Python 2.7 and web2py

2009-12-19 Thread Anand Vaidya
While testing some other code with python-2.7-alpha1 I thought why not try web2py too. Web2py starts up, fine, with some deprecation warnings: /home/cr/users/av/python27a1x64/lib/python2.7/mhlib.py:83: DeprecationWarning: the multifile module has been deprecated since Python 2.5 import multifil

[web2py:37557] Re: semantic web2py

2009-12-19 Thread davidjensen
I will do some testing. Does this mean there is no need for the mysterious couchdb, mongodb, and hadoop, whatever they are? On Dec 18, 3:30 pm, mdipierro wrote: > http://www.web2py.com/semantic > > We could use some testers. > > Massimo -- You received this message because you are subscribed t

[web2py:37558] Re: LOAD function anybody?

2009-12-19 Thread mdipierro
Hi Yarko, yes, that is it, combined with the ajax code in web2py_ajax.html. Massimo On Dec 19, 1:13 am, Yarko Tymciurak wrote: > On Dec 19, 12:22 am, Thadeus Burgess wrote: > > > This has been in place for a while now. It was part of the original plugin_ > > schema, to load say "comments" easi

[web2py:37559] exporting csv file into table

2009-12-19 Thread vvk
I'm creating a csv file using db_export_to_csv. I want to make this csv file downloadable. "Download" function isn't allowing me to download this csv file because it's not present in any table. I thought of exporting csv file directly into a table, but unable to find any syntax for that. Any help w

[web2py:37560] Re: Python 2.7 and web2py

2009-12-19 Thread mdipierro
good to know. We should make those warning go away. On Dec 19, 3:51 am, Anand Vaidya wrote: > While testing some other code with python-2.7-alpha1 I thought why not > try web2py too. > > Web2py starts up, fine, with some deprecation warnings: > > /home/cr/users/av/python27a1x64/lib/python2.7/mhli

[web2py:37561] Re: LOAD function anybody?

2009-12-19 Thread Yarko Tymciurak
Thanks, Massimo - This actually looks to be pretty fast, and does not look like it would prevent nice wrapping (contrary to what I first said). I will have to study LoadFactory code a bit, try it some more. - Yarko On Dec 19, 8:24 am, mdipierro wrote: > Hi Yarko, > > yes, that is it, combined w

[web2py:37562] Re: semantic web2py

2009-12-19 Thread mdipierro
When we will have adaptors for other NoDB backend (like MongoDB), this will work on that. Right now it works with the supported DBs. On Dec 19, 6:29 am, davidjensen wrote: > I will do some testing. > > Does this mean there is no need for the mysterious couchdb, mongodb, > and hadoop, whatever the

[web2py:37563] Re: exporting csv file into table

2009-12-19 Thread mdipierro
You uness you are customizing export_to_csv_file you can just do def myaction(): import cStringIO file = cStringIO.StringIO() db(...).select().export_to_csv_file(file) return file.getvalue() and call with http://./myaction.csv so that you get the right content-type. The .csv

[web2py:37564] question

2009-12-19 Thread Massimo Di Pierro
http://groups.google.com/group/comp.lang.python/browse_thread/thread/b014b89ede34dc27# -- You received this message because you are subscribed to the Google Groups "web2py-users" group. To post to this group, send email to web...@googlegroups.com. To unsubscribe from this group, send email to w

[web2py:37565] Re: semantic web2py

2009-12-19 Thread selecta
well this is not directly related but I just launched my first web2py project, wich basicly helps you to semantically annotate source code. I am working in the field of systems biology and we usually have a gap between a mathematical model of a biological process and the biological meaning of the m

[web2py:37566] Re: semantic web2py

2009-12-19 Thread Richard
that pages style looks like Drupal - where can I get it?! On Dec 19, 7:30 am, mdipierro wrote: > http://www.web2py.com/semantic > > We could use some testers. > > Massimo -- You received this message because you are subscribed to the Google Groups "web2py-users" group. To post to this group,

[web2py:37567] Re: upload progress

2009-12-19 Thread Richard
I got it to work, and the discussion was here: http://groups.google.com/group/web2py/browse_thread/thread/e5e38fca6fa3f378 "The upload was so fast that it had finished before the first progress bar call. At the end of the upload the cache is cleared, so that the first progress bar call returned an

Re: [web2py:37568] Re: multiple SQLForms and rows datetime problem

2009-12-19 Thread Mikey Jokinen
Is this possible? It means one submit, four sqlforms. 2009/12/17 Mikey Jokinen > db.define_table('table1',Field('field1'), Field('field2')) > > rows = db(db.field2 == 1).select() #this has allways 4 rows or maybe more > in future > > something like this "form=SQLFORM.factory(db.table1.field1,

[web2py:37569] Re: semantic web2py

2009-12-19 Thread mdipierro
This stuff looks really cool. Do you generate the images? Are hey 2d or 3d? On Dec 19, 2:45 pm, selecta wrote: > well this is not directly related but I just launched my first web2py > project, wich basicly helps you to semantically annotate source code. > I am working in the field of systems bio

[web2py:37570] Re: semantic web2py

2009-12-19 Thread mdipierro
I think it is from drupal. I took it from the official Linked Data web site. On Dec 19, 3:09 pm, Richard wrote: > that pages style looks like Drupal - where can I get it?! > > On Dec 19, 7:30 am, mdipierro wrote: > > >http://www.web2py.com/semantic > > > We could use some testers. > > > Massimo

[web2py:37571] Re: multiple SQLForms and rows datetime problem

2009-12-19 Thread mdipierro
By definition one sqlform has one submit. You can combine the fields of multiple forms in one bigger form but you must make sure the names have no conflict. On Dec 19, 3:42 pm, Mikey Jokinen wrote: > Is this possible?  It means one submit, four sqlforms. > > 2009/12/17 Mikey Jokinen > > > db.def

[web2py:37572] compile app to bytecode using commandline

2009-12-19 Thread David Zejda
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Hello, I know I may compile my app using the web interface. I wish to deploy the bytecode often. Is there any way to perform the compilation by script? I have found, that there is a function "compile_application" in gluon.contrib.compileapp.py, but t

[web2py:37573] Re: compile app to bytecode using commandline

2009-12-19 Thread mdipierro
yes, make a script compile.py from gluon.admin import app_compile app_compile(request.application, request) and run it with python web2py.py -S yourappname -R compile.py I have not tried it but should work. Everything that can be done via admin interface has an API in the gluon.admi

[web2py:37574] Re: question

2009-12-19 Thread Jake
added my 2 cents :) Go web2py! On Dec 19, 3:20 pm, Massimo Di Pierro wrote: > http://groups.google.com/group/comp.lang.python/browse_thread/thread/... -- You received this message because you are subscribed to the Google Groups "web2py-users" group. To post to this group, send email to web...

[web2py:37575] Re: semantic web2py

2009-12-19 Thread selecta
I hotlink the images from http://pubchem.ncbi.nlm.nih.gov/ eg http://pubchem.ncbi.nlm.nih.gov/summary/summary.cgi?cid=5957&loc=ec_rcs the US version of "the" small chemical compounds database the EU version would be chebi http://www.ebi.ac.uk/chebi/searchFreeText.do?searchString=CHEBI:10789 look a

[web2py:37576] Re: semantic web2py

2009-12-19 Thread selecta
go to more structures >> to get the mol file with the 3d coordinates On Dec 20, 3:38 am, selecta wrote: > I hotlink the images fromhttp://pubchem.ncbi.nlm.nih.gov/ > eghttp://pubchem.ncbi.nlm.nih.gov/summary/summary.cgi?cid=5957&loc=ec_rcs > the US version of "the" small chemical compounds databa

Re: [web2py:37577] Re: SQLFORM, no-table, with fieldsets.

2009-12-19 Thread Thadeus Burgess
I need some help then. I do not see any way this is possible using the current system of helpers and how data is validated by these helpers. -Thadeus On Fri, Dec 18, 2009 at 12:21 PM, Yarko Tymciurak < resultsinsoftw...@gmail.com> wrote: > On Dec 15, 6:09 pm, Thadeus Burgess wrote: > > The r

[web2py:37578] restore db tcp connection

2009-12-19 Thread KMax
Hello Unable to find solution here, so i am asking. Is there any way to avoid Internal error on losing connection to db? At this moment I have to restart apache to restore connection. Apache2 and postgres8.3 run on separate linux workstations. Thanks in advice. -- You received this message be

[web2py:37579] Re: SQLFORM, no-table, with fieldsets.

2009-12-19 Thread hamdy.a.farag
Hi There @mdipierro , whether SQLFORM was refactored or there will be a new kind of form , still this's important and needs to be of high priority I work in a team that faced many problems using the current SQLFORM 1st if you're work in agile environment , then you don't necessarily see the whol

[web2py:37580] Re: restore db tcp connection

2009-12-19 Thread mdipierro
I think I need to know more about settings. Who is losing connections to the db? Is there a ssh tunnel connection the two machines? Do you use connection pooling and one of the threads in the pool loses the connection? Is this a problem without connection pooling? On Dec 19, 11:36 pm, KMax wrote:

[web2py:37581] Re: SQLFORM, no-table, with fieldsets.

2009-12-19 Thread mdipierro
Can you summarize for me what the problem is. This is a long thread and I got lost. Massimo On Dec 19, 11:46 pm, "hamdy.a.farag" wrote: > Hi There > > @mdipierro , whether SQLFORM was refactored or there will be a new > kind of form , still this's important and needs to be of high > priority > >

[web2py:37582] Re: SQLFORM, no-table, with fieldsets.

2009-12-19 Thread hamdy.a.farag
well, suppose you've a form for registeration that's related to auth_user table Now you can register new users and no problem suppose after a while you need a page where manager can add special users to them , [firs_name, last_name , ..] but in the registration form you need a new field to b