[web2py:34716] Re: You are going to love this

2009-11-05 Thread Richard
all the ones I looked at were nicer than the default layout - fantastic! On Nov 6, 4:09 pm, mdipierro wrote: > I downloaded multiple layouts from the web with a free Artistic > License and used a script in BeautifulSoup to replace the header, menu > and content with web2py tags. Then I rearrang

[web2py:34898] Re: Join web2py wave

2009-11-08 Thread Richard
yeah! - can invite again. Have invited: denes1...@yahoo.ca roger.gicq...@gmail.com mbelle...@gmail.com whalb...@gmail.com debe...@yahoo.com digitalcry...@gmail.com maxu...@gmail.com On Nov 9, 2:35 am, Marat Maksumov wrote: > I am very interested in receiving an invitation to Google Wave... >

[web2py:34899] Re: Join web2py wave

2009-11-08 Thread Richard
there is already a web2py wave - see if this link works: https://wave.google.com/wave/#restored:wave:googlewave.com%2521w%252BDPsJaggYA And if you don't have your invite yet there is a readonly version here: http://wavedirectory.appspot.com/init/default/wave/676f6f676c65776176652e636f6d21772b4450

[web2py:34927] Re: Join web2py wave

2009-11-09 Thread Richard
oh right On Nov 9, 10:01 am, hcvst wrote: > Hi Richard, > > in fact you can write > athttp://wavedirectory.appspot.com/init/default/wave/676f6f676c65776176... > too. Unfortunately you need to be logged into wave (to read or write). > The embed mechanism (an iframe) requi

[web2py:34999] Re: Join web2py wave

2009-11-09 Thread Richard
invited: encomp...@gmail.com ka...@gmx.net monch1...@gmail.com na...@napas.lt mp.ch...@gmail.com (4 invites left) On Nov 10, 9:40 am, mikech wrote: > Invite please? > > On Nov 7, 4:00 pm, Thadeus Burgess wrote: > > > I think we should all start a public web2py wave! :) > > > -Thadeus > > > On

[web2py:35011] Re: web2py and keyed tables

2009-11-09 Thread Richard
I don't need this right now, but it's great to have this flexibility in the future. Thanks On Nov 10, 3:57 am, DenesL wrote: > @ mr.freeze: you are welcome > @ Massimo: thanks for merging it into web2py > @ Timbo: LOL, maybe someday. --~--~-~--~~~---~--~~ You rec

[web2py:35059] Re: Join web2py wave

