[web2py] mapreduce.appspot.com

2011-07-10 Thread hcvst
Hi, I'm thinking of using this mapreduce lib for GAE, however it expects one to reference GAE entity_kinds. Is there a way to reference the underlying GAE entity through DAL? I've run into this problem in the past when trying to apply some GAE specific functions such as cursors for paging. Wou

[web2py] Re: Email as username

2011-01-30 Thread hcvst
from gluon.tools import Auth auth = Auth(globals(), db) auth.define_tables(username=False) Set username=True if you want auth to user username for login instead of email. """ On Jan 30, 11:55 am, hcvst wrote: > Hi Kenneth, > > remove the 'username' field from

[web2py] Re: Email as username

2011-01-30 Thread hcvst
Hi Kenneth, remove the 'username' field from the auth_user table. Also see Chapter 8 http://web2py.com/book/default/chapter/08 on custom tables. I think in the past w2p only used email by default. The new app wizard appears to include it now. Regards, HC On Jan 30, 11:13 am, Kenneth Lundström

[web2py] Output literal '{{' and '}}' in template

2011-01-07 Thread hcvst
Hi, I'm using a jQuery template plugin that also uses '{{' and '}}' as markers. I need to output something like in the rendered HTML. I'm now using this but is there a better way? {{=XML(u'')}} Thanks, HC

[web2py] Re: BUG? db.mytable.id.represent with Crud

2010-12-16 Thread hcvst
db.blog_posts, fields=['blog_posts.id', 'blog_posts.title'], linkto=None) return dict(posts=posts) On Dec 16, 6:08 pm, hcvst wrote: > Hi, > > I'm struggling to change a table's records ID representation when > using Crud. > (w2p Version

[web2py] BUG? db.mytable.id.represent with Crud

2010-12-16 Thread hcvst
Hi, I'm struggling to change a table's records ID representation when using Crud. (w2p Version 1.89.5 (2010-11-21 22:12:54)) def index1(): " List all blog posts " db.blog_posts.title.represent = lambda _: 'replace title' db.blog_posts.id.represent = lambda _: 'replace id' posts =

[web2py] Re: Suggestions for the Basic Authentications

2010-09-20 Thread hcvst
Sounds reasonable, but would I need to worry about the cascade attribute? In a CMS, I would hate to suddenly loose existing content that's tied to a user id if the user decides to retire his profile. =HC On Sep 20, 5:14 am, KMax wrote: > I guess, this is still actual. > And some thought on profi

[web2py] Re: forcing lowercase on auth email address (CLOSED)

2010-09-20 Thread hcvst
l the user entered to lowercase (this > ensures it will match and make a better experience for the user). > This is done as follows: > >           auth.settings.login_onvalidation = email_to_lower > > On Sep 18, 5:28 am, hcvst wrote: > > > > > Hi D

[web2py] Re: How to always call a function at the end

2010-09-18 Thread hcvst
Hi, I could call the function from layout.html but it is a plugin and it should work standalone. Some background - in case I'm on the wrong track or PluginManager is about to handle it. The site I am working on consists mainly of plugins (I'm inflicted with raving mad plugin fever), some of whic

[web2py] Re: forcing lowercase on auth email address

2010-09-18 Thread hcvst
Hi David, somehow, doesn't look pretty but this works. def email_to_lower(form): form.vars.email = form.vars.email.lower() auth.settings.login_onvalidation = email_to_lower I guess the login form should not be case sensitive. (Or should it, Massimo?) Regards, HC

[web2py] How to always call a function at the end

2010-09-18 Thread hcvst
Hi, I'd like to always call a function as the very last bit of application code for every request/response. Is there an existing callback mechanism I can hook into or is wsgi middleware perhaps the way to go? Regards, HC

[web2py] Re: web2py Africa

2010-09-04 Thread hcvst
e the site located. > More than this - it says that it runs on AppEngine :) > > On Sat, Sep 4, 2010 at 1:23 AM, hcvst wrote: > > Hi, > >http://www.domain-name-registration.co.zapowered by w2p, > > South African (co.za) domain name registration. > > Any w2p fans in/around Joburg? > > HC

[web2py] web2py Africa

2010-09-03 Thread hcvst
Hi, http://www.domain-name-registration.co.za powered by w2p, South African (co.za) domain name registration. Any w2p fans in/around Joburg? HC

[web2py] Re: OpenID, facebook, twitter, linkedin, etc etc

2010-08-26 Thread hcvst
Hi, Just stepped though RPXAccount and for some reason Janrain returns profile.providerName = 'Other' and no email the second time I logon with Google, so I end up with one profile with and one without email. Clearly something's wrong on their side. HC

[web2py] Re: OpenID, facebook, twitter, linkedin, etc etc

2010-08-26 Thread hcvst
Hi, [Version 1.83.1 (2010-08-11 23:52:55)] I am trying to use rpx as per chapter 8 of the W2P book (http:// web2py.com/book/default/chapter/08) from gluon.contrib.login_methods.rpx_account import RPXAccount auth.settings.actions_disabled=['register','change_password','request_reset_password'] a

[web2py] New app, now what? Best practices for dev workflow

2010-01-15 Thread hcvst
Hi, I started to use web2py in Jan 2009 and had a lot of fun using and learning it (and Python) the last year. However I also acquired a lot of habits that are probably not ideal. For example, after creating a new app, I would often remove most of the generated files rather than using them as the

[web2py:35914] Re: Using web2py with jython

2009-11-24 Thread hcvst
Hi Massimo, I ran web2py 16.7.2 on jython2.5.1/Sun java 1.6.0_11/Win XP without a problem after changing nodelay to False. Now suddenly I get this recursion error. I haven't changed anything but then again one never knows what changes the admins push to one's machine in a corporate environment. A

[web2py:34989] Re: Join web2py wave

2009-11-09 Thread hcvst
hile > tryinghttp://wavedirectory.appspot.com/init/default/wave?w=googlewave.com%2... > > On Nov 4, 8:54 am, hcvst wrote: > > >http://wavedirectory.appspot.com/init/default/wave?w=googlewave.com%2... > > > A public wave to

[web2py:34904] Re: Join web2py wave

2009-11-08 Thread hcvst
Hi Richard, in fact you can write at http://wavedirectory.appspot.com/init/default/wave/676f6f676c65776176652e636f6d21772b4450734a6167675941 too. Unfortunately you need to be logged into wave (to read or write). The embed mechanism (an iframe) requires that. HC On Nov 8, 11:41 pm, Richard wr

[web2py:34581] Re: Join web2py wave

2009-11-04 Thread hcvst
ie > > On 4 Nov., 07:54, hcvst wrote: > > >http://wavedirectory.appspot.com/init/default/wave?w=googlewave.com%2... > > > A public wave to discuss wave development on web2py. > > > HC --~--~-~--~~~---~--~~ You received this message becaus

[web2py:34550] Join web2py wave

2009-11-03 Thread hcvst
http://wavedirectory.appspot.com/init/default/wave?w=googlewave.com%2521w%252BDPsJaggYA A public wave to discuss wave development on web2py. HC --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "web2py-users" group. T

[web2py:34549] Re: powered by web2py?

2009-11-03 Thread hcvst
http://wavedirectory.net - Public google wave directory and wave bot http://auctionall.info - Private auctions http://w2popenid.appspot.com - OpenID consumer/provider example Thanks, HC On Oct 26, 4:46 am, mdipierro wrote: > www.appliedstacks.comis dead. This means I lost a way to keep track >

[web2py:34298] Re: 1.70.1 is OUT

2009-10-31 Thread hcvst
Note - seek(0) is not required. On Oct 31, 11:53 pm, hcvst wrote: > line 250: new_environ['wsgi.input']=request.body > > But: request.body is None at this stage > > Moving the wsgi section in main.py's wsgibase() further down (above > the load cookies), &

[web2py:34297] Re: 1.70.1 is OUT

2009-10-31 Thread hcvst
;] = request.body > > > can you check in gluon main.py should should have this line > > >             request.wsgi.environ = environ_aux(environ,request) > > > and environ_aux also on main.py defines wsgi.input > > > On Oct 31, 1:22 pm, hcvst wrote: > > > &g

[web2py:34278] Re: 1.70.1 is OUT

2009-10-31 Thread hcvst
mdipierro wrote: > request.env is the web2py environment > > request.wsgi.environ is the environment you want (created by web2py > for your app). It has wsgi.input. > > On Oct 31, 9:32 am, hcvst wrote: > > > Hi Massimo, > > > thanks, this makes wsgi a lot ea

[web2py:34269] Re: 1.70.1 is OUT

2009-10-31 Thread hcvst
Hi Massimo, thanks, this makes wsgi a lot easier - there are a few issues however: 1. environ['wsgi.input'] does not seem to exist - there is however request.env.wsgi_input. 2. Not sure what the wsgi spec says but one has to call seek(0) on wsgi_input to 'rewind' the buffer when using Google's w

[web2py:34024] Re: w2p as wsgi middleware

2009-10-29 Thread hcvst
http://www.web2pyslices.com/main/slices/take_slice/17 On 28 Okt., 19:47, mdipierro wrote: > cool! would you make a pyslice? > > On Oct 28, 12:20 pm, hcvst wrote: > > > Rough and dirty - but works for capabilities.xml already. It's odd > > that google's sta

[web2py:34023] New web2pyslice on Google Wave robot

2009-10-29 Thread hcvst
http://www.web2pyslices.com/main/slices/take_slice/17 Still work in progress, but testing locally seems to work. HC --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "web2py-users" group. To post to this group, send e

[web2py:33944] Re: w2p as wsgi middleware

2009-10-28 Thread hcvst
otProfileHandler (myRobot)), ('/_wave/robot/jsonrpc', lambda: robot.RobotEventHandler (myRobot)), ], debug=False) app(wsgienv, start_response) buffer.seek(0) return buffer.read() On Oct 28, 5:13 pm, mdipierro wrote: > I would do the same, the problem is the ori

[web2py:33924] Re: w2p as wsgi middleware

2009-10-28 Thread hcvst
m, mdipierro wrote: > On Oct 28, 7:05 am, hcvst wrote: > > > Hi, > > > can I dispatch from a w2p controller to another wsgi app? Sth like: > > > def index(): > >     wsgiapp(env, start_response) > > No > > > Alternatively, is there a method to write

[web2py:33909] w2p as wsgi middleware

2009-10-28 Thread hcvst
Hi, can I dispatch from a w2p controller to another wsgi app? Sth like: def index(): wsgiapp(env, start_response) Alternatively, is there a method to write the HTTP response directly, where 'directly' could mean directly to the socket itself? Thanks,. HC --~--~-~--~~--

[web2py:31320] Re: I'd like to see people add their web2py developed sites to an area of "www.web2py.com"?

2009-09-19 Thread hcvst
An "Add to directroy" link next to EDIT etc. in the admin might be nice. Generally I think it would be great if w2p instances were more aware of other w2p instances (obviously only if the admin wants that), such that one could look for a thumbnail, webshot, payment, ... services offered by other i

[web2py:/] How mature is DAL's GAE support

2009-09-19 Thread hcvst
Hi, I am planning to deploy to GAE and should hopefully see quite a few users eventually. Does DAL's GAE support scale well? Will I run into the 1000 fetch() limit or is that handled under the hood for example? Should one rather handcraft the Datastore interface with let's say 1000 concurrent use

[web2py:30828] Re: Long running process

2009-09-12 Thread hcvst
> > On Sep 12, 10:03 am, hcvst wrote: > > > Hi, > > > in one of my controllers I am using urllib.urlretrieve to download a > > file from a remote site. > > Obviously the controller function only returns when done, but also all > > other requests to the >

[web2py:30816] Long running process

2009-09-12 Thread hcvst
Hi, in one of my controllers I am using urllib.urlretrieve to download a file from a remote site. Obviously the controller function only returns when done, but also all other requests to the app are not serviced. Requests to other apps on the same w2p instance are however. Is that normal? As such

[web2py:29001] Re: {{=T('Howto')}}

2009-08-20 Thread hcvst
he whole paragraph again. > > Sorry that my feedback doesn't provide any substantial help. > > Regards, > Iceberg > > On Aug16, 10:47pm, hcvst wrote: > > > > > Hi Iceberg, > > > it's a lengthy paragraph and I want to be able to translate it as

[web2py:28750] Re: {{=T('Howto')}}

2009-08-16 Thread hcvst
is to separate language string (the "Howto") from appearance (the > "..."). > > On Aug15, 7:34pm, hcvst wrote: > > > Is it > > {{=XML(T('Howto'))}} > > One tends to find an answer only ever after submitting a question. > > >

[web2py:28732] Re: Bug with T.force()

2009-08-16 Thread hcvst
ce('en') Out[2]: ['en'] In[3]: T('Hello World').xml() Out[3]: 'Hello World' In[4]: T.force('fr-fr') Out[4]: ['fr-fr'] In[5]: T('Hello World').xml() Out[5]: 'Hello World' Same result. I loose the translation. On Aug 16

[web2py:28728] Re: Bug with T.force()

2009-08-16 Thread hcvst
Hi Massimo, Debian Etch (original post) Ubuntu 9.04 (shell example) HC On 16 Aug., 09:37, mdipierro wrote: > Is this under windows? > > On Aug 15, 1:27 pm, hcvst wrote: > > > 1.65.11 (2009-08-04 16:42:46) > > > On Aug 15, 7:05 pm, mdipierro wrote: > &g

[web2py:28703] Re: Bug with T.force()

2009-08-15 Thread hcvst
Out[5]: ['it'] In[6]: T('Hello World').xml() Out[6]: 'Hello World' An below's what's left in it.py { 'Hello World': 'Hello World', } HC On 15 Aug., 19:05, mdipierro wrote: > which web2py version (date)? > > On Aug 15, 8:1

[web2py:28700] Re: Bug with T.force()

2009-08-15 Thread hcvst
1.65.11 (2009-08-04 16:42:46) On Aug 15, 7:05 pm, mdipierro wrote: > which web2py version (date)? > > On Aug 15, 8:12 am, hcvst wrote: > > > Ok, there's also a mistake in my db.py it should say > > > if session.lang: > >     T.force(session.lang) > &g

[web2py:28690] Re: Bug with T.force()

2009-08-15 Thread hcvst
Ok, there's also a mistake in my db.py it should say if session.lang: T.force(session.lang) Nonetheless, loosing the translation is strange. T.force(None) only switches translation off, doesn't it? On 15 Ago, 15:05, hcvst wrote: > 1.65.11 > > Hi, > > I've j

[web2py:28688] Bug with T.force()

2009-08-15 Thread hcvst
1.65.11 Hi, I've just translated the better part of my site into German and added the following lines to db.py lang = request.vars.get('lang', None) if lang: session.lang = lang if session.lang: T.force(lang) I am not sure what happend but after adding the querystring ?lang=de my entir

[web2py:28683] Re: {{=T('Howto')}}

2009-08-15 Thread hcvst
Is it {{=XML(T('Howto'))}} One tends to find an answer only ever after submitting a question. On 15 Aug., 13:22, hcvst wrote: > Hi, > > I am sure I've seen this question here before but I cannot find it. > Can one translate an entire paragraph i

[web2py:28682] {{=T('Howto')}}

2009-08-15 Thread hcvst
Hi, I am sure I've seen this question here before but I cannot find it. Can one translate an entire paragraph including the markup? HC --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "web2py-users" group. To post to

[web2py:28661] Re: creating default folder in controller

2009-08-14 Thread hcvst
Hi Jim, There is only one controllers folder in web2py/applications//controllers Into that folder you place all your Python controller files. Each controller file can contain one or more functions. For example web2py/applications//controllers/default.py may contain functions such as def index()

[web2py:28657] Re: logo

2009-08-14 Thread hcvst
B Although A looks better at the moment B has, in my opinion, more potential to evolve into sth unique and memorable. The appeal of A (and I was initially going to vote for A) might just be that it captures web2.0 fashion very well. But why look like everyone else? I feel that A is static whils

[web2py:28457] Re: def download(): slow

2009-08-12 Thread hcvst
headers['Cache-Control'] = 'max-age=3600' But that had no effect either. Every time I revisit the page the pictures would briefly flash (as if cached) and then start trickling in again. Finally this fixed it: if request.env.http_if_modified_since: raise HTTP(304)

[web2py:28366] def download(): slow

2009-08-11 Thread hcvst
Hi, I am surprised I didn't find a post on slow downloads, but perhaps it's only so bad because my internet connection is terribly slow. def download(): """ allows downloading of uploaded files http:///[app]/default/download/[filename] """ return response.download(request

