[web2py:30691] Re: autocomplete

2009-09-11 Thread suiato
Hi Iceberg 2009/9/11 Iceberg iceb...@21cn.com: ... Actually, Limodou, the author of uliweb and ulipad is one of the early contributors of web2py, and is still recognized in web2py's contributor list. For some design philosophy reason he decided to start his own uliweb project which is not as

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

2009-09-11 Thread Richard
hi, In my above example I used --no-cron but still got a cron error. Is there another option? Richard On Sep 11, 2:56 pm, Yarko Tymciurak yark...@gmail.com wrote: see output of: python web2py.py -h for the option to disable cron On Thu, Sep 10, 2009 at 7:14 PM, Richard

[web2py:30693] Re: new in trunk

2009-09-11 Thread Richard
on delete cascade in SQLite Fantastic! My feature request for this can be closed: http://code.google.com/p/web2py/issues/detail?id=50 Did the solution involve sqlite triggers? row = db(db.mytable.id0).select().first() very convenient Richard On Sep 11, 3:12 pm, mdipierro

[web2py:30694] Re: new in trunk

2009-09-11 Thread mdipierro
On Sep 11, 1:19 am, Richard richar...@gmail.com wrote: on delete cascade in SQLite Fantastic! My feature request for this can be closed:http://code.google.com/p/web2py/issues/detail?id=50 Can you do it or should I do it? Did the solution involve sqlite triggers? No. The solution is

[web2py:30695] yet another wiki with versioning and auth

2009-09-11 Thread mdipierro
http://web2py.com/examples/static/web2py.app.wiki2.w2p this one has 49 lines of models and controllers code (including 13 lines of scaffolding code) and 20 lines of views html code. I am going to use this one to rewrite T3. I think it can be done with very little work. Time for you to

[web2py:30696] Re: how to let end user (not developer) define table on fly

2009-09-11 Thread wf321
Thanks for help, I will check T3. I still not understand why table define in model/db.py only need define once, then all sub-sequence requests can access it without execute db.define_table at every request, but table define in default.py need execute db.define_table at every request. On

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

2009-09-11 Thread Sebastian E. Ovide
waw accordingly to http://www.tornadoweb.org/documentation#performanceit performes very well do we have any numbers about web2py to compare to them ? On Fri, Sep 11, 2009 at 2:09 AM, Joe Barnhart joe.barnh...@gmail.com wrote: Looks kinda like Twisted to me, but without the generality

[web2py:30702] Re: how to let end user (not developer) define table on fly

2009-09-11 Thread Fran
On Sep 11, 8:28 am, wf321 wf...@163.com wrote: I still not understand why table define in model/db.py  only need define once,  then  all sub-sequence requests can access it without execute db.define_table  at every request The models get executed in every request. ,  but table define in

[web2py:30703] Re: file descriptors leak

2009-09-11 Thread zahariash
On 11 Wrz, 07:13, mdipierro mdipie...@cs.depaul.edu wrote: please check if it is fixed. I had to change your fix because it was not python 2.4 compliant. Revision 1124 works ok. It's fixed. --~--~-~--~~~---~--~~ You received this message because you are

[web2py:30704] Re: Ajax

2009-09-11 Thread eddwinston
Hi Jason, I did create a file and named it user.json then put in the code Massimo suggested but I still get the page markup. It was suppose to return json. On Sep 11, 6:24 am, Jason Brower encomp...@gmail.com wrote: If you looking for that it is in the manual.  And the examples. I think you

[web2py:30705] Re: Importing XML code

2009-09-11 Thread encompass
Actually, the parse didn't work. But the new feature in python 2.5 that I have not seen is rather nice. Thanks... I actually ended up useing... mytree=xml.etree.ElementTree.XML(request.body.read()) Thanks! On Sep 10, 6:09 pm, mdipierro mdipie...@cs.depaul.edu wrote: Try def xml_uploader():

[web2py:30706] Re: yet another wiki with versioning and auth

2009-09-11 Thread mr.freeze
I get this when editing an entry. I am at revision 1215 of svn: Traceback (most recent call last): File C:\web2py\gluon\restricted.py, line 178, in restricted exec ccode in environment File c:/web2py/applications/wiki/controllers/default.py, line 26, in module File

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