2009-11-10 Thread Richard
invited: mft...@gmail.com leisurehourshobb...@gmail.com no invites left for now :( On Nov 11, 10:27 am, Doberman_Illinois wrote: > Richard > > May I get a invite if any are left > > Thank You > Dennis > leisurehourshobb...@gmail.com > > On Nov 9, 5:56 pm, Ri

[web2py:35060] Re: powered by web2py?

2009-11-10 Thread Richard
My business site: http://sitescraper.net/ On Oct 26, 1:46 pm, mdipierro wrote: > www.appliedstacks.comis dead. This means I lost a way to keep track > of web2py sites. So I made something trivial for now: > > http://web2py.com/poweredby > > I am sure I missing many sites that were reported. Cou

[web2py:35070] floating imprecision

2009-11-10 Thread Richard
Hello, I have some floating point numbers in my database which I need to test for equality. Numbers like "0.3" are failing an equality test. So, is there a way to store floating point numbers precisely? Or should I be using something like: offset = 0.01 (db.table.fp > v - offset)(db.table.fp

[web2py:35127] Re: Twill + Web2Py

2009-11-11 Thread Richard
necessary for complex tasks. Richard On Nov 12, 9:06 am, David wrote: > Hey guys, > > I've been studying up on working with scraping/parsing and remote > logins for sites that don't have APIs and I came across Twill. > > Have any of you used it to automate things like log

[web2py:35130] Re: floating imprecision

2009-11-11 Thread Richard
OMG that's bad!! For now I have restructured my logic so I can just deal with integers. Hopefully decimal support comes soon, though I am using sqlite for this... On Nov 12, 3:03 am, Jonathan Lundell wrote: > On Nov 10, 2009, at 11:49 PM, Richard wrote: > > > I have some float

[web2py:35147] upload form keepvalues

2009-11-11 Thread Richard
by the browser? 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@googlegroups.com To unsubscribe from this group, send email

[web2py:35148] Re: Twill + Web2Py

2009-11-11 Thread Richard
that blog post got me interested in lxml, which is a very efficient library with a robust HTML parser. On Nov 12, 10:51 am, David wrote: > what DOM parser do you recommend or do you know is available? > > > > In my search for answers I happened across this link. > > http://blog.ianbicking.org/

[web2py:35161] Re: upload form keepvalues

2009-11-11 Thread Richard
hmm, guess I should do more form error checking client side then. Would it be possible for SQLFORM to also do some of the form checks client side, and cancel submit if there is a problem? Most of the validators would be easy to implement in Javascript, I imagine. Richard On Nov 12, 1:06 pm

[web2py:35212] Re: gae transactions

2009-11-12 Thread Richard
I think it's more complex because records in the same table are not in the same entity group by default. You need to also give records the same parent. However there are downsides to putting many records in the same entity group. I am getting my head around this at the moment. http://code.google.

[web2py:35216] SQLFORM client side checks

2009-11-12 Thread Richard
Hello, I was wondering if it would be possible/practical for SQLFORM to support some basic client side checks before submitting to the server. SQLFORM has so many features, which I doubt could all be covered client side, but it would make forms more responsive if atleast a subset was. Richard

[web2py:35223] Re: SQLFORM client side checks

2009-11-12 Thread Richard
that sounds like an awesome reuse of the existing SQLFORM functionality, and would be nice to see live form checks before pressing submit. You do an AJAX call whenever the text box changes - wouldn't that produce too many calls? Richard On Nov 13, 1:35 pm, Thadeus Burgess wrote: &g

[web2py:35412] web2py job on GetAFreelancer

2009-11-15 Thread Richard
Came a across a job that involves web2py at http://www.getafreelancer.com/projects/Python-Linux/Python-developer-web.html """ Description I need a python developer who has very good knowledge in Python web2py framework. You must be strong in networking programming and also know the irc protocol.

[web2py:35496] Re: Image Uploading

2009-11-17 Thread Richard
.env.content_length)) db.image.insert(filename=target_filename) Richard On Nov 18, 9:23 am, NuclearDragon wrote: > How can I specify my own filename and upload location for images? I > can't find in the code where it is doing the upload/save/rename > processes. > > I ha

[web2py:35497] Re: Image Uploading

2009-11-17 Thread Richard
For my app I explicitly assign user friendly filenames, because my client also wants to browse the backend upload folder manually. Is this going to break web2py anywhere? On Nov 18, 11:27 am, mdipierro wrote: > you can specify the location > > Field('name','upload',uploadfolder='...') > > You s

[web2py:35587] Re: web2py and postgresql

2009-11-18 Thread Richard
isn't generating that exception every request going to be too much overhead? On Nov 19, 7:37 am, mdipierro wrote: > The fact is, indices must be created only once. If you have the index > already that line fails. You handle the exception at the web2py level > but the transcation still aborts. T

[web2py:35588] Re: Delete record from row object

2009-11-18 Thread Richard
what is the use case for updating the row object instead of the database? I sometimes use update() instead of update_record(), so I would prefer update() threw an exception. Is it worth adding the equivalent delete_record()? On Nov 19, 10:43 am, mdipierro wrote: > you can do > > del db.table[

[web2py:35591] Re: Data parser advice sort from web2py developers

2009-11-18 Thread Richard
there is a feature request to add lxml to GAE: http://code.google.com/p/googleappengine/issues/detail?id=18 On Nov 19, 1:54 am, Carl wrote: > I saw those postings and checked out lxml. > alas lxml is built with some C libraries that aren't available on GAE. > > On Nov 18, 2:10 pm, DenesL wrote

[web2py:35675] Re: Data parser advice sort from web2py developers

2009-11-19 Thread Richard
-soup.htm) because I prefer using the ElementTree interface. Richard On Nov 19, 1:53 pm, mdipierro wrote: > It is not clear to me what does lxml do that element-tree does. Is it > just an issue of speed? > > On Nov 18, 8:52 pm, Mark Larsen wrote: > > > I've had good e

[web2py:35676] ListProperty DAL support

2009-11-19 Thread Richard
don't want to create a sub- table! 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

[web2py:35678] StackOverflow clone