[web2py:28364] Re: Very Strange Bug. Could be a Consequence of Exec

2009-08-11 Thread hcvst
Hi, sorry for not joining you on #web2py the other day, but as I said in my mail I am currently busy moving house and had a system GoLive this weekend. Not sure whether this is still relevant to you but my last w2popenid commit (http://bitbucket.org/hc/w2popenid) does not include Web2PyFetcher an

[web2py:27822] Re: gluon.contrib.login_methods.CasAuth

2009-08-02 Thread hcvst
I agree. Also, OID should just be an alternative login method, with the standard method always being available (unless disabled) too. =HC On Aug 2, 3:24 pm, mdipierro wrote: > Let's think about this some more. > > Massimo > > On Aug 2, 8:23 am, hcvst wrote: > > >

[web2py:27818] Re: gluon.contrib.login_methods.CasAuth

2009-08-02 Thread hcvst
is create a new OpenIDAuth class that replaces > > > Auth and exposes similar 'login', 'logout', 'require login' > > > functionality. > > > > I think you did this already in the OpenID app. > > > > Massimo > > > >

[web2py:27803] Re: gluon.contrib.login_methods.CasAuth

2009-08-02 Thread hcvst
Comment to self really. OID has to be stored, as otherwise any OID claiming to be associated with email address can access that account. On Aug 2, 12:59 pm, hcvst wrote: > Hi Massimo, > > thanks for your reply. > > I had another look and don't think one has to necessari