2009-09-11 Thread JorgeR
do you mean cherrypy vs tornado? On Sep 11, 3:48 am, Sebastian E. Ovide sebastianov...@gmail.com wrote: waw accordingly tohttp://www.tornadoweb.org/documentation#performanceitperformes very well do we have any numbers about web2py to compare to them ? On Fri, Sep 11, 2009 at 2:09

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

2009-09-11 Thread Sebastian E. Ovide
according to that benchmark CherryPy is far the slowest... what about web2py (apache/mod_wsgi) would be nice if we can place it before Django (apache/mod_wsgi) On Fri, Sep 11, 2009 at 12:56 PM, JorgeR jorgeh...@gmail.com wrote: do you mean cherrypy vs tornado? On Sep 11, 3:48 am, Sebastian

[web2py:30710] Re: web2vy

2009-09-11 Thread David Hofmann
If you look at it, python is still on development, they've made some interesting changes in version 3.0, but it doesn't mean python isn't mature/stable. Groovy on its side has borrow the best features from the best languages like python, ruby, java ... And I know about commercial financial systems

[web2py:30711] Re: ticket tracking

2009-09-11 Thread David Zejda
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Thank you for the help. I have one problem with the solution - it seems, that if there is custom error_handler in routes.py specified, the ticket is not being generated. No file with traceback information appears and also the request.vars.ticket is

[web2py:30712] Dynamically populate PDF forms on the fly

2009-09-11 Thread Markus
Today we use fpdf and fpdi to populate government PDF forms from a web form in php how do we do this python? What is the best PDF library? --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups web2py-users group. To post

[web2py:30713] UPLOAD FILES USING FORM

2009-09-11 Thread ARCHIT
Hi, I am trying to upload files using FORM (donot want to use crud etc...) in controllers like FORM(INPUT(_type=file,_name=upload_f)) then i am inserting the file so got to using db.insert() in my database. But all i get is a 'file' written in the database which when clicked upon gives me 404

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

2009-09-11 Thread Victor
Thanks everyone I guess I'll need to do some email server research then. At least I know what to research. Previously, I didnt know where to start. Thanks Again Victor --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google

[web2py:30715] Re: request.args parsing whitespaces

2009-09-11 Thread mdipierro
You can use routes.py to map args(0) into vars but I think it'd be simpler to replace the whitespaces with _ everywhere. On Sep 11, 3:16 am, Richard richar...@gmail.com wrote: hello, I want to make my URLs pretty with /default/record/green apple instead of default/record/42. But the white

[web2py:30716] Re: SQLite for Production?

2009-09-11 Thread mdipierro
Because you have to do in a different way. Your boolean column cannot be converted to integer because it is implemented as a char(1) that contains 't' and 'f'. postgres cannot convert 't' to an integer. The way of doing is by first deleting the existing column, migrating, adding the column again

[web2py:30717] Re: Importing XML code

2009-09-11 Thread mdipierro
good to know. On Sep 11, 4:37 am, encompass encomp...@gmail.com wrote: Actually, the parse didn't work.  But the new feature in python 2.5 that I have not seen is rather nice.  Thanks... I actually ended up useing... mytree=xml.etree.ElementTree.XML(request.body.read()) Thanks! On Sep 10,

[web2py:30718] Re: yet another wiki with versioning and auth