2009-11-19 Thread Richard
I've fallen in love with the StackOverflow interface! Would anyone be interested in working on a StackOverflow clone implemented in web2py? Worked could be based off an existing Django clone: http://github.com/cnprog/CNPROG/tree (example usage here: http://cnprog.com/) Thoughts? Ri

[web2py:35737] Re: StackOverflow clone

2009-11-21 Thread Richard
have sent you an email. On Nov 21, 2:25 am, Julio wrote: > Hey Richard, > > I am working on a similar interface 100% web2py, what really would > help me is some sort of technical workflow, or documentation regarding > the handling of the posts, up/down pointing syste

[web2py:35802] Re: web2py job on GetAFreelancer

2009-11-22 Thread Richard
n Python web2py framework and Good in networking programming and also know the irc protocol +Mysql. Don't hesitate to contact me for further information """ On Nov 16, 10:59 am, Richard wrote: > Came a across a job that involves web2py > athttp://www.getafreelancer.c

[web2py:35884] Re: validity of file

2009-11-23 Thread Richard
could a new validator be added to check the mime type from the POSTed content-type? IS_MIME_TYPE('png') Django has something like this: http://docs.djangoproject.com/en/dev/topics/http/file-uploads/?from=olddocs#uploadedfile-objects Richard On Nov 23, 2:50 pm, Thadeus Burgess wro

[web2py:35885] Re: Delete record from row object

2009-11-23 Thread Richard
ah OK - I didn't know the record update could be split like that. Neat. Richard On Nov 19, 1:23 pm, mdipierro wrote: > A Row object extends a dictionary and inherits an update method. It > only updates the dict not the record. The us of it is that you can do: > > row.update(

[web2py:35886] Re: web2py and postgresql

2009-11-23 Thread Richard
Modules are only executed once, so could you create the index there? Or use a database flag. What I do is create a special function in the controller like "initiate_database()" and put my code there and then manually call this function. Not a neat solution, but it works. Richard On

[web2py:35887] Re: Image Uploading

2009-11-23 Thread Richard
ction for our > > users, so I'm not worried about the download aspect. > > > Thanks especially to Richard for this!: > > " > > form = SQLFORM(db.image) > > if form.accepts(request.vars, session): > >        target_filename = ... > >        # nee

[web2py:35895] Re: SQLFORM upload field, absolute filepath

2009-11-23 Thread Richard
IIRC, you can use db.table.field.store(request.vars.field) to get the web2py generated filename. On Nov 24, 2:53 pm, Thadeus Burgess wrote: > The problem is I am trying to get the file from the function in > SQLFORM.onvalidation... and this happens before the file gets renamed or > saved to the

[web2py:35957] Re: validity of file

2009-11-24 Thread Richard
no not a guarantee, but would it be worth adding anyway? On Nov 24, 4:10 pm, mdipierro wrote: > Unfortunately checking the mime type is no guarantee that the file > format is conform to specs. > > On Nov 23, 7:49 pm, Richard wrote: > > > could a new validator be added t

[web2py:35958] Re: SQLFORM upload field, absolute filepath

2009-11-24 Thread Richard
os.remove(tmppath) >     except: >         pass > > #... > form.accepts(...onvalidation=is_valid_tar) > > -Thadeus > > On Mon, Nov 23, 2009 at 10:31 PM, Richard wrote: > > > IIRC, you can use db.table.field.store(request.vars.field) to get the > > web

[web2py:35974] Re: Simple Image Browser - Error

2009-11-24 Thread Richard
if you want something simple for GAE just use the built in webapp framework from Google: http://code.google.com/appengine/docs/python/tools/webapp/ On Nov 25, 4:17 am, Pynthon wrote: > Ah, OK thanks for the info Massimo. You know last week I was thinking > about web2py. Well not about web2py b

[web2py:36190] Re: gae and nosql

2009-11-29 Thread Richard
to support full text search you can generate all the N-grams of each record and then stored then in a StringListProperty: http://code.google.com/appengine/docs/python/datastore/typesandpropertyclasses.html#StringListProperty On Nov 28, 6:20 am, vince wrote: > i've notice the new DAL do support

[web2py:36335] check background task is running

2009-12-01 Thread Richard
fine This is a low bandwidth site so efficiency is not important. But the above strategy seems cumbersome - is there a better way? thanks, Richard -- You received this message because you are subscribed to the Google Groups "web2py-users" group. To post to this group, send em

[web2py:36374] Re: about distribution

2009-12-02 Thread Richard
I would be fine with (2) Do people use examples.w2p? When I need to find something out I search the book and this forum. On Dec 3, 11:04 am, mdipierro wrote: > For the future version of web2py > > should we (1) continue to distribute admin.w2p, welcome.wp2, > examples.w2p and unpack them on

[web2py:36383] Re: web2py users growth

2009-12-02 Thread Richard
monthly post numbers are available here: http://groups.google.com/group/web2py/about On Dec 3, 1:21 pm, mdipierro wrote: > I agree but that is difficult to measure. > > On Dec 2, 7:59 pm, waTR wrote: > > > I think a more valid statistic is # of postings/ month. I would argue > > an inactive us

[web2py:36456] Re: web2py users growth

2009-12-03 Thread Richard
und to be more questions from noobs like me. Lots of questions is a good sign that lots of people are interested. On Dec 3, 3:41 pm, Yarko Tymciurak wrote: > On Dec 2, 10:10 pm, Richard wrote: > > > monthly post numbers are available > > here:http://groups.google.com/group/web2p

[web2py:36457] Re: check background task is running

2009-12-03 Thread Richard
any ideas? On Dec 2, 6:29 pm, Richard wrote: > Hello, > > I have an ongoing background task for processing my database. > I want this task to automatically start when I run my app somewhere > (can assume it is a Linux box), and to restart if it somehow dies. > > This i

[web2py:36928] Re: pyStack - a SO "inspired" Q&A application

2009-12-09 Thread Richard
For those who don't know, Julio is the one behind the slick pyforum (see pyforum.org), so this project is worth keeping track of. On Dec 8, 11:39 am, mdipierro wrote: > +1 > > On Dec 7, 9:39 am,Julio wrote: > > > > > Community, > > > Apologies for the double posting, seems like the discussion s

[web2py:36931] Re: pyStack - a SO "inspired" Q&A application

2009-12-09 Thread Richard
SysAdmin role be outside the point system? It is quite easy to gain points on SO if you ask lots of questions, so a person with a lot of points is not necessarily responsible/ knowledgeable. Richard On Dec 10, 12:03 pm, Richard wrote: > For those who don't know, Julio is the one behind t

[web2py:36943] Re: e-Store Appliance in GAE

2009-12-10 Thread Richard
/WishList). I would be keen to collaborate with someone on this. Richard On Dec 9, 2:26 pm, David wrote: > Just wanted to make a note that the eStore appliance doesn't work "out > of the box" on my PostgreSQL server.  It does work with SQLite > however. > > O

[web2py:37105] Re: Ngram based search. App

2009-12-12 Thread Richard
this seems useful for a cross database search application I had in mind. Would you be able to describe more, particularly its limitations and how you are using it? Also, why did you role your own code for ngram similarity instead of using the builtin difflib.SequenceMatcher? Richard On Dec 12

[web2py:37106] Re: new DAL('gae')

2009-12-12 Thread Richard
how did you add belongs support for GAE? I remember in a previous discussion this was considered not possible/practical: http://code.google.com/p/web2py/issues/detail?id=56&can=1 On Dec 12, 4:42 pm, mdipierro wrote: > I have re-factored a lot of code in gluon/contrib/gql.py in order to > make i

[web2py:37119] Re: new DAL('gae')

2009-12-13 Thread Richard
o > > On Dec 12, 6:19 pm, Richard wrote: > > > > > how did you add belongs support for GAE? I remember in a previous > > discussion this was considered not > > possible/practical:http://code.google.com/p/web2py/issues/detail?id=56&can=1 > > > On Dec 12

[web2py:37190] Re: how to use GAE remote api?

2009-12-14 Thread Richard
try adding your application directory to sys.path On Dec 15, 5:35 am, Dan wrote: > I need to do some bulk operations (eg delete) on data in the GAE > datastore for a web2py application, and was trying to follow the > example in the GAE docs > here:http://code.google.com/appengine/articles/remot

[web2py:37198] GAE mkdir error

2009-12-14 Thread Richard
I uploaded an app to GAE and it triggered an error from trying to create a missing directory: File "/gluon/main.py", line 432, in wsgibase os.mkdir(path) AttributeError: 'module' object has no attribute 'mkdir' I have already run the app locally before uploading, so all the directories exist.

[web2py:37204] Re: how to use GAE remote api?

2009-12-14 Thread Richard
and as you said, you will need the __init__.py files On Dec 15, 8:45 am, Richard wrote: > try adding your application directory to sys.path > > On Dec 15, 5:35 am, Dan wrote: > > > I need to do some bulk operations (eg delete) on data in the GAE > > datastore for a web

[web2py:37274] Re: pyforum vulnerabilities?

2009-12-15 Thread Richard
I'm curious, where did you find these reports? On Dec 16, 5:17 am, mdipierro wrote: > There are a number of security advisory reports online about pyforum, > some from reputable sources. > > They report two vulnerabilities: > > 1) What they refer to as a backdoor but they describe as a different

[web2py:37275] Re: news blobstore on gae

2009-12-15 Thread Richard
keep in mind that currently it is only for applications that have enabled billing. On Dec 16, 2:43 am, mdipierro wrote: > This is a good time to be rewriting the DAL: > > http://googleappengine.blogspot.com/2009/12/app-engine-sdk-130-releas... > > We should take advantage of this. -- You recei

[web2py:37413] Re: GAE mkdir error

2009-12-16 Thread Richard
> GAE does not allow write access to the file system. Yep - that's why there is an error. web2py shouldn't be trying to create those directories anyway because they were uploaded with the app. So is the errors directory the problem? Richard On Dec 16, 7:48 am, Vidul Petrov wrot

[web2py:37416] Re: pyforum vulnerabilities?

2009-12-16 Thread Richard
seems fishy. If they found a genuine bug why can't they just send a bug report like the rest of us, instead of that veiled threat. On Dec 16, 7:47 am, Julio wrote: > Massimo, > > I also received the email from a Vietnamese (or chinese, can't > remember) "security" firm that basically told me the

[web2py:37419] Re: web2py blog screencast

2009-12-16 Thread Richard
If I had watched when starting with web2py it would have saved me a lot of time! The file is 250MB and the resolution higher quality than needed, so it could be cut down. Although the vimeo upload limit is apparently 500MB so that shouldn't have been the problem... On Dec 17, 11:46 am, Mengu wr

[web2py:37423] Re: web2py blog screencast

2009-12-16 Thread Richard
Success! http://www.vimeo.com/8229814 On Dec 17, 2:09 pm, Mengu wrote: > Richard, > > unfortunately i am not that much aware of compressing video files. if > you have any idea how to compress the video more, please do so. > > Mengu > > On Dec 17, 3:01 am, Richard wrote

[web2py:37566] Re: semantic web2py

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

[web2py:37567] Re: upload progress

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

[web2py:37596] Re: semantic web2py

2009-12-20 Thread Richard
is that web2py theme downloadable anywhere, for example at http://web2py.com/layouts/plugin_layouts On Dec 20, 9:55 am, mdipierro wrote: > I think it is from drupal. I took it from the official Linked Data web > site. > > On Dec 19, 3:09 pm, Richard wrote: > > > > >

[web2py:37597] Re: ListProperty DAL support

2009-12-20 Thread Richard
BUMP On Nov 20, 4:41 pm, Richard wrote: > Hello, > > a few months back there was a discussion about adding ListProperty > support to the DAL. How is that > going?http://groups.google.com/group/web2py/browse_thread/thread/d3a8fcffb8... > > I have been using that type o

[web2py:37630] Re: semantic web2py

2009-12-21 Thread Richard
thanks! On Dec 21, 8:21 am, Massimo Di Pierro wrote: >  web2py.plugin.drupal_theme_ld.w2p > 268KViewDownload > > > > Install this plugin to get the new theme. The menu is hardcoded so   > needs to be edited to use MENU(response.menu) -- You received this message because you are subscribed to t

[web2py:37700] Re: Sitemap Plugin or Sitemap Generator

2009-12-22 Thread Richard
way to list the exposed functions in a controller? Here is some nice CSS to create a graphical layout: http://astuteo.com/slickmap/demo/ Richard On Dec 22, 8:15 pm, Benigno wrote: > Actually, if you have anything dynamic (say you have a blog, you may > have as many pages as posts, p

[web2py:37782] Re: SQLite to Postgress

2009-12-23 Thread Richard
another thing to watch out for is reserved keywords in postgres, which has more restrictions than sqlite. Though apparently the new DAL will take care of this. On Dec 23, 8:07 am, Adolfo wrote: > Hello > > I've been working with sqlite for develpment but now that i have > finish with my app id l

[web2py:37842] Re: Happy Holidays

2009-12-25 Thread Richard
On Dec 26, 7:01 am, Johann Spies wrote: > 2009/12/25 KMax :> Warm wishes from cold Russia! > > And from warm South Africa! And hot Australia, Merry Christmas! -- You received this message because you are subscribed to the Google Groups "web2py-users" group. To post to this group, send email to

[web2py:37980] Re: breadcrumb design

2009-12-28 Thread Richard
he controllers - using T() > > Thanks to Richard , for original function that I > made improvements > > Put in your model/module: > [image: Select] > >     def breadcrumbs(arg_title=None): >        "Create breadcrumb links for current request" >        # make link

[web2py:37981] Re: Patch to Cache

2009-12-28 Thread Richard
is there a public repository available for the existing code? Richard On Dec 29, 1:46 pm, Thadeus Burgess wrote: > Blogitize is my personal blogging software I am making in web2py :) > > I don't like how you need different systems for different things, > (wordpress to blog, a

[web2py:38004] Re: web2py and python 2.4

2009-12-29 Thread Richard
did you manage to get web2py running with 2.4? I noticed web2py uses (a if Condition else b), which was syntax introduced in 2.5. Richard On Nov 22, 11:12 am, pepe_eloy wrote: > Returning to the theme about installhashlibin python 2.4,, excuse my > ignorance, but is it possible to install

[web2py:38023] Re: web2py and python 2.4

2009-12-29 Thread Richard
ntry about this. > > On Dec 29, 7:48 am, Richard wrote: > > > > > did you manage to get web2py running with 2.4? I noticed web2py uses > > (a if Condition else b), which was syntax introduced in 2.5. > > Richard > > > On Nov 22, 11:12 am, pepe_eloy wro

[web2py:38243] Re: persistent background process

2010-01-03 Thread Richard
entry but its pid is not active (not in / proc) then restart the background task and update the pid - Else the task is running fine Perhaps you could adapt that to your needs, assuming you are using Linux. Richard On Dec 30 2009, 3:26 pm, Auden RovelleQuartz wrote: > any simple example o

[web2py:38244] Re: Experimental in trunk: GAE StringListProperty