[web2py:27802] Re: gluon.contrib.login_methods.CasAuth

2009-08-02 Thread hcvst
do is create a new OpenIDAuth class that replaces > Auth and exposes similar 'login', 'logout', 'require login' > functionality. > > I think you did this already in the OpenID app. > > Massimo > > On Jul 29, 5:12 pm, hcvst wrote: > > >  Hi,

[web2py:27753] Re: OpenID for Web2Py

2009-08-01 Thread hcvst
am not looking forward to duplicating effort again if > someone has already started or finished it. > > On Jul 27, 1:07 am, hcvst wrote: > > > Hi, > > > when I first came across this post, I was working on a provider so I > > just posted my code. > > I thin

[web2py:27565] gluon.contrib.login_methods.CasAuth

2009-07-29 Thread hcvst
Hi, I am just trying to implement CasAuth to plug openID (oID) into auth (). I've got a simple oID server/consumer app using the Janrain Python oID lib. The login_methods.gae example included in the login_methods folder seems to fit (too) well, as all external calls are wrapped nicely in the g

[web2py:27564] Restrict profile updates

2009-07-29 Thread hcvst
Hi, how do I permit my users to capture their email address during registration but disallow them to change it when they are updating their auth() profile, please? Regards, HC --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Goog

[web2py:27452] Re: OpenID for Web2Py

2009-07-27 Thread hcvst
e w2popenid thing is derived from it) is here: http://github.com/hcvst/icy-openid and intended to replace the php! provider at http://icy.co.za asap. Can we work together? Regards, HC On Jul 27, 7:45 am, Bottiger wrote: > So is hcvst part of your team of 3 people? > > I don't under

[web2py:27422] Re: OpenID for Web2Py

2009-07-26 Thread hcvst
For that, it looks like one needs to also have the code for > > > openid.store > > > I assume the word 'store' means 'storage', rather an a 'store' where > > > one buys things... > > > > Then I downloaded web2py.app.oidc

[web2py:27394] Re: OpenID for Web2Py

2009-07-25 Thread hcvst
here > > one buys things... > > > Then I downloaded web2py.app.oidconsumer.w2p.gz > > I extracted it and got the oidconsumer.w2p, but web2py failed to be > > able to install it. > > So I renamed the .w2p to be a .tar and I unpacked it with winrar. > > That g

[web2py:27367] Re: killer app idea

2009-07-25 Thread hcvst
I think the requirements (distributed, p2p) are covered by the wave protocol http://www.waveprotocol.org/draft-protocol-spec as proposed by Google Wave. I am excited by what Google Wave promises. Perhaps it's time to start work on a web2py implementation. HC On Jul 21, 7:13 pm, Francisco Gama