2009-09-11 Thread mdipierro
oops. I reposted it. make sure you delete databases/* before you try again. Massimo On Sep 11, 6:32 am, mr.freeze nat...@freezable.com wrote: I get this when editing an entry.  I am at revision 1215 of svn: Traceback (most recent call last):   File C:\web2py\gluon\restricted.py, line 178,

[web2py:30720] Re: web2vy

2009-09-11 Thread mdipierro
Thank you David, I personally have my hands full but thanks for bringing this to our attention. Massimo On Sep 11, 7:42 am, David Hofmann hofmannda...@gmail.com wrote: If you look at it, python is still on development, they've made some interesting changes in version 3.0, but it doesn't mean

[web2py:30723] Re: UPLOAD FILES USING FORM

2009-09-11 Thread mdipierro
If you accept a form like FORM(INPUT(_type=file,_name=upload_f)) the form.vars.upload_f contain a cgi.FieldStorageObject with two attributes form.vars.upload_f.file from which you can read() the content and form.vars.upload_f.filename (the original filename) You cannot store in database

[web2py:30724] Re: Dynamically populate PDF forms on the fly

2009-09-11 Thread Markus
Thanks for the help. On Sep 11, 9:30 am, mdipierro mdipie...@cs.depaul.edu wrote: download reportlab, unzip in the main web2py folder, and use the its platypus API. On Sep 11, 7:56 am, Markus prakash...@gmail.com wrote: Today we use fpdf and fpdi to populate government PDF forms from

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

2009-09-11 Thread cesmiga
suiato wrote: 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:30726] Login in Javascript or Python

2009-09-11 Thread Markus
Hello We have a tax software built in PHP, PHP is used mainly for server calls, all the logic is in Javascript files. We are thinking of porting it to Python (web2py) mainly to use GAE hosting, to handle our peak volume during specific months. My question; Should logic reside in Javascript or

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

2009-09-11 Thread Timbo
According to the Performance section of their documentation, they recommend running one instance of Tornado per processor core on your server and then joining them together behind a nginx reverse proxy. Looking at the graph, this makes the top bar an apples to oranges comparison with the rest of

[web2py:30728] Re: Login in Javascript or Python

2009-09-11 Thread Markus
Server calls code in python (like authentication, pdf generation etc.,) DOM level logic based on form input, like calculations stick with javascript. This way all logic gets loaded once and stays in DOM and variables can be passed to python when necessary. Is this the right approach? On Sep

[web2py:30729] Re: SQLite for Production?

2009-09-11 Thread Richard
has this changed since sqlite2? SQLite is typeless: http://www.sqlite.org/datatypes.html On Sep 11, 7:01 pm, Fran francisb...@googlemail.com wrote: On Sep 11, 9:29 am, Richard richar...@gmail.com wrote: Well, yesterday I changed a boolean type column to integer in my model and all hell

[web2py:30730] Re: request.args parsing whitespaces

2009-09-11 Thread Jonathan Lundell
On Sep 11, 2009, at 1:16 AM, Richard wrote: I want to make my URLs pretty with /default/record/green apple instead of default/record/42. But the white spaces are being parsed so that request.args[0] comes in as green_apple. I can't do request.args[0].replace('_', ' '), because the original

[web2py:30731] Re: upgrading to 1.66.1 chokes on sqlite database

2009-09-11 Thread Candid
Hello. I am using 1.66.2 (SVN revision 1178) and still getting Permission denied error occasionally: Traceback (most recent call last): File C:\web2py\gluon\main.py, line 412, in wsgibasesession._try_store_on_disk(request, response) File C:\web2py\gluon\globals.py, line 366, in

[web2py:30732] Re: autocomplete

2009-09-11 Thread Yarko Tymciurak
On Fri, Sep 11, 2009 at 1:11 AM, suiato homm...@gmail.com wrote: Hi Teru - Something better than cut/paste and very simple, if you use Firefox browser is this plugin: It's All Text https://addons.mozilla.org/ja/firefox/addon/4125 Hi Iceberg 2009/9/11 Iceberg iceb...@21cn.com: ...

[web2py:30733] Re: request.args parsing whitespaces

2009-09-11 Thread mdipierro
still gets repaced by _ On Sep 11, 9:52 am, Jonathan Lundell jlund...@pobox.com wrote: On Sep 11, 2009, at 1:16 AM, Richard wrote: I want to make my URLs pretty with /default/record/green apple instead of default/record/42. But the white spaces are being parsed so that request.args[0]

[web2py:30734] Re: yet another wiki with versioning and auth

2009-09-11 Thread mr.freeze
Much better. I like this code better than the previous wiki. Are you going to do a video? On Sep 11, 8:23 am, mdipierro mdipie...@cs.depaul.edu wrote: oops. I reposted it. make sure you delete databases/* before you try again. Massimo On Sep 11, 6:32 am, mr.freeze nat...@freezable.com

[web2py:30735] Re: yet another wiki with versioning and auth

2009-09-11 Thread mdipierro
I'd still prefer if you could do it but I could do it later today if they stop the drilling outside my office. On Sep 11, 10:11 am, mr.freeze nat...@freezable.com wrote: Much better. I like this code better than the previous wiki. Are you going to do a video? On Sep 11, 8:23 am, mdipierro

[web2py:30736] Re: new in trunk

2009-09-11 Thread Yarko Tymciurak
On Fri, Sep 11, 2009 at 1:42 AM, mdipierro mdipie...@cs.depaul.edu wrote: On Sep 11, 1:19 am, Richard richar...@gmail.com wrote: on delete cascade in SQLite Fantastic! My feature request for this can be closed: http://code.google.com/p/web2py/issues/detail?id=50 Can you do it or

[web2py:30737] Re: new in trunk

2009-09-11 Thread mdipierro
The new mechanism only kicks in if you have SQLITE and the references are set as ondelete='CASCADE' (the default). If you try to access a non sqlite database nothing changes If you try to access an existing sqlite database, then set oncascade='' and migrate=False. I cannot think of a situation

[web2py:30738] Re: how to let end user (not developer) define table on fly

2009-09-11 Thread Yarko Tymciurak
On Fri, Sep 11, 2009 at 4:03 AM, Fran francisb...@googlemail.com wrote: On Sep 11, 8:28 am, wf321 wf...@163.com wrote: I still not understand why table define in model/db.py only need define once, then all sub-sequence requests can access it without execute db.define_table at every

[web2py:30739] Problem with uploads

2009-09-11 Thread Aditya Desai
Hi all, I want to write a function to upload a file. Now I cannot use SQLForms for reasons that I am setting the values of the fields depending on my session type and session id. Now can anyone help as to how I can code the if part so that file upload will take place. Also I have tried with

[web2py:30742] Decimal Field Type

2009-09-11 Thread villas
I appreciate that this has been discussed before and, if I understand correctly, a 'decimal' field type is under consideration. As this is an essential feature, I wonder what the current status is? I believe that one reason for the delay is that Sqlite doesn't support decimals. However,

[web2py:30743] Can you help me with static files in webfaction?

2009-09-11 Thread drayco
Hi, Dr. Massimo: Can you help me please? This is my situation: I have a subdomain in webfaction with https. I can work with default applications of web2py. Even I can put data in a mysql database. All of that in with my subdomain in webfaction. However, when a I request

[web2py:30744] Re: Login in Javascript or Python

2009-09-11 Thread Markus
I am always curious how google builts its webapp. Now that we have GAE, we have an opportunity to build and scale good webapps. The logic, we still believe can remain in JS, and when the user performs an action like save, it is stored using python. This is the way we do it today in PHP. Just

[web2py:30745] Re: Login in Javascript or Python

2009-09-11 Thread Yarko Tymciurak
well, that sounds like you do all / most controller actions in the client, which is one of the main criticisms of PHP apps (they blur MVC boundaries). You can certainly do it that way, and it would be a migration path which would change the least - but you also have the opportunity for a next

[web2py:30746] Re: yet another wiki with versioning and auth

2009-09-11 Thread mr.freeze
I will try to make this today. I like this wiki better than the last as it is easier to explain what the code is doing. On Sep 11, 10:28 am, mdipierro mdipie...@cs.depaul.edu wrote: I'd still prefer if you could do it but I could do it later today if they stop the drilling outside my office.

[web2py:/] Explicit use of web2py html generation engine

2009-09-11 Thread V. K
I was looking to use the python shell to generate the final HTML that is rendered in a browser: Let me explain: Normally in web2py: the URL http://www.misite.com/app/default/index; maps to a python function and uses an appropriate view file to return HTML/XML/JSON... data. I wanted to use the

[web2py:30748] xmlrpc errors in 1.65.5

2009-09-11 Thread rb
I tried to upgrade once before but ran into problems. So I've stayed at 1.65.5. Today I upgraded to 1.66.2 and I'm getting the 500 INTERNAL SERVER error when I make a xmlrpc call. === Traceback (most recent call last): File D:\User1\Docs\Dev\rnapl\src\rnalaunch.py, line 200, in OnItemActivated

[web2py:30749] Using 'double' variable type in tables

2009-09-11 Thread b00m_chef
Hi, Is there any way to override the SQLForm default to require value to be not null for table fields set to 'double'? Thx --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups web2py-users group. To post to this group,

[web2py:30750] Re: xmlrpc errors in 1.65.5

2009-09-11 Thread rb
Ok, so I went back to 1.65.5 and everything just works. Eek! --- On Sep 11, 11:28 am, rb rbspg...@gmail.com wrote: I tried to upgrade once before but ran into problems. So I've stayed at 1.65.5. Today I upgraded to 1.66.2 and I'm getting the 500 INTERNAL SERVER error when I make a xmlrpc

[web2py:30752] Re: xmlrpc errors in 1.65.5

2009-09-11 Thread mdipierro
what os? how does the function look like? can anybody reproduce this? On Sep 11, 1:28 pm, rb rbspg...@gmail.com wrote: I tried to upgrade once before but ran into problems. So I've stayed at 1.65.5. Today I upgraded to 1.66.2 and I'm getting the 500 INTERNAL SERVER error when I make a xmlrpc

[web2py:30754] Re: file descriptors leak

2009-09-11 Thread zahariash
I've found similar leak... Using MemcacheClient like described here: http://web2py.com/AlterEgo/default/show/69 from gluon.contrib.memcache import MemcacheClient memcache_servers=['127.0.0.1:11211'] cache.mem=MemcacheClient(request,memcache_servers) is dangerous, because it opens one

[web2py:30755] Re: xmlrpc errors in 1.65.5

2009-09-11 Thread rb
The svr is running on Ubuntu 9.04 Linux. The client is WinXP. The client function is: tRows = self.svr.xrSelectTblInsts (self.frmName) and it maps to the svr function: @service.xmlrpc def xrSelectTblInsts( frmName, tblInstName=None): if tblInstName == None: rows =

[web2py:30756] select fields from a list

2009-09-11 Thread tvw
Hi, I am displaying a database table as a table in a page using jQuery dataTables - this is great but I also want to be able to select the database fields which are shown. I've put checkboxes below the table so that I will get returned a list of the fields I want to display. The problem is

[web2py:30757] web2py_path error in web2py/gluon/main.py

2009-09-11 Thread Arvind
Hello, I am calling the fcgihandler.py directly from the cherokee webserver. If i write a shell script which runs fcgihandler and put this shell script inside the web2py folder, then i have no errors. According to the cherokee users, the shell script is an extra layer and its best to invoke

[web2py:30758] Re: select fields from a list

2009-09-11 Thread mr.freeze
SQLTABLE(db(db.mytable.id0).select (db.mytable.myfield1,db.mytable.myfield2, etc...)) On Sep 11, 1:56 pm, tvw surftas...@gmail.com wrote: Hi,     I am displaying a database table as a table in a page using jQuery dataTables - this is great but I also want to be able to select the database

[web2py:30759] Re: select fields from a list

2009-09-11 Thread mdipierro
myfields = [db.myable.fieldname1, db.mytable.fieldsname2] SQLTABLE(db(db.mytable.id0).select(*myfields)) On Sep 11, 1:56 pm, tvw surftas...@gmail.com wrote: Hi, I am displaying a database table as a table in a page using jQuery dataTables - this is great but I also want to be able to

[web2py:30760] Re: file descriptors leak

2009-09-11 Thread mdipierro
Oops. sorry On Sep 11, 1:38 pm, zahariash karra...@gmail.com wrote: I've found similar leak... Using MemcacheClient like described here:http://web2py.com/AlterEgo/default/show/69 from gluon.contrib.memcache import MemcacheClient memcache_servers=['127.0.0.1:11211']

[web2py:30761] 404 error on fastcgi

2009-09-11 Thread Arvind
Hello, I find that for servers like lighttpd or cherokee, there is a line which handles the 404 error and passes it to the fcgihandler. Unless this is specified, web2py does not work. Can anybody please explain, why do we get this 404 error if the webserver speaks to the same unix socket to

[web2py:30762] Re: xmlrpc errors in 1.65.5

2009-09-11 Thread rb
!...@#$ FALSE ALARM There was a missing app file that the controller was failing to import. While looking around at the app folders I looked into the errors folder and read through the last file. This gave me the error. I find this repeatedly (about Python). Being a noobie, I find that python

[web2py:30753] Re: Using 'double' variable type in tables

2009-09-11 Thread mdipierro
requires=IS_NULL_OR(IS_FLOAT_IN_RANGE(-100,100)) On Sep 11, 1:28 pm, b00m_chef r...@devshell.org wrote: Hi, Is there any way to override the SQLForm default to require value to be not null for table fields set to 'double'? Thx --~--~-~--~~~---~--~~ You

[web2py:30764] Re: select fields from a list

2009-09-11 Thread tvw
wow - thanks - worked straight away - was just missing the * I get a list of fields from the checkboxes in request.vars.fields in the form mytable.myfield then I do this for field in fields: fields2.append(eval('db.' + field)) to get references to the gluon sql field objects to pass to

[web2py:/] Re: select fields from a list

2009-09-11 Thread mr.freeze
Sorry, didn't read close enough. On Sep 11, 2:03 pm, mdipierro mdipie...@cs.depaul.edu wrote: myfields = [db.myable.fieldname1, db.mytable.fieldsname2] SQLTABLE(db(db.mytable.id0).select(*myfields)) On Sep 11, 1:56 pm, tvw surftas...@gmail.com wrote: Hi,     I am displaying a database

[web2py:30765] Re: Explicit use of web2py html generation engine

2009-09-11 Thread V. K
I looked in the web2py source code. The closest function to what I am looking for is: serve_controller (in main.py). On Sep 11, 10:57 am, V. K veerb...@gmail.com wrote: I was looking to use the python shell to generate the final HTML that is rendered in a browser: Let me explain: Normally

[web2py:30766] crud.tables

2009-09-11 Thread Don
How can I modify the URL that crud.tables() generates in the form. --~--~-~--~~~---~--~~ 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:30767] Re: [web2py:/] Explicit use of web2py html generation engine

2009-09-11 Thread Jonathan Lundell
On Sep 11, 2009, at 10:57 AM, V. K wrote: I was looking to use the python shell to generate the final HTML that is rendered in a browser: Let me explain: Normally in web2py: the URL http://www.misite.com/app/default/index; maps to a python function and uses an appropriate view file to

[web2py:30768] Re: Explicit use of web2py html generation engine

2009-09-11 Thread V. K
Thanks for your response. That is a clean solution: 2 questions: - How to generate the document as a string I mean, by using the HTML generation (view + controller) engine in web2py? - How to execute a controller from python shell (not as web service)? On Sep 11, 12:54 pm, Jonathan

[web2py:30769] Re: Explicit use of web2py html generation engine

2009-09-11 Thread Jonathan Lundell
On Sep 11, 2009, at 1:09 PM, V. K wrote: Thanks for your response. That is a clean solution: 2 questions: - How to generate the document as a string I mean, by using the HTML generation (view + controller) engine in web2py? - How to execute a controller from python shell (not as web

[web2py:30770] Re: select fields from a list

2009-09-11 Thread mdipierro
for field in fields: fields2.append(db[field]) On Sep 11, 2:09 pm, tvw surftas...@gmail.com wrote: wow - thanks - worked straight away -  was just missing the * I get a list of fields from the checkboxes in request.vars.fields in the form mytable.myfield then I do this for field in

[web2py:30771] Re: crud.tables

2009-09-11 Thread mdipierro
not currently On Sep 11, 2:48 pm, Don sam...@gmail.com wrote: How can I modify the URL that crud.tables() generates in the form. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups web2py-users group. To post to this

[web2py:30772] advice for web2py wiki + LaTeX

2009-09-11 Thread Marco
Hello, I am a mathematician and not an experienced web programmer, but I thought web2py was cool (I only know some Python) I wonder if you could advise me: I would like to use web2py to make a kind of wiki (more like a blog where the students would have accounts and they would be allowed to

[web2py:30773] Re: advice for web2py wiki + LaTeX

2009-09-11 Thread mdipierro
Do you need to generate proper latex or would it be sufficient to be able to type latex in the wiki for formulas? On Sep 11, 3:43 pm, Marco marco.gualti...@gmail.com wrote: Hello, I am a mathematician and not an experienced web programmer, but I thought web2py was cool (I only know some

[web2py:30774] Re: yet another wiki with versioning and auth

2009-09-11 Thread Fred
I uploaded the w2p file as a new app, but how do you get it going? The default/index page assumes that at least one wiki page exists already. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups web2py-users group. To

[web2py:30775] Re: yet another wiki with versioning and auth

2009-09-11 Thread mr.freeze
This wiki requires running the latest version in trunk. Are you getting this error? AttributeError: 'Rows' object has no attribute 'first' On Sep 11, 4:11 pm, Fred fre...@gmail.com wrote: I uploaded the w2p file as a new app, but how do you get it going? The default/index page assumes that

[web2py:30776] Re: advice for web2py wiki + LaTeX

2009-09-11 Thread Marco
Ideally I would be able to have a running latexing of the whole course. So that means there would be some preamble information with all the macros, and then as I 'blogged' more of the notes into each wiki page, you would get a mini-chapter on each entry essentially. It seems like it would then

[web2py:30777] Re: yet another wiki with versioning and auth

2009-09-11 Thread Marco
Could you indicate what you would like to accomplish with T3? Is the current T3 webpage a good description? If so I could think about that and make some suggestions. I didn't realize you were developing a wiki on the same day that I am interested in one! Marco On Sep 11, 2:46 am, mdipierro

[web2py:30778] IS_EMAIL or IS_NULL

2009-09-11 Thread b00m_chef
Is there a way make sure a table field that has requires = IS_EMAIL doesn't prevent form from being submitted if the field is left blank? --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups web2py-users group. To post to

[web2py:30779] Re: advice for web2py wiki + LaTeX

2009-09-11 Thread Marco
Let me be a bit more precise: It would be useful if latex snippets in each wiki page could inherit macros and preamble information from the parent wiki page (perhaps this makes no sense) or you could specify new macros for that snippet (i.e. \newcommand) which would override anything which it

[web2py:30780] Re: IS_EMAIL or IS_NULL

2009-09-11 Thread mr.freeze
Try requires=IS_NULL_OR(IS_EMAIL()) On Sep 11, 4:59 pm, b00m_chef r...@devshell.org wrote: Is there a way make sure a table field that has requires = IS_EMAIL doesn't prevent form from being submitted if the field is left blank? --~--~-~--~~~---~--~~ You

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

2009-09-11 Thread Graham Dumpleton
On Sep 11, 11:51 pm, Timbo tfarr...@swgen.com wrote: According to the Performance section of their documentation, they recommend running one instance of Tornado per processor core on your server and then joining them together behind a nginx reverse proxy. Looking at the graph, this makes

[web2py:30782] Re: IS_EMAIL or IS_NULL

2009-09-11 Thread waTR
Yep, that did it. Thanks! On Sep 11, 3:17 pm, mr.freeze nat...@freezable.com wrote: Try requires=IS_NULL_OR(IS_EMAIL()) On Sep 11, 4:59 pm, b00m_chef r...@devshell.org wrote: Is there a way make sure a table field that has requires = IS_EMAIL doesn't prevent form from being submitted if

[web2py:30783] Re: new in trunk

2009-09-11 Thread mr.freeze
2) you can now do: row = db(db.mytable.id0).select().first() row = db(db.mytable.id0).select().last() and row is None if no records are selected. Here is a list of other functions that may be of interest (I borrowed these from .net extension methods). Some of these won't make sense for web2py

[web2py:30784] I am writing an app requiring user priviliges and need some ideas

2009-09-11 Thread waTR
I am just wondering if anyone out there has any good case-studies or articles that gave them a better understanding of how to organize user permissions and access controls. I am in process of writing an app that implements some extensive user permissions. I.e. be able to set permissions to view

[web2py:30786] Re: yet another wiki with versioning and auth

2009-09-11 Thread mdipierro
Yes it will be similar to the current T3 but based on the new web2py API On Sep 11, 4:52 pm, Marco marco.gualti...@gmail.com wrote: Could you indicate what you would like to accomplish with T3? Is the current T3 webpage a good description?  If so I could think about that and make some

[web2py:30787] Re: new in trunk

2009-09-11 Thread mdipierro
The point of the DAL i generate SQL so that queries are executed by the database. Are you saying that those operations should be executed by web2py instead on the returned items? Why? On Sep 11, 7:06 pm, mr.freeze nat...@freezable.com wrote: 2) you can now do: row =

[web2py:30788] Re: advice for web2py wiki + LaTeX

2009-09-11 Thread mdipierro
I think this is very ambitious and I would not know how to do it. I like this for simple things: http://math.etsu.edu/LaTeXMathML/ Massimo On Sep 11, 5:03 pm, Marco marco.gualti...@gmail.com wrote: Let me be a bit more precise: It would be useful if latex snippets in each wiki page could

[web2py:30789] Re: advice for web2py wiki + LaTeX

2009-09-11 Thread weheh
I'm not sure I see why this would be terribly difficult to implement with web2py. Of course, it would be more than just a generic wiki ... You would probably need separate special entries for preamble snippets. I'm not a latex user (I used to be an nroff/troff expert), but I imagine certain order

[web2py:30790] Re: I am writing an app requiring user priviliges and need some ideas

2009-09-11 Thread weheh
Have you read the latest doc v2? I thought it explained the permissions aspect of auth and crud pretty well. Then again, I haven't used it extensively yet. But I'm about to and I feel the doc was clear enough. On Sep 11, 9:38 pm, waTR r...@devshell.org wrote: I am just wondering if anyone out

[web2py:30791] Generic comment or rating code

2009-09-11 Thread Bottiger
How would you go about making a generic comment or rating logic for any model? Say you have a bunch of models in different tables like this: Websites Plugins Links etc... How would you make a generic rating or commenting logic that could apply to websites/plugins/links or whatever other models

[web2py:30793] Re: file descriptors leak

2009-09-11 Thread mdipierro
I think we need a different solution. Something like replace class MemcacheClient(Client): ... in gluon/contrib/memcache/__init__.py with def MemcacheClient(*a,**b): ### implement some kind of thread pool return __MemcacheClient(*a,**b) class __MemcacheClient(Client): ... what do

[web2py:30794] Re: xmlrpc errors in 1.65.5

2009-09-11 Thread mdipierro
I do not know. Can you post some code to reproduce it? On Sep 11, 2:07 pm, rb rbspg...@gmail.com wrote: !...@#$ FALSE ALARM There was a missing app file that the controller was failing to import. While looking around at the app folders I looked into the errors folder and read through the

[web2py:30795] Are images automatically deleted?

2009-09-11 Thread Jason Brower
When a table is using an image/file in ones of it's rows. If you delete the row, shouldn't the image delete as well, or do I need to delete it. Regards, Jason Brower --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups

[web2py:30796] Re: Are images automatically deleted?

2009-09-11 Thread mdipierro
Field('name','upload',autodelete=True) On Sep 11, 10:31 pm, Jason Brower encomp...@gmail.com wrote: When a table is using an image/file in ones of it's rows.  If you delete the row, shouldn't the image delete as well, or do I need to delete it. Regards, Jason Brower

[web2py:30799] Re: autocomplete

2009-09-11 Thread suiato
Thanks, Yarko - I added the plugin to Firefox, set Ulipad.py as its editor, and it worked! Cool. My daydreaming wasn't in vain ;-) Good to have freedom to choose any editor to edit editable textarea on the browser. This might have a deeper impact than its simplistic look in editing and

[web2py:30800] Re: new in trunk

2009-09-11 Thread mr.freeze
No, these would be a chainable set of helper functions that act on a Rows object (just like the new first and last functions). Most of them would take functions or lambdas as arguments that return boolean values. They could be used to do complex calculations. Here are a couple mock command: