[web2py:14278] Re: sqlrow to json again

2008-12-29 Thread Timothy Farrell
:22 am, Timothy Farrell tfarr...@swgen.com wrote: Yes, but before I do that, I want to clarify something. My first implementation results in a JSON list of objects like so (roughly):[ {field1:'field1val',field2:'field2val'}, {field1:'field1val',field2:'field2val'} ] Your

[web2py:14107] Re: reportlab in web2py?

2008-12-24 Thread Timothy Farrell
mdipierro wrote: is it possible to call easy_install programmatically? Can anybody point me to an example? Massimo On Dec 23, 4:21pm, Timothy Farrell tfarr...@swgen.com wrote: easy_install reportlab dang, that's easy! ;-) mr.freeze wrote:It would be nice to have a feature system

[web2py:14089] Re: reportlab in web2py?

2008-12-23 Thread Timothy Farrell
lternative such as the openoffice APIs it requires creating a site-package folder and add it the path Comments? Massimo -- Timothy Farrell tfarr...@swgen.com Computer Guy Statewide General Insurance Agency (www.swgen.com) --~--~-~--~~~---~--~~ You received th

[web2py:14092] Re: reportlab in web2py?

2008-12-23 Thread Timothy Farrell
? Massimo -- Timothy Farrell tfarr...@swgen.com Computer Guy Statewide General Insurance Agency (www.swgen.com) --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups web2py Web Framework group. To post

[web2py:13864] Re: Performance question

2008-12-19 Thread Timothy Farrell
).update(**dict([(destination_field, i)])) db.commit() (this is an example only, of course condition db.details.id==i is dumb). -- Timothy Farrell tfarr...@swgen.com Computer Guy Statewide General Insurance Agency (www.swgen.com) --~--~-~--~~~---~--~~ You

[web2py:13868] Re: I am new to Web2py and have some questions and suggestions

2008-12-19 Thread Timothy Farrell
eparate directory and importer for plugins. This way you could also show them in a different list than the applications. It would also be great if a plugin could include some documentation that can be seen through its design page. Anyways, thanks for a great framework. -- Timothy Farrell t

[web2py:13887] Re: Edit multiple records at once

2008-12-19 Thread Timothy Farrell
that. But I just want to say, whatever trick you choose, do not try to use more than one form in one page. I tried but did not work, probably due to some builtin form id checking function to avoid multi-submit. -- Timothy Farrell tfarr...@swgen.com Computer Guy Statewide General Insurance Agency

[web2py:13888] Re: accepting space charaters as %20 on request.args

2008-12-19 Thread Timothy Farrell
wrote: How can i accept spaces in a form of %20 in url? domain.com/app/default/index/my%20space%20word at the moment i get invalid request from web2py -Marko -- Timothy Farrell tfarr...@swgen.com Computer Guy Statewide General Insurance Agency (www.swgen.com

[web2py:13898] Re: Edit multiple records at once

2008-12-19 Thread Timothy Farrell
into it too much) I've read yui grids are among the best layout options out there too... On Fri, Dec 19, 2008 at 12:42 PM, Timothy Farrell tfarr...@swgen.com wrote: If you're open to using a different _javascript_ framework...take a look at this: http://www.satyam.com.ar

[web2py:13809] Re: jquery tips

2008-12-18 Thread Timothy Farrell
...@cs.depaul.edu wrote: http://www.tvidesign.co.uk/blog/improve-your-jquery-25-excellent-tips... -- Timothy Farrell tfarr...@swgen.com Computer Guy Statewide General Insurance Agency (www.swgen.com

[web2py:13642] Re: Indices/constraints and the DAL

2008-12-16 Thread Timothy Farrell
which has records in many tables. I'd love a DAL-way of doing this without manually having to list each of the tables which may contain an associated record. (Since there's a large number of tables which could have such a record) I'm not sure what would be required to allow this? F -- Timothy

[web2py:13653] Re: Indices/constraints and the DAL

2008-12-16 Thread Timothy Farrell
validator. On Dec 16, 2:59pm, Timothy Farrell tfarr...@swgen.com wrote: In the thread on validating multiple fields, I was trying to use validators to get around the problem of lack of complex primary key support. The better solution is to have true complex primary key support rather than a

[web2py:13643] Re: Indices/constraints and the DAL

2008-12-16 Thread Timothy Farrell
ost to propose adding multi- column unique constraints to the DAL but I'd be interested to read other people's views. -- Timothy Farrell tfarr...@swgen.com Computer Guy Statewide General Insurance Agency (www.swgen.com) --~--~-~--~~~---~--~~ You received this mess

[web2py:13650] Re: Indices/constraints and the DAL

2008-12-16 Thread Timothy Farrell
6, 9:19 am, Timothy Farrell tfarr...@swgen.com wrote: Bill, I'm with you. Complex Primary keys is tops on my wishlist right now. Part of the reason I wanted a web2py wiki so much is so we could do stuff like this in PEP style. For those unfamiliar with PEPs:http://www.python.org/dev/pep

[web2py:13679] Re: WSGI MySQL Error/Bug

2008-12-16 Thread Timothy Farrell
/95614/ any ideas? Many thanks -- Timothy Farrell tfarr...@swgen.com Computer Guy Statewide General Insurance Agency (www.swgen.com) --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups web2py Web Framework group

[web2py:13459] Re: New Genshi4web2py.py

2008-12-12 Thread Timothy Farrell
. -- Timothy Farrell tfarr...@swgen.com Computer Guy Statewide General Insurance Agency (www.swgen.com) --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups web2py Web Framework group. To post to this group, send email to web2py

[web2py:13464] Validate multiple fields

2008-12-12 Thread Timothy Farrell
key. Thanks, tim -- Timothy Farrell tfarr...@swgen.com Computer Guy Statewide General Insurance Agency (www.swgen.com) --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups web2py Web Framework group. To post to this group

[web2py:13491] Re: Validate multiple fields

2008-12-12 Thread Timothy Farrell
.swgen.com) -- Timothy Farrell tfarr...@swgen.com Computer Guy Statewide General Insurance Agency (www.swgen.com) --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups web2py Web Framework group. To post to this group, send email

[web2py:13495] Re: warning

2008-12-12 Thread Timothy Farrell
Oh man, you put up a public wiki and now you're gonna be gone for a couple of days?!?!?! PARTY ON THE WIKI! mdipierro wrote: I may not be able to answer emails in the next couple of days. Massimo -- Timothy Farrell tfarr...@swgen.com Computer Guy Statewide General

[web2py:13503] Re: Validate multiple fields

2008-12-12 Thread Timothy Farrell
from requests.vars in a form that I can put in a application-wide validator. -tim mdipierro wrote: I do not understand. Where is your input from? Massimo On Dec 12, 2:42 pm, Timothy Farrell tfarr...@swgen.com wrote: Yes, that would work if I used normal HTML forms (and I think

[web2py:13336] Re: grr, i do not understand css

2008-12-11 Thread Timothy Farrell
. Any idea? Massimo -- Timothy Farrell [EMAIL PROTECTED] Computer Guy Statewide General Insurance Agency (www.swgen.com) --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Goo

[web2py:13181] Re: start web2py as windows service

2008-12-09 Thread Timothy Farrell
started web2py.py (I think it contains the md5 password for administrator) The option.py was created by me renaming options_std.py because I want to test it, I don't chang anything in the option.py file. Now is ok if it work fine on port 8000 in localhost Cristian 2008/12/9 Timothy Farrell

[web2py:13184] Re: start web2py as windows service

2008-12-09 Thread Timothy Farrell
I don't know where I can find it) 2008/12/9 Timothy Farrell [EMAIL PROTECTED] Is the port specified in options.py port 80 or 8000? If it's 80, you'll need to rename parameters_8000.py to parameters_80.py. -tim Cristian Re wrote: Yes, starting it

[web2py:13188] Re: start web2py as windows service

2008-12-09 Thread Timothy Farrell
That's cool. Hope you enjoy web2py. -tim Cristian Re wrote: sorry sorry sorry, I checked event viewer some minutes ago and I was writing you that was my fault. I continued to write a wrong name of the file options Thanks a lot! 2008/12/9 Timothy Farrell [EMAIL

[web2py:13192] Re: start web2py as windows service

2008-12-09 Thread Timothy Farrell
respond immediatly. It's correct? timeout - ? shutdown_timeout - ? (shutdown the service when there isn't activity for more than xxx seconds/milliseconds?) 2008/12/9 Timothy Farrell [EMAIL PROTECTED] That's cool. Hope you enjoy web2py. -tim Cristian Re wrote: sorry