[web2py:27317] Re: OpenID for Web2Py

2009-07-24 Thread hcvst
Hi, I've uploaded a working openid consumer to http://w2popenid.appspot.com/oidconsumer It uses the Web2pyStore I posted above ( http://pastebin.co.za/22362 ) and a custom fetcher (Web2pyFetcher) that permits headers etc. to be send. Please see whether it works for you. My battery is about to d

[web2py:27230] Re: How2PyII

2009-07-23 Thread hcvst
How about using Massimo's Killer App idea http://groups.google.com/group/web2py/browse_thread/thread/995e36b68c0c7e51/11511528c0753952?lnk=gst&q=killer+app#11511528c0753952 to distribute these article.apps. A distributed howto/app repository sounds fun! HC On Jul 21, 6:28 pm, JohnMc wrote: > Ho

[web2py:27149] Re: too many values to unpack

2009-07-22 Thread hcvst
2:21 PM, Hans Donner wrote: > > > Thanks. > > Pasted into a new db.py and ran appadmin. No issues here, can browse > > around. > > What DB are you using? Have you tried in a clean (db) environment? > > > On Tue, Jul 21, 2009 at 21:14, hcvst wrote: > > > &g

[web2py:27098] Re: OpenID for Web2Py

2009-07-21 Thread hcvst
and a still rather messy example using the same Web2pyStore with openid to implement the server side. http://pastebin.co.za/22363 I'm trying to write an openID server app. By tomorrow I should commit a functional version to http://github.com/hcvst/icy-openid. I haven't got quite t

