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
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
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
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
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
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 =
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
>
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),
&
;] = 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
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
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
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
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
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
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
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
--~--~-~--~~--
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
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
>
> 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
>
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
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
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.
>
> >
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
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
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
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
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
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
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
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
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()
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
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)
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
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
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:
>
> >
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
>
> > >
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
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,
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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,
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
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
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
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
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
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,
>
>
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
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
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
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
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
80 matches
Mail list logo