[web2py:13145] Re: web2py 1.53.1 is OUT

2008-12-08 Thread Timothy Farrell
(with Denes improvements) is in: db(db.table.id0).update(field=db.table.field[2:4]) and a couple of minor bug fixes. Massimo -- Timothy Farrell [EMAIL PROTECTED] Computer Guy Statewide General Insurance Agency (www.swgen.com) --~--~-~--~~~---~--~~ You received

[web2py:12913] Re: upload a folder

2008-12-04 Thread Timothy Farrell
library to do it). Massimo On Dec 4, 1:04 am, somebody [EMAIL PROTECTED] wrote: can I upload a folder / copy a whole folder to another directory?? -- Timothy Farrell [EMAIL PROTECTED] Computer Guy Statewide General Insurance Agency (www.swgen.com

[web2py:12863] Re: new in trunk DAL unittest

2008-12-03 Thread Timothy Farrell
. How do you do it? Thanks, - tim Timothy Farrell wrote: Oh snap! I've gotta go make a launchpad branch and merge my changes in. I have already started something for this but fortunately our efforts don't overlap much. -tim mdipierro wrote: gluon/tests/test_dal.py the test does

[web2py:12870] Re: new in trunk DAL unittest

2008-12-03 Thread Timothy Farrell
question. I open a python shell and import the tests. Massimo On Dec 3, 8:25am, Timothy Farrell [EMAIL PROTECTED] wrote: Massimo, When you run unittests, which directory do you run them from. I typically run mine from the test directory, but i have a built-in path mechanism to be able

[web2py:12874] Re: new in trunk DAL unittest

2008-12-03 Thread Timothy Farrell
The branch (dal-testing-additions) is committed and I've proposed a merge into devel. -tim mdipierro wrote: ok, thanks. On Dec 3, 9:21am, Timothy Farrell [EMAIL PROTECTED] wrote: I do it like this: import sys import os sys.path.append(os.path.realpath('../')) import unittest

[web2py:12880] Re: [web2py:/] Re: new in trunk DAL unittest

2008-12-03 Thread Timothy Farrell
think about it? Massimo On Dec 3, 9:53 am, Timothy Farrell [EMAIL PROTECTED] wrote: The branch (dal-testing-additions) is committed and I've proposed a merge into devel. -tim mdipierro wrote:ok, thanks. On Dec 3, 9:21 am, Timothy Farrell[EMAIL PROTECTED]wrote:I do it like this: import

[web2py:12800] Re: New Genshi4web2py.py

2008-12-02 Thread Timothy Farrell
pocoo.org/show/93469/ On Dec 1, 11:23am, Timothy Farrell [EMAIL PROTECTED] wrote: Also note that your Genshi templates (views) must be valid XML. If they aren't Genshi will raise an exception. There's a URL in

[web2py:12812] Re: New Genshi4web2py.py

2008-12-02 Thread Timothy Farrell
eas? Many thanks On Dec 2, 5:48am, Timothy Farrell [EMAIL PROTECTED] wrote: Make sure that you're included file is also a proper XML file with the appropriate namespaces. The official method is explained here:http://genshi.edgewall.org/wiki/GenshiTutorial#AddingaLayoutTemplate Let me know if

[web2py:12723] Re: web2py book in PDF at $12.50

2008-12-01 Thread Timothy Farrell
the book, but I feel the printer crop marks are really annoying. Is there any way to remove them? -- $ echo "kpfmAdpoofdufevq/dp/vl" | perl -pe 's/(.)/chr(ord($1)-1)/ge' -- Timothy Farrell [EMAIL PROTECTED] Computer Guy Statewide General Insurance Agency (www

[web2py:12726] New Genshi4web2py.py

2008-12-01 Thread Timothy Farrell
in a configurable manner. It should be backward compatible with the old version. Let me know if you run into anything. -- Timothy Farrell [EMAIL PROTECTED] Computer Guy Statewide General Insurance Agency (www.swgen.com) --~--~-~--~~~---~--~~ You received

[web2py:12740] Re: New Genshi4web2py.py

2008-12-01 Thread Timothy Farrell
Also note that your Genshi templates (views) must be valid XML. If they aren't Genshi will raise an exception. There's a URL in the PDF of Genshi's Documentation website. It's ok, but could use some attention. Feel free to ask me questions. -tim Timothy Farrell wrote: The article

[web2py:12154] Re: web2py book in PDF at $12.50

2008-11-19 Thread Timothy Farrell
Processos do SISEMA Secretaria de Estado de Meio Ambiente e Desenvolvimento Sustentável -- Timothy Farrell [EMAIL PROTECTED] Computer Guy Statewide General Insurance Agency (www.swgen.com) --~--~-~--~~~---~--~~ You received this message because you

[web2py:12155] Re: web2py book in PDF at $12.50

2008-11-19 Thread Timothy Farrell
The manual is an excellent resource!  Thank you Massimo! Timothy Farrell wrote: Oh snap! /me runs out to the car to get his credit card. Alexandre Miguel de Andrade Souza wrote: I buy it too. So easy! 2008/11/18 mdipierro [EMAIL PROTECTED] http

[web2py:12174] Re: currency format

2008-11-19 Thread Timothy Farrell
en','ascii'))}} {{='$' + locale.format('%.2f',total,True)}} is there a better way to do this in a file.html file? thx, -wj -- Timothy Farrell [EMAIL PROTECTED] Computer Guy Statewide General Insurance Agency (www.swgen.com) --~--~-~--~~~---~--~~ Yo

[web2py:12020] Re: where to put view logic

2008-11-17 Thread Timothy Farrell
hen do respons.total += db.scholarship_amount. And then in my form do: output You are eligible for these scholarships: {{=response.schols}} You could receive as much as ${{response.total}} for the school year. /output Is this correct? thx, -wj -- Timothy Farrell [EMAIL PROTECTED] Computer Guy Statewi

[web2py:11824] Re: Install web2py to RH4 Linux problem

2008-11-14 Thread Timothy Farrell
. Is there an RPM to install SQLite 3 on a RH4 (x86) machine to cure this problem?? -- Timothy Farrell [EMAIL PROTECTED] Computer Guy Statewide General Insurance Agency (www.swgen.com) --~--~-~--~~~---~--~~ You received this message because you are subscribed

[web2py:11778] Re: Patch Proposal - Custom Exception Handling

2008-11-13 Thread Timothy Farrell
Actually, the example that Massimo mentioned also includes a description of how it works. -tim mdipierro wrote: Not yet since this as introduced by Tim in 1.48. You can find an example in routes.examples.py in the source distribution. Massimo On Nov 13, 5:07 am, Jonathan Benn [EMAIL

[web2py:11796] Re: Upload Files , Multipart form data

2008-11-13 Thread Timothy Farrell
c': "", 'file': torrent_file, 'type': type, 'subgenre' : subgenre } uldata =urllib.urlencode(data) req = urllib2.Request(upload_url,uldata) resp = urllib2.urlopen(req) result = resp.read() print result

[web2py:11801] Re: Upload Files , Multipart form data

2008-11-13 Thread Timothy Farrell
I know, but it's not near so easy to install. 3 apt-get 3 Phyo Arkar wrote: curl have win32 too :D On Thu, Nov 13, 2008 at 9:28 PM, Timothy Farrell [EMAIL PROTECTED] wrote: /timbo pulls out his stick of non-portable code and beats Phyo with it. Phyo Arkar wrote

[web2py:11731] Re: web2py 1.49.1

2008-11-12 Thread Timothy Farrell
My bad. Per revision 190, see revision 165, the message that you replaced it with is not quite what it was (small consequence). Wouldn't it be more flexible to make a custom error message in rewrite? Like so: error_message_custom = "htmlbodyh1Invalidrequest/h1%s/body/html" That way we

[web2py:11756] Re: Patch Proposal - Custom Exception Handling

2008-11-12 Thread Timothy Farrell
Sorry, our email server has been down for a few hours. Yup, that's exactly what I used it for on my end. -tim Mark Larsen wrote: Duh! It looks like his routes_onerror would do everything I need. My customexception.py just becomes a controller method. Thanks Tim Massimo. On Nov 12,

[web2py:11683] Re: Proposal: MVC separation - son of custom views

2008-11-11 Thread Timothy Farrell
It's amazing how critical that ".co.uk" is. http://www.wellbehavedsystems.co.uk/web2py/examples/mvc.html billf wrote: Wes The home page is a do-nothing page. The doc can be found at http://www.wellbehavedsystems/web2py/examples/mvc.html On Nov 11, 7:21pm, "Wes James" [EMAIL

[web2py:11569] Re: routes

2008-11-10 Thread Timothy Farrell
In short, no. What you can do is configure the route for the profile controller first: routes_in=( ('/profile/(?Pstuff.*)', '/profile/\gstuff'), ) And after that you can put the on in for main: routes_in=( ('/profile/(?Pstuff.*)', '/init/profile/\gstuff'), ('/(?Pstuff.*)',

[web2py:11364] Re: in trunk, please test on windows

2008-11-07 Thread Timothy Farrell
Note https://code.launchpad.net/~tfarrell-swgen/web2py/error-routing revision 158. mdipierro wrote: yes please else we run into trouble. On Nov 7, 7:50 am, Timothy Farrell [EMAIL PROTECTED] wrote: Unfortunately, IE (still) doesn't display the HTML unless an status 200

[web2py:11397] Re: Who posted web2py on github?

2008-11-07 Thread Timothy Farrell
Oops, nor Yarko, Phyo. mdipierro wrote: This was not a complaint. There was a proper acknowledgment. I just would like to start a discussion whether this is a good idea or not. It may confuse people who look for the official repository. On the other side it gives more visibility. Massimo

[web2py:11401] Re: web2py in Taskbar (System Tray) - now without wx bloat

2008-11-07 Thread Timothy Farrell
I'm interested, you can send it to me off-list if you like. -tim Mark Larsen wrote: Based on Tim Farrell's advice in a previous discussion, I've recoded my system tray stuff using pyWin32 libraries (Mark Hammond had an excellent example). While this means it'll only work on windows it

[web2py:11416] Re: web2py in Taskbar (System Tray) - now without wx bloat

2008-11-07 Thread Timothy Farrell
My experience with this was generally positive, but it has one rough edge: The option to restart the server is somewhat of a misnomer. People restart Apache to get it to re-read it's configuration or to reclaim some leaked memory. In the case of web2py, one might restart web2py to get it to

[web2py:11275] Re: T2, Web2py Core? Specs finalized?

2008-11-06 Thread Timothy Farrell
voltron, You are not alone in your thinking. T2 looks like it is designed as a framework to build a social networking site or a better CMS than KPAX. I'm taking the approach that there are two categories of features in T2, those that would be better off in web2py core (error-handling,

[web2py:11285] Re: reports generating

2008-11-06 Thread Timothy Farrell
Pmate, There is no "perfect" report generation tool. ReportLabs is your best option for today. I use Pisa (which is built on top of ReportLabs) for my reports. Pisa basically converts a webpage into a report. (note that the rendering quality is not what you would expect from Firefox or IE,

[web2py:11094] Re: irc channel for web2py?

2008-11-04 Thread Timothy Farrell
For me, it's more work-friendly to use email. IRC is just too attention consuming. Phyo Arkar wrote: We are usually active here on this mailing list and it is preferable way to communicate. On Tue, Nov 4, 2008 at 3:55 PM, Wes James [EMAIL PROTECTED] wrote: I connected to

[web2py:11109] Re: how to code python based on field types

2008-11-04 Thread Timothy Farrell
I would start out making the values static (as part of your view). As you get annoyed with editing them, put them in a database or make them autogenerate. In any case, make sure your code is in version control so you have a record of what values where there at what time for auditing purposes.

[web2py:11125] Re: About patches

2008-11-04 Thread Timothy Farrell
I understand your need for patch organization. However, I cannot seem to do this. I'm getting the 'Don't know how to handle SSH connections' error. I've googled and tinkered but this seems to be beyond my computer (lots of people have had trouble with bzr on windows). Would it be acceptable to

[web2py:10999] Error Handling Reloaded

2008-11-03 Thread Timothy Farrell
Back to the ever-present issue of (better) error-handling. This time, I've got code! Anyway, to catch you guys up, we last left this at Massimo liking the idea of using @onerror decorators (http://mdp.cti.depaul.edu/AlterEgo/default/show/75) to trap errors. His reasoning is his own, but I

[web2py:11004] Re: Error Handling Reloaded

2008-11-03 Thread Timothy Farrell
. Internally you can convert it to dict with dict(list). Can you do it? Massimo On Nov 3, 9:48 am, Timothy Farrell [EMAIL PROTECTED] wrote: Back to the ever-present issue of (better) error-handling. This time, I've got code! Anyway, to catch you guys up, we last left this at Massimo

[web2py:11011] Re: Error Handling Reloaded

2008-11-03 Thread Timothy Farrell
/*' and '*/*'. Also this should be a list for uniformity with routes_in and routes_out. Internally you can convert it to dict with dict(list). Can you do it? Massimo On Nov 3, 9:48 am, Timothy Farrell [EMAIL PROTECTED] wrote: Back to the ever-present issue of (better) error-handling

[web2py:10873] Re: web2py book finally online in PDF

2008-10-31 Thread Timothy Farrell
Just a cursory look at the code shows that web2py will not (yet) work in Python 3. It will need to be run through the py2to3 tool and then it will have to be a separate codebase since some basic operations (like print formatting) don't work the same way in Python 3. Basically saying, the

[web2py:10898] Re: Integration with Appcelerator

2008-10-31 Thread Timothy Farrell
2) I can attest to it's rock solid stability on Windows. mdipierro wrote: answers for web2py: 1) fast website development times - yes but use T2 2) steady runtime - rock solid on linux and mac. I never reboot mine except of upgrades. I get 1 requests/day. 3) good DB support = db

[web2py:10833] Re: Integration with Appcelerator

2008-10-30 Thread Timothy Farrell
See my comments below... noobpythoncoder wrote: snip / I Iike the tight MVC paradigm, security, and other good practices built into web2py, but sometimes I wish there was a way to more quickly prototype the front-end, eg test the functionality of SQLFORMS in different views from a user

[web2py:10836] Re: Integration with Appcelerator

2008-10-30 Thread Timothy Farrell
I'm laughing! achipa wrote: (this is the place where genshi/kid/django/etc people laugh their bottoms off) --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups web2py Web Framework group. To post to this group, send

[web2py:10845] Re: Exception on gluon.sql.SQLStorage.update_record with pyodbc and freetds

2008-10-30 Thread Timothy Farrell
What's happening is some database modules are not good Python citizens. By this, I mean that they raise exceptions that don't inherit from Python's Exception class. web2py only catches Exceptions. In the event of an non-Exception exception web2py's behavior is undefined. I built a wrapper

[web2py:10849] Re: Exception on gluon.sql.SQLStorage.update_record with pyodbc and freetds

2008-10-30 Thread Timothy Farrell
Well, didn't I jump the gun. [EMAIL PROTECTED] wrote: Massimo, Oh, damn, nevermind, I screwed that all up. The error was actually in my preceding delete call not the update_record and it was my screw up. Sorry. New question though: is there anyway to delete directly (or more directoy)

[web2py:10786] Re: Web2py Appliance and OS Thread!

2008-10-29 Thread Timothy Farrell
the live cd? On Oct 28, 3:28 pm, Timothy Farrell [EMAIL PROTECTED] wrote: I just said live CD because that's what came to mind, go OS first. =) Phyo Arkar wrote: AH! Uncyclopedia! Entertains me.! So which first? Live CD or OS

[web2py:10701] Re: back to web2py

2008-10-28 Thread Timothy Farrell
carlo wrote: snip / Did you look into gluon.sqlhtml.form_factory() which is described in the book? mmh..which book please? THE web2py book: http://www.amazon.com/Web2Py-Manual-DiPierro/dp/0470432322 even though you can get a DRMed eBook of it here:

[web2py:10703] Re: Can I run code at start of server or application?

2008-10-28 Thread Timothy Farrell
To attempt to answer your original questions: 1) There is no such thing. 2) There is no such thing. But to be more helpful...Java, in general, has a very sluggish startup time. It is famous for it. In web2py, the Python interpreter is already started so there is no need to Preload a web2py

[web2py:10704] Re: Cron jobs revisited

2008-10-28 Thread Timothy Farrell
instead of importing them, try executing them: from glob import glob for model in glob('applications/test/models/*.py'): exec(open(model, 'rb').read()) voltron wrote: Is there anybody that has coded a script that access a web2py application and uses the form from the commandline? I just

[web2py:10706] Re: back to web2py

2008-10-28 Thread Timothy Farrell
Carlo, I haven't eaten the T2 candy yet either. Been there, done that. I'd encourage you not to submit to a different function. It's tempting for me because it makes for smaller functions, but I learned the hard way that this is not the way to go. I started out with my login form that

[web2py:10751] Re: Web2py Appliance and OS Thread!

2008-10-28 Thread Timothy Farrell
I just said live CD because that's what came to mind, go OS first. =) Phyo Arkar wrote: AH! Uncyclopedia! Entertains me.! So which first? Live CD or OS ? On Tue, Oct 28, 2008 at 8:21 PM, Timothy Farrell [EMAIL PROTECTED] mailto:[EMAIL PROTECTED] wrote: That's the funniest thing I've

[web2py:10754] Re: URL validation problem (RFC?)

2008-10-28 Thread Timothy Farrell
url into a GET variable? On Oct 28, 3:19 pm, Timothy Farrell [EMAIL PROTECTED] wrote: Here's the deal. Currently apache does serve these files directly, but that is part of the problem (security). We have some old PDF code that generates reports and slaps them in a network folder. Due

[web2py:10550] Re: How to implement RESTful requests? A proposal

2008-10-23 Thread Timothy Farrell
I like this a lot. If Massimo agrees this could be the official recommendation for CRUD operations via a RESTful URL interface. Such concepts would have been helpful for me whenever I started into web development since it would show me how to look at data manipulation. Thanks for your effort

[web2py:10552] Re: joining three tables.

2008-10-23 Thread Timothy Farrell
I can't comment for the rest of stuff, but the last zero means to return the first item in the list. The select() call returns an SQLSet instance (which is an iterateable(sp?) type). The [0] grabs the first SQLRow out of that set. -tim annet wrote: I have rebuilt the function from scratch:

[web2py:10559] Re: joining three tables.

2008-10-23 Thread Timothy Farrell
That's fine, I (obviously) didn't look at the code. =) DenesL wrote: On Oct 23, 9:45 am, Timothy Farrell [EMAIL PROTECTED] wrote: The select() call returns an SQLSet instance (which is an iterateable(sp?) type). Tim, sorry to nitpick here but actually select() is a method

[web2py:10490] Re: web2py on an iPhone?

2008-10-20 Thread Timothy Farrell
Your question is somewhat ambiguous. Do you want to run web2py on the iPhone or are you wondering if pages made in web2py will view correctly on the iPhone? According to Gizmodo, Python runs on the iPhone. If there is sufficient threading and socket support then, Yes, you can serve webpages

[web2py:10493] Re: Testing in web2py

2008-10-20 Thread Timothy Farrell
application logic (e.g. setting the status of the website to down for maintenance then verifying that no users can access the site via login or otherwise) ? On Oct 17, 10:25 am, Timothy Farrell [EMAIL PROTECTED] wrote: Massimo, I implied in my previous post, that I don't

[web2py:10371] Re: Python Related Question- string's replace function

2008-10-17 Thread Timothy Farrell
to be documented.. Regards, Phyo. On Fri, Oct 17, 2008 at 3:02 PM, Timothy Farrell [EMAIL PROTECTED] mailto:[EMAIL PROTECTED] wrote: Regular Expressions would probably be more robust...but doing such a large replace seems odd to me. If it were my code I would look for a way around

[web2py:10319] Re: mootools vs jquery , what you choose?

2008-10-16 Thread Timothy Farrell
voice style=fanboy It's well documented on this list that I use and advocate YUI. If you haven't considered it, at least give it a look. The most important thing to consider about YUI is it's aim. Many JS toolkits aim to make a better, faster Web 2.0 website. YUI's focus is to provide a web

[web2py:10266] Re: Database sharing

2008-10-15 Thread Timothy Farrell
Tommy, It depends on the database you are using. All databases (that I know of) take multiple access into account, so you shouldn't worry about concurrency until you have a website with more than one request per second. With your python app, you can use the normal database driver to access

[web2py:10268] Re: 1.45 - 1.46 and GAE

2008-10-15 Thread Timothy Farrell
Keep in mind that selecting based on like can be a resource-intensive process for large tables (you have to examine every record rather than look at an index). They probably left it out until they saw what kind of load they would be dealing with on GAE. Plus, Google uses a distributed file

[web2py:10225] Re: Python 2.6 anyone?

2008-10-14 Thread Timothy Farrell
I tried it last week, but found out that reportlabs hadn't come out for 2.6 yet (it has now, but I'm in other things) and since I use that, I couldn't invest much time in making 2.6 work. The windows service doesn't yet work. The widget works out of the box for me, although it comes up with

[web2py:10227] Re: Python 2.6 anyone?

2008-10-14 Thread Timothy Farrell
from 2.5, that can lead to weird problems. [EMAIL PROTECTED] wrote: Dear Tim; Thanks! I am wondering , as i started with 2.5 of python. If i copy site-packages of 2.5 over 2.6 , will there work without problem ? or need to recompile ? On 10/14/08, Timothy Farrell [EMAIL PROTECTED] wrote

[web2py:10235] Re: Views and modules

2008-10-14 Thread Timothy Farrell
You could use reload, but that's going away in Python3 and considered bad practice (though I'm not sure why). mdipierro wrote: when in development you can use reload(modulename) then comment it in production for speed. Massimo On Oct 14, 3:01 pm, José Deodoro de Oliveira Filho

[web2py:9980] Re: Customizing forms

2008-10-08 Thread Timothy Farrell
Bill, I crossed this bridge a few weeks ago. I, like you, don't dig the whole presentation logic in the controller. However, it is still reasonable to build a form in the controller for logical data-handling purposes. Here's what I did: # Build our form form=FORM(INPUT(_type=text,

[web2py:9981] Re: Customizing forms

2008-10-08 Thread Timothy Farrell
succeeded, continue except formencode.Invalid, e: # Validation failed, see messages in e message = e.message Bummer (for FormEncode) that form.accepts is so much cleaner than the FormEncode version. Maybe I'll wrap it into a nice pretty package. -tim Timothy Farrell wrote: Bill, I

<    1   2   3