[web2py:27093] Re: OpenID for Web2Py

2009-07-21 Thread hcvst
Hi, here's a consumer example I wrote. It implements openid.store.interface.OpenIDStore and makes it easy to use the openid lib in a controller (example included). http://pastebin.co.za/22362 HC --~--~-~--~~~---~--~~ You received this message because you are sub

[web2py:27079] Re: too many values to unpack

2009-07-21 Thread hcvst
http://pastebin.co.za/22355 On Jul 21, 8:37 pm, Hans Donner wrote: > can you mail me the complete model as attachment? lot of other table > dependencies in your posting, want to run it here. > > On Tue, Jul 21, 2009 at 20:17, hcvst wrote: > > > Controller/function are:  /ap

[web2py:27068] Re: too many values to unpack

2009-07-21 Thread hcvst
Controller/function are: /appadmin/index On Jul 21, 8:15 pm, hcvst wrote: > I tried now with web2py 1.65.5 (2009-07-15 17:10:40) > and get the same error. > > The other tables in the model do not use validators. > > Thanks, > HC > > --- > > On Jul 21, 7:44 p

[web2py:27067] Re: too many values to unpack

2009-07-21 Thread hcvst
Jul 21, 2009 at 19:26, hcvst wrote: > > > Hi, > > > when tying to use the integrated db admin the error below is raised. > > > Error traceback > > Traceback (most recent call last): > >  File "/home/hcvst/dev/web2py/gluon/restricted.py", line 98,