2010-01-03 Thread Richard
great! The updated API is much better. On Dec 30 2009, 6:17 pm, mdipierro wrote: > I changed this. It was UGLY. > > Now you can do: > >     from gluon.contrib.gql import gae >     db.define_table('person',Field('names',gae.StringListProperty())) > > and you can do: > >     db.person.insert(name

[web2py:38270] Re: persistent background process

2010-01-03 Thread Richard
> > > > > Great!  I am also trying to implement this.  Richard and Auden, have > > you gotten anything working yet?  How about we share solutions? > > > My current difficulty is figuring out where to create the persistent > > background thread. > >   - If

[web2py:38482] Re: Best approach for keeping a session alive

2010-01-06 Thread Richard
how about setting a huge timeout? On Jan 7, 7:45 am, mdipierro wrote: > ajax calls to keep session alive > > On Jan 6, 2:02 pm, Thadeus Burgess wrote: > > > > > (this) being using ajax calls or (this) being keeping the session alive? > > > -Thadeus > > > On Wed, Jan 6, 2010 at 1:53 PM, mdipierr

[web2py] Re: Best approach for keeping a session alive

2010-01-07 Thread Richard
couple of other measures, like auto-saving the > > post, or using ajax to keep the session alive. I think auto-saving > > might be the best option, since it will save the post but the session > > will time out, that way nobody could sit down at my computer while I > > am logge

[web2py] Re: www.web2py.com down?

2010-01-10 Thread Richard
would it be possible to host the main web2py site on GAE to avoid these problems? On Jan 9, 9:32 am, mdipierro wrote: > This time I was able to see the error. It was an out of memory error > on os.fork.  This is a virtual machine with 256MB Ram and I had not > rebooted in long time (only restart

[web2py] Re: job

2010-01-10 Thread Richard
are there any web2py job board apps available? (I enquired about this earlier: http://groups.google.com/group/web2py/browse_thread/thread/183c88915654276e) On Jan 11, 2:28 am, mdipierro wrote: > we should add this. > > On Jan 7, 10:53 pm, Jason Brower wrote: > > > > > On Thu, 2010-01-07 at 11:

[web2py] Re: Best approach for keeping a session alive

2010-01-10 Thread Richard
; On Thu, Jan 7, 2010 at 2:57 PM, Richard wrote: > > is there a way to disable timeout and have sessions last forever? That > > would be useful for my intranet app where security is not an issue. > > -- You received this message because you are subscribed to the Google Groups &q

[web2py] Re: Several File Upload Using Ajax... Any Example available by any chance ?

2010-01-14 Thread Richard
I would also find this useful - an example that uploads 0-N files with a button to add additional upload inputs. On Jan 15, 5:12 am, Yannick wrote: > gmail was just an example... Just to explain what I meant... > I basically looking for an example to upload several file at once > (Compatible und

[web2py] Re: Anybody going to PyCon?

2010-01-18 Thread Richard
I agree the docs fragmentation is a serious problem. Perhaps Drupal could be used until a robust web2py based CMS is available. It would be great if content from the official manual could also be included in the public docs. Richard On Jan 16, 8:47 pm, Anand Vaidya wrote: > On Jan 16, 2:12

[web2py] t4 dead?

2010-01-18 Thread Richard
quot;" I noticed the t4 repository hasn't been committed to in 11 weeks (https://code.launchpad.net/t4), so was wondering what are the intentions for it. I was hoping to build on t4 for my own CMS to avoid making my code redundant later. Richard -- You received this message because you

[web2py] Re: Custom form for auth profile

2010-01-20 Thread Richard
hi Adnan, did you manage to get web2py running on HostGator? Richard On Jan 2, 12:38 pm, Adnan Smajlovic wrote: > I am trying to workout the installation problem with HostGator, who > unfortunately only supports Python 2.4 at the moment. I understand that I > should go with 2.5 an

[web2py] Re: "Slug" field plus database actions

2010-01-21 Thread Richard
I would like to show dynamic pretty URLs from the root of my app, such as: mysite/pretty-url instead of: mysite/blog/post/show/pretty-url Do I need routes for this? Richard On Jan 22, 1:38 am, pistacchio wrote: > hi to all! > a couple of questions. i'm writing a simple blog to

[web2py] Re: 255 jQuery plugins

2010-01-21 Thread Richard
Have you come across a JQuery plugin that supports rapidly skimming through an image set like Google's Fast Flip? For demo see http://fastflip.googlelabs.com/ -- You received this message because you are subscribed to the Google Groups "web2py-users" group. To post to this group, send email to w

[web2py] Re: Blogitizor Open Sourced

2010-01-24 Thread Richard
a few problems, which I will email to you. Richard On Jan 24, 9:48 pm, Thadeus Burgess wrote: > Ok. So I give it to you, the source of blogitizor. Its not my best > work, but I am limited by the quirks of web applications :( > > http://code.google.com/p/blogitizor/ > > There

[web2py] Re: no pending patches?

2010-01-24 Thread Richard
"""the XML is a patch that Massimo has obviously yet to apply. It is a bug in web2py WIKI helper instead of passing extras to markdown its passing extras to XML which is incorrect, you can look at my google clone of web2py gluon/contrib/markdown/__init__.py for the patch.""" On Jan 25, 6:45 am, m

[web2py] missing uploads directory error

2010-01-24 Thread Richard
uploading a file generates an error when the uploads directory does not exist. Instead of generating an error could web2py just create the directory? -- You received this message because you are subscribed to the Google Groups "web2py-users" group. To post to this group, send email to web...@goo

[web2py] Re: Blogitizor Open Sourced

2010-01-24 Thread Richard
Thanks for taking the effort to extract this from your personal site. Have submitted those issues as tickets. Ah I thought the admin layout seemed familiar - I had been evaluating RadiantCMS (RoR), which FrogCMS is a PHP clone of. Richard On Jan 25, 12:15 pm, Thadeus Burgess wrote: > And

[web2py] Re: Blogitizor Open Sourced

2010-01-24 Thread Richard
I just liked the Admin page layout and felt it was > suiting. > > -Thadeus > > > > On Sun, Jan 24, 2010 at 7:43 PM, Richard wrote: > > Thanks for taking the effort to extract this from your personal site. > > Have submitted those issues as tickets. > > >

[web2py] Re: Blogitizor Open Sourced

2010-01-25 Thread Richard
d have it hook into hazelcms as well. > > > So really Ive wondered do we need a CMS or a blog or a wiki, or do we > > need a true pluggable system that can become anything with the right > > mix and match of plugins > > > -Thadeus > > > On Mon, Jan 25, 2010 a

[web2py] Re: JOB POST: I need a Web2Py Developer

2010-01-27 Thread Richard
perhaps because OP asked for private reply. On Jan 27, 8:33 am, mdipierro wrote: > for what? > > On Jan 26, 2:24 pm, Alexandre Andrade > wrote: > > > > > I apologize. > > > 2010/1/26 Alexandre Andrade > > > > Mr., > > > > I'm insterested in your offer. > > > > My websites, hipercenter.com/init

[web2py] Re: state of documentation: why pdf?

2010-01-28 Thread Richard
I totally agree - the manual is a great resource but the PDF format makes it hard to traverse and doesn't keep up with new features. Django docs are excellent. This was brought up previously and the main obstacle (IIRC) is Massimo needs publications to justify working on web2py for his university.

[web2py] get or insert shortcut

2010-01-28 Thread Richard
I want to get the ID of a record with certain fields, and create it if not already existing. Is there a shortcut for this common operation? In Django it is called "get_or_create()" Also, is there a shortcut for update_or_create()? Thanks, Richard -- You received this message becau

[web2py] Re: get or insert shortcut

2010-01-28 Thread Richard
'table' is a DAL table reference, such as 'db.person' 'fields' is a dict, such as {'parent': 4, name: 'Richard'} """ logic = None for field, value in fields.items(): e = table[field] == value

[web2py] Re: get or insert shortcut

2010-01-28 Thread Richard
thanks that's much neater. > does not do what you think it does. can you explain? It worked for my test cases... > record = db(logic).select(table['id']).first() I noticed you removed the ID selection part - is there any efficiency gained in just selecting the ID? Richard

[web2py] Re: get or insert shortcut

2010-01-29 Thread Richard
Would these shortcuts belong in the DAL or a plugin? > db(logic).count() > since you do not need the record. You just need to know if it exists. I also need to know its ID. On Jan 30, 1:57 am, mdipierro wrote: > On Jan 28, 11:06 pm, Richard wrote: > > > thanks

[web2py] Re: jquery tools

2010-01-31 Thread Richard
how about JQuery UI: http://jqueryui.com/demos/ It handles drag and drop, tabs, sliders, etc, and can be hosted on Google: http://code.google.com/apis/ajaxlibs/documentation/index.html#jqueryUI On Feb 1, 5:28 am, weheh wrote: > Motto favoloso, MDP. Genio. -- You received this message because y

[web2py] web2py code style consistency

2010-01-31 Thread Richard
es? Also there are a lot of catch all exceptions that could potentially mask other problems, eg: try: from google.appengine.api.urlfetch import fetch return fetch(url).content except: import urllib return urllib.urlopen(url).read() Richard -- You receiv

[web2py] Re: web2py code style consistency

2010-02-01 Thread Richard
catch-all except left and they should be removed. > > On Jan 31, 9:03 pm, Richard wrote: > > > > > Browsing through gluon I noticed many inconsistencies such as spacing > > around operators (a=1; a =1; a = 1), spacing between arguments (a,b, > > c ,d), string quo

[web2py] improved functionality for fetch()

2010-02-01 Thread Richard
If I understand correctly, fetch() was added to web2py because at the time GAE did not support urllib2. Now GAE does support urllib2 which makes fetch() sort of redundant, but we need to keep it for backward compatibility. I found that urllib2 on GAE does not handle cookies as normal, so have been

[web2py] Re: DAL migration problem

2010-02-01 Thread Richard
I just experienced the same problem using "app" on Google App Engine, which wasted some time - it will be neat when the new DAL takes care of these problems! (It will, right?) On Feb 2, 8:48 am, mdipierro wrote: > Hi Andreas, > > you have > > Field("date", 'date', unique = True) > > "date" is a

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