Hi
You should probably put the @login_required on the view method that
presents the form (ie the get) that the user would then post from.
Rgds
T
On Nov 14, 3:41 pm, 风笑雪 wrote:
> Hi, you can see the code in SDK:
> google_appengine\google\appengine\ext\webapp\util.py
>
> @login_required should
I think you'd better check your logs. There must be some other error
on the page or in the view. First view the source of the page and see
if it's blank.
--
You received this message because you are subscribed to the Google Groups
"Google App Engine" group.
To post to this group, send email to
Not really related to this, but I had following problem: how to
convert local finnish time zone to utc. I could not really find
solution to this. Using python time library does not work because
time.tzset does not work on app engine. In the end I decided to build
solution by hand, only working for
Forget the method first_sunday:
def first_sunday(d):
while 1:
if d.weekday() == 6: # sunday
return d
d -= datetime.timedelta(days=1)
On Nov 14, 7:41 pm, Simo Salminen wrote:
> Not really related to this, but I had following problem: how to
> convert local finnish
Don't understand the db.get(some_key) part...why is it possible to do
such a call in the first place...? I mean wht is so special in the db
model we've defined which allows us to do a db.get()...?
--deostroll
--
You received this message because you are subscribed to the Google Groups
"Google A
How should I determine the timedelta offset..is it based on GMT...?
On Nov 14, 10:45 pm, Simo Salminen wrote:
> Forget the method first_sunday:
> def first_sunday(d):
> while 1:
> if d.weekday() == 6: # sunday
> return d
> d -= datetime.timedelta(days=1)
>
> On Nov
Anyone knows if will naked domains be available agina on google
appengine and google apps? I need short url to my app be accessable to
mobile devices more easy =[
--
You received this message because you are subscribed to the Google Groups
"Google App Engine" group.
To post to this group, send e
This is a real problem for GAE.
Low traffic sites are getting cycled out very aggressively, sometimes
in 1-3 seconds. This creates an unacceptable user experience for low
traffic sites, because almost every user sees a 3-10 second delay, and
if they take a couple of seconds to read the page, they
If u r looking for a scenario...I have a table called WorkTracker
define like this:
class WorkTracker(db.Model):
api_key = db.StringProperty()
scriptid = db.StringProperty()
status = db.StringProperty()
trials = db.IntegerProperty()
There is a scheduled task which
I am using this recipe to keep a hot handler at all times, so you do
not see cold boot latency on a low volume app:
http://appengine-cookbook.appspot.com/recipe/hot-handler
Robin
On Nov 14, 2:17 pm, Devel63 wrote:
> This is a real problem for GAE.
>
> Low traffic sites are getting cycled out
Hi all,
I would like to know if there's a way to get the Message-Id field of a sent
email.[1] I would like to access the message-id because it will allow me to
thread email conversations properly (and because google clearly adds them to
all outbound mail). I realize that gmail will try to apply so
Hi,
I am using Beautiful soup www.crummy.com/software/BeautifulSoup to
fetch title of a url and storing it in datastore as StringProperty .
It works with most of them but like www.code.google.com/ it throws an
exception while storing in datastore.
Exception BadValueError:
"Property value url_title
I want to find that particular entity, change it and save it back. When one
request is doing this, I don't want another request pick up the same entity
and modify it again. In short, I want the 'seek-change-save' to be
serialized, as one reason the GAE transaction is designed for. Finding out
the k
you should read the section here:
http://code.google.com/appengine/docs/python/datastore/functions.html#run_in_transaction
where they show an example of iterating a counter in a transaction.
If you don't already know the key for the object... then you sort of need to
get it to run your transacti
Nevermind, I see what you mean.
So you want a lock on the entity once you know it exists (and satisfies your
where clause).
..since something might have come along and updated the p1 column from None
to Something before your transaction began.. and thus the key would refer to
an entity that does
15 matches
Mail list logo