[web2py:27063] too many values to unpack

2009-07-21 Thread hcvst
Hi, when tying to use the integrated db admin the error below is raised. Error traceback Traceback (most recent call last): File "/home/hcvst/dev/web2py/gluon/restricted.py", line 98, in restricted exec ccode in environment File "/home/hcvst/dev/web2py/applicatio

[web2py:26795] Re: cache.ram

2009-07-18 Thread hcvst
As usual, writing about it, helped: This works. def db_init(): #init db return True cache.ram('db_init', lambda:db_init(), time_expire=30758400) --- HC On Jul 18, 3:16 pm, hcvst wrote: > Hi, > > I am trying to run a bit of model code only once to init t

[web2py:26794] cache.ram

2009-07-18 Thread hcvst
Hi, I am trying to run a bit of model code only once to init the db. I tried to use cache.ram: --- if not cache.ram('db_loaded', lambda:False, time_expire=0): # do db stuff cache.ram('db_loaded', lambda:True, time_expire=30758400) #=60*60*24*356 --- Yet cache.ram always returns False. I

[web2py:22683] Re: response.flush()

2009-05-26 Thread hcvst
gt;     response.headers['Content-Type'] = 'application/octet-stream' >     response.headers['Content-Disposition'] = 'attachment; > filename=download.csv' >     return response.stream(CSVstreamer(cond, outfields), 64) > > On May 26

[web2py:22677] response.flush()

2009-05-26 Thread hcvst
Hi, I would like to 'stream' results to the browser as they become available. Something like: --- response.write(lengthy_op(1)) response.flush() response.write(lengthy_op(2)) response.flush() ... I am now thinking of extending StringIO to write sth like response.stream(MyStringIO( [ (lengthy_o

[web2py:20753] Re: jsonpickle module

2009-04-28 Thread hcvst
if you run from source, simply install jsonpickler in site-packages > and use it normally > > 3) you can install it under gluon/contrib and it will be available to > all your apps and will see simplejson. > > On Apr 28, 12:08 pm, hcvst wrote: > > > Hi, > >

[web2py:20747] jsonpickle module

2009-04-28 Thread hcvst
Hi, I would like to use the jsonpickle module - http://code.google.com/p/jsonpickle/ - with web2py. I thought to just place it in the modules dir of my app and to import it into a controller via import applications.myapp.modules.jsonpickle , however it complains with 'ImportError: No module nam

[web2py:16102] Re: Abusing model files for common functionality

2009-02-09 Thread hcvst
Thank you for your response, Tim. I didn't know that lists comprehension performs better. I assumed it to be mostly a short-hand notation inspired by a functional programming style. HC --~--~-~--~~~---~--~~ You received this message because you are subscribed to th

[web2py:16087] Abusing model files for common functionality

2009-02-09 Thread hcvst
Hi, thanks for the new release and all the effort you put in. Even if I am new to web2py and not a seasoned Python programmer yet, the release notes sound very promising and I look forward to experimenting further. My question: Model files seem such a convenient location to place functionality

[web2py:15548] Re: Portal using web2py (+ T2)

2009-01-27 Thread hcvst
Thank you for your reply, Massimo. I look forward to 1.56 Thanks, HC --~--~-~--~~~---~--~~ 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@googlegroups.com To unsubs

[web2py:15526] Portal using web2py (+ T2)

2009-01-27 Thread hcvst
Hi, first of all, thank you for web2py. It allowed me to build a simple, clean webapp without having to read tons of documentation or to think too much about design/code organization very quickly. I love the straight-forward, browser-based dev approach, although the admin UI would probably benefi