[web2py:28868] Re: web2py in events/meetings

2009-08-18 Thread Richard
Are you making something like djangopeople.net where we can upload our contact details and location? I get emails every few months from people who saw my profile on djangopeople.net asking if I am available to work, so it is very effective. Richard On Aug 18, 6:45 am, Bottiger wrote: > I

[web2py:28910] Re: web2py 1.66.0 is out

2009-08-18 Thread Richard
> Do I also need to do that if everything is running fine? no, but new versions have bug fixes and new features. And they are backwards compatible so it shouldn't break anything. I upgraded a web2py application developed a year back and it still worked. On Aug 17, 9:04 pm, Pynthon Pynthon wrote

[web2py:28911] Re: Can changes in modules reload automatically?

2009-08-18 Thread Richard
an alternative solution is to use 'reload(module)' while you are developing. Richard On Aug 19, 2:05 am, Iceberg wrote: > On Aug18, 11:37pm, rev wrote: > > > > > Hi, > > > I have some code that are 'helper' functions for a controller. > &g

[web2py:28913] upload filename inconsistency

2009-08-18 Thread Richard
his variable into something consistent? On my Linux box I am occasionally getting filenames like "C:\ \Documents and Settings\\user\\Desktop\\file.txt", which can't be parsed with os.path.basename(). Richard --~--~-~--~~~---~--~~ You received this messa

[web2py:28975] Re: upload filename inconsistency

2009-08-19 Thread Richard
great! Apparently some old versions of IE include the full path. Richard On Aug 19, 5:39 pm, mdipierro wrote: > Yes, this may be a bug on windows. I will fix it. > > On Aug 18, 9:04 pm, Richard wrote: > > > hello, > > > From an upload form should request.var

[web2py:28978] Re: Adding fields in auth_user

2009-08-19 Thread Richard
the error is thrown from default.py (line 55), so it might be unrelated. Richard On Aug 20, 4:25 pm, ed wrote: > I didn't change the gluon directory and inserted the code below in > db.py and was able to run the app. I inserted 2 fields and tried to > run it again but encount

[web2py:28976] Re: Add appliances to some repository?

2009-08-19 Thread Richard
po - should be a separate repo > (probably a separate repo for each) > > F yeah that would be handy to checkout the example applications easily and get updates. My current favorite applications are pyforum (http://pyforum.org/) and w2p openID (http://w2popenid.appspot.com/init/default/wiki/main

[web2py:29055] Re: Web2py.com down

2009-08-20 Thread Richard
On Aug 21, 8:19 am, ProfessionalIT wrote: > in the GAE ? that's a good idea - and it could show off web2py's support for GAE --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "web2py-users" group. To post to this grou

[web2py:29178] Re: Left Join Failures

2009-08-23 Thread Richard
hi Massimo, you mentioned that the initial query was invalid (http:// code.google.com/p/web2py/issues/detail?id=52). Could you clarify what was invalid and the proper way to do multiple joins? Richard On Aug 17, 4:37 am, howesc wrote: > Thanks for the tip!  A little tweaking to y

[web2py:29179] Re: upload filename inconsistency

2009-08-23 Thread Richard
I would like to upgrade my web2py when this is fixed, so is it worth creating an issue on Google Code to track it? Or has it already been fixed? Richard On Aug 20, 4:26 pm, Richard wrote: > great! > Apparently some old versions of IE include the full path. > > Richard > >

[web2py:29200] Re: upload filename inconsistency

2009-08-23 Thread Richard
I can confirm it happened with 1.66.1. Is it worth testing with 1.66.2? Richard On Aug 24, 10:05 am, mdipierro wrote: > I have double checked and it seems to me this has been fixed about a > couple of months ago (before your post). > The problem is that data stored before this was

[web2py:29201] Re: Left Join Failures

2009-08-23 Thread Richard
also facing the same problem. Richard On Aug 24, 10:01 am, mdipierro wrote: > howesc explained it in his posts: "that mixing the join syntax has > operator > precedence issues, and that Postgres follows the standard while other > databases let you get away with the &quo

[web2py:29204] ticket events

2009-08-23 Thread Richard
existing code for this. Richard --~--~-~--~~~---~--~~ 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 from this group, send email

[web2py:29299] Re: upload filename inconsistency

2009-08-24 Thread Richard
if there is a Windows path passed to my Linux based web2py server, then os.path.basename() is not going to remove the directory. Could that be the problem? Richard On Aug 24, 6:51 pm, mdipierro wrote: > Nothing changed between 1.66.1 and 1.66.2 in this respect. I am > puzzled. The f

[web2py:29300] Re: ticket events

2009-08-24 Thread Richard
just one host. hmm, I guess an RSS feed won't be queried often so efficiency is not important and I can just read from disk like you suggest. Richard On Aug 24, 7:31 pm, mdipierro wrote: > I do not know if you need to load them in db unless you have multiple > hosts. > > On

[web2py:29302] Re: ticket events

2009-08-24 Thread Richard
3. response.view = 'form.html' return dict(form=auth()) Richard On Aug 25, 3:52 pm, Richard wrote: > just one host. > hmm, I guess an RSS feed won't be queried often so efficiency is not > important and I can just read from disk like you suggest. > > Richard >

[web2py:29465] Re: upload filename inconsistency

2009-08-26 Thread Richard
Like this: os.path.basename(url.replace('/', os.sep).replace('\\', os.sep)) On Aug 25, 5:56 pm, mdipierro wrote: > So how should one remove the path without knowing whether is a Linux > or a Windows path? > > Massimo > > On Aug 25, 12:39 am, Richard w

[web2py:29485] Re: Simple question -- where is name of upload file stored?

2009-08-27 Thread Richard
with 1.66.2 _newfilename is returning None from my upload field. Has anyone else experienced this? Richard On Aug 16, 6:30 pm, weheh wrote: > OK, by getting from the trunk the gluon/sql.py and gluon.sqlhtml.py > files, this problem is fixed in the 1.65.11 release. Thank you Massimo

[web2py:29563] upgrade migrate error

2009-08-27 Thread Richard
sql_fields_old = cPickle.load(tfile) EOFError any ideas? Richard --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "web2py-users" group. To post to this group, send email to web2py@googlegro

[web2py:29565] Re: upgrade migrate error

2009-08-28 Thread Richard
I deleted database/*.table and now it works, so looks like a migration problem with upgrading. Could this be related to the "radical" proposal to change the default string lengths? Richard On Aug 28, 3:09 pm, Richard wrote: > I upgraded to latest version of web2py and now I am

[web2py:29568] exec_environment limitations?

2009-08-28 Thread Richard
', args='login') File "/home/web2py/gluon/tools.py", line 289, in url f=f, args=args, vars=vars) File "/home/web2py/gluon/html.py", line 175, in URL raise SyntaxError, 'not enough information to build the url' So, is there a way to c

[web2py:29654] Re: pyforum instead of google groups?

2009-08-30 Thread Richard
with the same problem as me than asking new questions. If people are keen on pyforum perhaps the new python-developers mailing list could try it first. Richard On Aug 30, 6:18 am, Julio wrote: > I am up for it :) > > I do believe pyforum is ready for prime time (though for obvious >

[web2py:29652] Re: exec_environment limitations?

2009-08-30 Thread Richard
models import db which threw "NameError: name 'SQLDB' is not defined" Richard On Aug 28, 6:07 pm, mdipierro wrote: > Althought exec_environment exists I think of it more of workaround > than something that should really be used. > > If your my_script.py needs to c

[web2py:29660] Re: pyforum instead of google groups?

2009-08-30 Thread Richard
; Google groups has been ok when the user base is still a newborn. > > > > But we must prepare for bigtime, and the best way is a forum. > > > > On Aug 30, 7:25 pm, Richard wrote: > > >> I really like pyforum and consider it the best available web2py app > &

[web2py:29659] estore status

2009-08-30 Thread Richard
a list of missing features? I would like to see paypal integration because Google Checkout is only available in US and UK. Richard --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "web2py-users" group. To post

[web2py:29746] Re: pyforum instead of google groups?

2009-08-31 Thread Richard
inal code is in the default.py controller. Richard On Sep 1, 12:39 am, Julio wrote: > Yes, pyforum is (still) tied up to MySQL, let me correct that, it is > tied up to any RDBMS (MySQL, Postgres and possibly MSSQL), the reason > is only one single query (out of the literally dozens) t

[web2py:29747] Re: estore status

2009-08-31 Thread Richard
nt to come on board? (These people expressed interest before: Massimo, Yarko, Mr admin, eric cs, Vidul, viniciusban, JohnMc, weheh) Richard On Aug 31, 9:26 pm, Philip Kilner wrote: > Hi Richard, > > Richard wrote: > > there was a lot of enthusiasm a month back about developing the

[web2py:29748] Re: exec_environment limitations?

2009-08-31 Thread Richard
-shell=test > --run=my_script.py This feels awkward so I want to run my script with just: > python my_script.py How can I do that? It seems exec_environment is not the way. In the previous post I was trying to import my model file. Richard On Aug 31, 10:54 pm, mdipierro wrote: > Sorry, I d

[web2py:29765] Re: exec_environment limitations?

2009-08-31 Thread Richard
globals().update(env('you_app_name', import_models=True)) > # now do whatever you need you can use request, db, helpers, etc. > > Massimo > > On Aug 31, 7:45 pm, Richard wrote: > > > I want to have a standalone script to do some operations on my > > application

[web2py:29766] Re: Why web2py is a bad, bad thing.

2009-08-31 Thread Richard
hahaha - I was concerned when I saw the title coming from an active web2py user! On Sep 1, 12:22 pm, mdipierro wrote: > LMAO > > On Aug 31, 9:00 pm, weheh wrote: > > > I've been using web2py for around 6 months now and I thought I'd share > > a bunch of reasons why I think web2py is a bad thin

[web2py:29767] Re: web2py complaints & rebuttals

2009-08-31 Thread Richard
cool example! - I'm using something similar. But if it interferes with the logging module and doesn't work on GAE maybe it's too intrusive to include in the scaffolding app. Richard On Sep 1, 1:13 pm, Iceberg wrote: > On Sep1, 2:00am, mdipierro wrote: > > > It seem

[web2py:29845] Re: Simple question -- where is name of upload file stored?

2009-09-01 Thread Richard
I am using a SQLFORM.factory and the file is being saved to uploads/, but that field is empty. Is this functionality still only in trunk? Richard On Aug 27, 6:04 pm, mdipierro wrote: > This should not be. Please check for spelling errors. > > On Aug 27, 2:32 am, Richard wrote: &

[web2py:29849] Re: Authentication using Facebook / Google / Myspace ...

2009-09-01 Thread Richard
I'm also looking forward to this functionality. Stackoverflow does it really well. There is an OpenID appliance: http://w2popenid.appspot.com/init/default/wiki/main And pyforum has plans for OpenID integration. On Sep 2, 2:56 pm, weheh wrote: > Lately, I've been seeing websites that let users

[web2py:29851] Re: YAL - yet another logo

2009-09-01 Thread Richard
Having the snake connect with web and py is a great idea. But I prefer the 1st snake with cuter expression and bigger head in proportion to body. On Sep 2, 2:39 pm, "Richard Gordon" wrote: > Dear web2py community: > > I recognize that this is very late to the web2py logo ga

[web2py:29924] Re: pyforum instead of google groups?

2009-09-02 Thread Richard
pyforum.org is a good domain name so couldn't that be made the official web2py pyforum website, assuming Julio is OK with that. Richard On Sep 2, 3:44 pm, mdipierro wrote: > Although I do not think we should abandon google group we should setup > and official web2py pyforum site

[web2py:29923] Re: YAL - yet another logo

2009-09-02 Thread Richard
I think there are 2 Pro Max Richard's - me and the original poster. On Sep 3, 8:45 am, weheh wrote: > Current tally as of 6:45PM EST: > > Pro Max the snake: > - weheh > - Richard > - Nik Go > - Zoom.Quiet > - rb (thanks for the $.20 -- Max is a lot better lookin

[web2py:29951] Re: the book 2nd ed. - is there any option but lulu?

2009-09-02 Thread Richard
Amazon? I have bought a few books from Lulu and haven't had any trouble. On Sep 3, 2:15 am, David Watson wrote: > Hi, > > I tried to buy the book this morning on lulu. What a nightmare. > Started in safari 4.03 on OS X, couldn't get logged in or registered, > generally came back with blank page

[web2py:29952] Re: pyforum instead of google groups?

2009-09-02 Thread Richard
anded and styled similar to web2py.com to give it > a cohesive feel. > It should have a big fat 'Powered by pyForum' sticker on it somewhere > that links to pyForum.org > > On Sep 2, 7:31 pm, Richard wrote: > > > pyforum.org is a good domain name so couldn't that

[web2py:29992] Re: multiple forms per page -- preventing double submission

2009-09-03 Thread Richard
you can only submit one form at a time. On Sep 4, 7:46 am, __Kyo__ wrote: > How do i take a text box value form another form? > thanks in advance > > On Sep 3, 8:36 am, weheh wrote: > > > Yes, I've done multiple forms before but haven't tested the double > > submission, yet, because the doc sa

[web2py:30181] Re: current link indication with MENU() helper

2009-09-05 Thread Richard
How should the active flag be set? Currently I have: response.menu = [ ['Home', request.controller == 'default', URL(request.application, 'default', 'index'), []], ... ] The default examples always have 'False' for active. Richard On

[web2py:30205] Re: current link indication with MENU() helper

2009-09-05 Thread Richard
passed. On Sep 6, 9:43 am, mdipierro wrote: > yes but I do not remember if the default layout would use this or not. > > On Sep 5, 6:18 pm, Richard wrote: > > > How should the active flag be set? Currently I have: > > > response.menu = [ > >     ['Home&

[web2py:30352] Re: Simple question -- where is name of upload file stored?

2009-09-07 Thread Richard
> form.vars before calling form.accepts? I don't think form.vars is > populated until after calling it. > > On Sep 2, 12:26 am, Richard wrote: > > > I am using a SQLFORM.factory and the file is being saved to uploads/, > > but that field is empty. > > Is this fun

[web2py:30360] Re: Web2py and Webfaction

2009-09-07 Thread Richard
I used the above script and it worked well. Now I have multiple web2py apps on webfaction with lots of static files. How can I configure this so that these files are served directory by Apache? Richard On Aug 31, 12:09 am, jlegler wrote: > Try running it like this: > > python2.5 web

[web2py:30385] Re: Pycon

2009-09-08 Thread Richard
Not sure if that is appropriate for Pycon though. Richard On Sep 7, 7:05 am, Massimo Di Pierro wrote: > I would like to propose a talk and a tutorial for PyCon 2010. > > I could use your help. > > What topic specifically would you like to hear more about in detail? > > L

[web2py:30390] Proxy Error 502

2009-09-08 Thread Richard
Got any ideas? I'm thinking that the post processing takes too long, which is triggering an error. Is that likely? And if so is there a fix? I am using Apache. thanks, Richard --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Goo

[web2py:30391] Re: Lighttpd setup

2009-09-08 Thread Richard
atm. Richard On Sep 8, 8:28 pm, Vidul Petrov wrote: > Hi all, > > I didn't manage to configure Web2py with this web server (each step > was followed and the only result was directory listing, of course when > enabled). > > Here is the configur

[web2py:30444] Re: database is locked

2009-09-08 Thread Richard
I often received that error with sqlite when the server was under heavy load. My fix was to change to postgres. Richard On Sep 9, 1:00 am, Timbo wrote: > Windows - source build  previous version was 1.46 I think.  I use > sqlite for everything (that the DAL talks to anyway) but since

[web2py:30443] Re: call a controller function...

2009-09-08 Thread Richard
You need to specify the other controller or it will stay in obras: URL(r=request, c='clientes', f='insert') On Sep 9, 2:10 am, Carlos Aboim wrote: > Hi everyone, > Hoping everything all wright with you all. > > How do I call a controller function from one link in another > controller. > > I h

[web2py:30445] Re: Proxy Error 502

2009-09-08 Thread Richard
I'm using apache on webfaction, which runs on Linux with mod_wsgi. On Sep 9, 12:06 am, mdipierro wrote: > Are you using the built-in web server? apache as a proxy? apache with > mod_wsgi? > Windows, Linux or Mac? Binary r source? > > Massimo > > On Sep 8, 8:09 am

[web2py:30442] Re: Getting the insertion index at db

2009-09-08 Thread Richard
assuming you are running this from the shell, are you calling db.commit ()? On Sep 9, 5:56 am, Bernardo Botelho wrote: > Hello for everyone. > > I'm new at web2py and I'm trying to do some insertion in a table of my > database. But, after the insertion, I need to get the id value of the > new r

[web2py:30457] Re: Proxy Error 502

2009-09-08 Thread Richard
c? Binary r source? > > That is a mod_proxy error, so more likely they are using mod_proxy to > CherryPy wsgiserver. > > Graham > > > Massimo > > > On Sep 8, 8:09 am, Richard wrote: > > > > hi, > > > > I have an upload form that requires

[web2py:30467] Re: strftime why?

2009-09-08 Thread Richard
strftime() is a method of datetime and your dates are now strings. You can use strptime() to parse from string to date. On Sep 9, 3:22 pm, jayvandal wrote: > HI, > I get an error relating to strftime. > I had date  fields in my database, but I wanted to enter old date such > as '1776-07-04' so

[web2py:30468] better support for web2py at WebFaction

2009-09-08 Thread Richard
o the thread. Richard --~--~-~--~~~---~--~~ 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 from this group, send email to

[web2py:30481] Re: better support for web2py at WebFaction

2009-09-09 Thread Richard
yes, but it would be good if they officially supported/recognized web2py like they do Django, Turbogears, etc. On Sep 9, 4:53 pm, Graham Dumpleton wrote: > On Sep 9, 3:59 pm, Richard wrote: > > > There are 2 threads in the WebFaction forum at the moment about > > getting

[web2py:30483] get random record efficiently

2009-09-09 Thread Richard
hi, is there an efficient way to get a random record from a table? An obvious non-efficient way would be to get all the records and do random.choice(). thanks, Richard --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups

[web2py:30484] prevent upload saving to disk

2009-09-09 Thread Richard
I am using SQLFORM.factory to upload some files. By default form.accepts() saves the file to disk. Is there a way to prevent this, like the dbio flag does for the database? I want to examine the file in memory and so don't need to write to disk. thanks, Ri

[web2py:30551] Re: Static Content

2009-09-09 Thread Richard
I was also concerned with this so I asked this question recently on the webfaction forum: http://forum.webfaction.com/viewtopic.php?id=3215 I haven't tried out the proposed solutions yet. Richard On Sep 10, 5:15 am, Arvind wrote: > Hello, > > Since, Massimo just told us, tha

[web2py:30552] DAL indexes support?

2009-09-09 Thread Richard
database performance over the last few days and solved most of the problems when I added an index to the main table. Richard --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "web2py-users" group. To post to this g

[web2py:30561] Re: DAL indexes support?

2009-09-09 Thread Richard
yeah I know I can do it manually - that's what I ended up doing. The reason given in the manual for lack of an API is it would "make migrations complex". But this wouldn't be an issue in production where migrate=False. Or is there another reason? Richard On Sep 10, 11:53 

[web2py:30563] Re: Proxy Error 502

2009-09-09 Thread Richard
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? Richard On Sep 9, 11:38 am, Richard wrote: > My exact setup is d

[web2py:30565] Re: DAL indexes support?

2009-09-09 Thread Richard
Oh fair enough. How far along is the new DAL? Richard On Sep 10, 12:19 pm, mdipierro wrote: > not all database allow create index "if not exists" this means web2py > would have to keep track of what indices have been created and what > no. This would introduce a new leve

[web2py:30568] Re: get random record efficiently

2009-09-09 Thread Richard
but (I think) he wants something working on GAE. On Sep 10, 11:55 am, mdipierro wrote: > I thought I answered this > > random_record = db().select(db.mytable.ALL,orderby=',limitby= > (0,1))[0] > > On Sep 9, 8:27 pm, Iceberg wrote: > > > On Sep9, 8:07pm, Richar

[web2py:30582] Re: return and redirect

2009-09-09 Thread Richard
why do you need to update the form? On Sep 10, 6:58 am, __Kyo__ wrote: > def reporte(): >     form=FORM(TABLE( >     TR("Tirador",SELECT(_type="select",_name="usuario", >         *[OPTION(x.apellidopaterno,' ',x.apellidomaterno,' > ',x.nombre,_value=x.id) >         for x in db().select(db.usuar

[web2py:30583] Re: Static Content

2009-09-09 Thread Richard
t seems complex because you need to create a separate symbolic application for each static directory. Or am I misunderstanding? Richard On Sep 10, 2:02 pm, Yarko Tymciurak wrote: > I think you might be asking something a bit different;  Webfaction has a URL > where it says it can

[web2py:30585] Re: Ajax

2009-09-09 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 wrote: > Hi, > > This is what I did: > > jQuery.ajax(

[web2py:30587] Re: get random record efficiently

2009-09-09 Thread Richard
independent however. > > > > On Sep10, 9:55am, mdipierro wrote: > > > > > I thought I answered this > > > > > random_record = db().select(db.mytable.ALL,orderby=',limitby= > > > > (0,1))[0] > > > > > On Sep 9, 8:27 pm, Iceberg wrote: > &

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

2009-09-09 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" wrote: > I am working with web services from

[web2py:30590] Re: Pycon

2009-09-09 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" wrote: > I would like to see a 'deep dive' into the DAL included complex > queries, best practices, limitations, tips and tricks. > > On Sep 6, 4:05 pm, Massi

[web2py:30662] cron error for no cron

2009-09-10 Thread Richard
Y CRON: Stale cron.master detected ERROR:root:WEB2PY CRON: Cron fail, reason: [Errno 2] No such file or directory: '/home/web2py/applications/admin/cron/cron.running' Do you have an idea what is going on? And is there a way to completely disabl

[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 wrote: > Good point.  Another factor is handling threads.  IIRC Sqlite won't handle > more than 1 thread while the others will. > > On Thu

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

2009-09-10 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 wrote: > see output of: > > python web2py.py -h > > for the option to disable cron > > On Thu, Sep 10, 2009 at 7:

[web2py:30693] Re: new in trunk

2009-09-10 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.id>0).select().first() very convenient Richard On Sep 11, 3:12 pm, mdipierro wrote:

[web2py:30697] Re: new in trunk

2009-09-11 Thread Richard
> Can you do it or should I do it? I tried but it seems I don't have privilege. On Sep 11, 4:42 pm, mdipierro wrote: > On Sep 11, 1:19 am, Richard wrote: > > > > on delete cascade in SQLite > > > Fantastic! My feature request for this can be > > closed:

[web2py:30698] request.args parsing whitespaces

2009-09-11 Thread Richard
x27;), because the original string may have included an underscore. So, what do you suggest? Richard --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "web2py-users" group. To post to this group, send email to web2

[web2py:30699] Re: SQLite for Production?

2009-09-11 Thread Richard
(IIRC). Richard On Sep 11, 3:05 pm, mdipierro wrote: > 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

[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 wrote: > On Sep 11, 9:29 am, Richard wrote: > > > Well, yesterday I changed a boolean type column to integer in my model > > and all hell broke lo

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

2009-09-11 Thread Richard
/random-title-754005/ I think I'll do that. Richard On Sep 12, 1:10 am, mdipierro wrote: > still gets repaced by _ > > On Sep 11, 9:52 am, Jonathan Lundell wrote: > > > On Sep 11, 2009, at 1:16 AM, Richard wrote: > > > > I want to make my URLs prett

[web2py:30935] Re: Declare function as not a function?

2009-09-13 Thread Richard
I just checked and you're right. On Sep 13, 9:19 pm, rev wrote: > AFAIK You can prepend the function name with a double underscore, e.g. > "__thefunction():" > I've used this to prevent the function to show up in the admin > interface. > You should check if it indeed isn't mapped to a URL. --~-

[web2py:30936] Re: SQLField vs Field?

2009-09-13 Thread Richard
I noticed that examples in the manual on p254 and p303 use the old SQLDB/SQLField syntax. Richard On Sep 13, 4:30 pm, mdipierro wrote: > Yes, SQLField == Field but use the latter. > > On Sep 13, 1:02 am, weheh wrote: > > > SQLField is deprecated, I believe. Use Field. > &

[web2py:30948] SQLFORM with record shows ID

2009-09-13 Thread Richard
SQLFORM knows which record to edit, so is there a way to hide it? thanks, Richard --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "web2py-users" group. To post to this group, send email to web2py@googlegroup

[web2py:30953] export database timeout error

2009-09-14 Thread Richard
xecute(query) File "/home/web2py/gluon/sql.py", line 770, in self._execute = lambda *a, **b: self._cursor.execute(*a, **b) ProgrammingError: canceling statement due to statement timeout The database is quite big so I guess that is causing the timeout. Is there a way to export larg

[web2py:31025] Re: export database timeout error

2009-09-14 Thread Richard
I was in the shell (hence the ">>>") when I received this error. Does --timeout=TIMEOUT also apply to the shell? Richard On Sep 15, 12:10 am, mdipierro wrote: > You can can increase timeout (web2py.py -h) or, better, use the shell > > py

[web2py:31027] Re: SQLFORM with record shows ID

2009-09-14 Thread Richard
thanks, I should have thought of that. If 'id' is not in 'fields' do you think it should be hidden anyway? Or would that break backward compatibility? On Sep 15, 12:11 am, mdipierro wrote: > or > db.table.id.readable=False > > On Sep 14, 4:38 am, Fran wrote: &

[web2py:31028] Re: better support for web2py at WebFaction

2009-09-14 Thread Richard
pierro wrote: > yes, they should do. It really takes nothing since already list > cherrypy and we have more users. > > On Sep 9, 5:51 am, Richard wrote: > > > yes, but it would be good if they officially supported/recognized > > web2py like they do Django, Turbogears,

[web2py:31039] Re: Help with calling the web-service from the web2py shell

2009-09-14 Thread Richard
internally fetch() calls urllib if you're not on GAE: def fetch(url): try: from google.appengine.api.urlfetch import fetch if url.find('?') >= 0: (url, payload) = url.split('?') return fetch(url, payload=payload).content return fetch(url).conte

[web2py:31078] Re: export database timeout error

2009-09-15 Thread Richard
it's strange then that I received the timeout error in the shell. Is this a bug, or is there another possible cause? On Sep 15, 12:07 pm, mdipierro wrote: > No timeout does not apply to the shell. > > On Sep 14, 6:56 pm, Richard wrote: > > > I was in the shell (

[web2py:31151] Re: saving uploads in a place other than applications/myapp/uploads

2009-09-16 Thread Richard
ars.model.file, open (model_filename, 'wb'), int(request.env.content_length)) Richard On Sep 17, 7:29 am, mdipierro wrote: > Currently the only way to achieve this is: > 1) move the file after has been uploaded > 2) write your own download controller so that file can be retrieve

[web2py:31152] Re: erros logged in with dmin mode

2009-09-16 Thread Richard
You can file bug reports at the Google Code page: http://code.google.com/p/web2py/issues/entry Maybe a link could be added there from the support page: http://web2py.com/examples/default/support Richard On Sep 17, 3:23 am, AndrewLoot wrote: > 1: how do i file a bug?? put a link to file a

[web2py:31153] Re: Url mapping

2009-09-16 Thread Richard
yeah URL() is the best way. Your previous problem was because "posts/show/" is a relative link from the current page, while "/posts/show/" is an absolute link to the root of the server. Richard On Sep 16, 7:47 pm, pistacchio wrote: > i did that with the URL tag. :

[web2py:31154] Re: Error in 2nd edition manual? Formatting improvement request.

2009-09-16 Thread Richard
https://mdp.cti.depaul.edu/wiki/default/page/7ae7f7c4-cd8d-4909-b67f-... ack that's an ugly URL. Has whoever is maintaining the wiki considered using the title of the page like Mediawiki? Richard On Sep 16, 11:10 pm, Anand Vaidya wrote: > Hi Anthon (& list members) > >

[web2py:31183] Re: saving uploads in a place other than applications/myapp/uploads

2009-09-16 Thread Richard
thanks for exposing that - now I can simplify some existing code. On Sep 17, 12:29 pm, mdipierro wrote: > Ok. try this: > > db.table.field.uploadfolder=od.path.join(request.folder,"uploads/ > somewhere") > > reuires trunk. folder somewhere must exist. > >

[web2py:31236] Re: export database timeout error

2009-09-17 Thread Richard
no - from command line. On Sep 16, 2:37 pm, mdipierro wrote: > You are not talking about the web based shell, are you? > > On Sep 15, 8:34 pm, Richard wrote: > > > it's strange then that I received the timeout error in the shell. Is > > this a bug, or is there ano

[web2py:31237] Re: web2py 1.67.1 is OUT

2009-09-17 Thread Richard
are not 512 -> are now 512 On Sep 18, 4:40 am, mdipierro wrote: > Please give it a try. and report any bug. > > The major changes are: > 1) lots of small bug fixed > 2) for upload fields you can choose the Field(...,uploadfolder="...") > 3) includes latest wsgiserver and should solve problems w

[web2py:31238] Re: Using DAL outside of Web2py?

2009-09-17 Thread Richard
that snippet duplicates the models, which could lead to maintenance problems. You could use your existing model with: import os os.chdir('/path/to/web2py/') from gluon.shell import env globals().update(env('you_app_name', import_models=True)) On Sep 18, 8:33 am, Jose wrote: > On 17 sep, 21:44

[web2py:31439] Re: Web2py prosperity

2009-09-21 Thread Richard
djangopeople.net where web2py developers can create a profile? I put my own profile on djangopeople.net and receive an email every few months, usually from a company in my city. Richard On Sep 22, 6:18 am, Vidul Petrov wrote: > Hi all, > > Does it make any sense if I start a website

[web2py:31440] Re: Label element in View

2009-09-21 Thread Richard
use the labels argument of SQLFORM. Something like labels = {'name': 'Your full name:'} On Sep 22, 10:11 am, Arvind wrote: > Hello, > > i am writing this in my view to show a label > {{=form.custom.label.name}} > > but how can i define this label with custom properties in the > controller ? > >

[web2py:31441] Re: Setting ID of Input field

2009-09-21 Thread Richard
to set attributes of your form input's you could use the FORM() interface, which gives you complete flexibility over the layout. Or if you prefer the convenience of SQLFORM you could subclass a new widget (check out 7.5 in the manual). On Sep 22, 10:10 am, Arvind wrote: > Hello, > > I am using

[web2py:31442] Re: Setting ID of Input field

2009-09-21 Thread Richard
about setting the ID, I'm not sure. I just manually setting the ID but it was ignored: def test(): form = SQLFORM.factory(Field('name')) if form.accepts(request.vars, session, dbio=False): db.test.insert(id=33, name=form.vars.name) return dict(form=form) On Sep 22, 10:1

[web2py:31463] Re: modules non reloaded

2009-09-22 Thread Richard
during development you could use: import mymodule reload(mymodule) # remove once stable!! On Sep 22, 10:41 pm, leone wrote: > When I change a module sometimes it is not reloaded and I can see the > previous version in action. > How can I do? > Thanks --~--~-~--~~~---

[web2py:31514] efficient way to query parents without children

2009-09-23 Thread Richard
e tree IDs. But now I have ~150K trees so it needs to be more efficient. Is this possible in a single query? thanks, Richard --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "web2py-users" group. To

<    1   2   3   4   5   6   7   8   9   10   >