book = Books.get(Key(self.request.get('id')))
book.name = self.request.get("name")
...
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups
"Google App Engine" group.
To post to this group, send email to google-appengine
I am able to display i18n messages using the default GAE django. But
it chooses the locale by LANGUAGE_CODE in settings.py. How can I make
GAE to automatically detect the browser's locale and choose the right
locale, like in the normal django? I tried to put
#MIDDLEWARE_CLASSES = (
# 'django.co
I don't think you can use bulk uploader for your purposes but you can
just investigate how it works.
However yes, you can update records. Just use the same key name for
updated records.
On Jan 11, 9:23 pm, gabon wrote:
> Well, Bulk Data Uploader seems definitely very useful. What if I would
> li
You can implement your own HandleEntity()
class MyLoader(bulkload.Loader):
def HandleEntity(self, entityNew):
- look for an entity with the same primary key
- if found
update the attributes of this entity from entityNew (a dict)
entity.put()
return None # bulkload will ignore
No replies yet...
On Jan 11, 5:45 am, ramu wrote:
> Dear Google App Engine Developer ,
>
> I am halfway completing my real app but can't get a way to upload this
> basic learning "hello world" app. Please Help Me. I am ataching the
> error logs as screen shoot.
>
> Thanks in advance.
>
> Error :
cant point my cname to *appspot or ghs.google wants to verify phone
number then says already used to verify ?
man ill tell ya
was working fine for 1 evening the next morning wont hit
--~--~-~--~~~---~--~~
You received this message because you are subs
Try replacing
SET HTTP_PROXY = 202:141:80:22:3128
with
SET HTTP_PROXY=http://202.141.80.22:3128";
On Jan 12, 10:59 pm, ramu wrote:
> No replies yet...
>
> On Jan 11, 5:45 am, ramu wrote:
>
> > Dear Google App Engine Developer ,
>
> > I am halfway completing my real app but can't get a wa
> You could use the id instead of the key, key().id, then you can get it
> back with just DocModel.get_by_id(id)
>
> You should be able to go straight to the doc without the parent
> account id /doc/12345
>
> I'm not sure you can guarantee id uniqueness across your whole data
> store, but it shoul
Hi all
Using Google App Engine SDK with default port setting of 8080. I have
two WSGI applications [App1 and App2 both are web services with no UI
related code in them]. App1 is running on default port 8080. Can dev
server listens for multiple web applications on same port? If no, then
what other
Why not select the two different Apps with your app.yaml file
- url: /app1/.*
script: App1.py
- url: /app2/.*
script: App2.py
Or you can put both handlers in one py file and select the one you need with
class App1Handler(webapp.RequestHandle
http://groups.google.com/group/google-appengine/browse_thread/thread/517a9ad5edd263d2/67a5160882462463?lnk=gst&q=are+ids+unique#67a5160882462463
http://code.google.com/appengine/docs/datastore/keysandentitygroups.html#Entity_Groups_Ancestors_and_Paths
Looks like they are unique for a given kind
I've added issue 982:
http://code.google.com/p/googleappengine/issues/detail?id=982
as an issue to include a possible workaround for the datastore
timeouts.
Here's the text of the issue:
>From what I can tell, it's not a case of if you're going to get
datastore
timeouts on puts, but when. My or
On Dec 31 2008, 5:04 pm, Aramaki wrote:
> - The comunity interest in implementingjavawill give you so much
> advantage or it is because you do no want to learn python
For me, the same reason I prefer groovy over other dynamic languages:
I know java.
I have a java background, I know java tools,
Why don't you subclass ImageReader.
This class contains the image Blob and serves it like an ImageReader.
Just implement the ImageReader methods needed for drawing.
2009/1/11 NewPyHacker :
>
> Hi,
> I spent a lot of time trying to figure out ways to embed images in
> pdf , I tried all sorts of s
Hi all
I have three folders
BusinessList
Conversion
DB
First two folders contains one WSGI app [no UI] each. The last folder
contains a datta model [2 tables with 1- to Many relationship]
Each WSGI app accesses the data model in DB folder. My problem is that
If I place the data model file in DB f
>
> Marzia in this thread has already said they dont offer any guarantees.
>
Is Marzia a primary source?
> I'm still unsure how knowing that (say) it shouldnt deviate more than
> 10 seconds is actully going to help. What will you do with that
> figure?
I'd compare the stated maximum uncertaint
I guess you can use the import statement in the other directories to access
anything from DB floder
lets say if you have models.py in DB folder contains your data model
classes
then in the other directories you can access it by
from DB import models
On Mon, Jan 12, 2009 at 9:09 AM, arnie
Try adding an empty __init__.py file into your DB folder. This marks
the DB folder as a 'package' and allows you to import modules from it.
More info at:
http://www.python.org/doc/2.5.2/tut/node8.html
On Jan 13, 2:09 am, arnie wrote:
> Hi all
> I have three folders
> BusinessList
> Conversion
>
On Jan 12, 9:18 am, Cesium wrote:
> > Marzia in this thread has already said they dont offer any guarantees.
>
> Is Marzia a primary source?
Yes, Marzia is part of the app engine team.
--~--~-~--~~~---~--~~
You received this message because you are subscribed
The quota is 864 memcache API calls/day, and
http://code.google.com/appengine/docs/quotas.html#Memcache doesn't
list it as adjustable which seems to be an indication that you won't
be able to purchase more.
On Jan 11, 8:34 pm, altden wrote:
> What about memcache? I could not find prices (or
Hi,
I am using a supported carrier in Australia. I cannot get my mobile
number to be accepted.
The message I get is:
There were errors: * Mobile Number or Username
Is there a special format I need to use?
This is the format I am using. Any help would be appreciated.
61 000 000
Than
Have you change application name in app.yaml?
2009/1/12 ramu
>
> No replies yet...
>
> On Jan 11, 5:45 am, ramu wrote:
> > Dear Google App Engine Developer ,
> >
> > I am halfway completing my real app but can't get a way to upload this
> > basic learning "hello world" app. Please Help Me. I am
Hi,
I am using a supported Australian carrier but am getting the following
error when I try to verify.
There were errors: * Mobile Number or Username
I am using the following format 61 000 000. I have tried removing
spaces, adding + symbol.
Can you please tell me what the format for an Au
I have same problem on domain 'bagofengines.com' I tried all of the
solutions mentioned above with no joy please can you help.
On Dec 29 2008, 10:28 pm, Marzia Niccolai wrote:
> Hi,
>
> This issue should now be fixed.
>
> -Marzia
>
> On Tue, Dec 23, 2008 at 7:52 PM, paradise wrote:
>
> > Thanks
Hi,
I am using a supported Australian carrier but am getting the following
error when I try to verify.
There were errors: * Mobile Number or Username
I am using the following format 61 000 000. I have tried removing
spaces, adding + symbol.
Can you please tell me what the format for an Au
On Jan 11, 10:56 pm, thebrianschott wrote:
> Gipsy,
>
> It is a consequence of my chosen design, to allow both "clients" and
> "organizers" to enter the app via the same door. This way the
> organizers can identify themselves before they enter the app so that
> they need not be asked later who
That means that there cannot be a change in the models definitions
between
versions.
v2 of an app is presumably for testing, so the data there need not be
preserved.
If the data in v1 needs to be preserved after the switch to v2
one can always dump and restore the db.
On Jan 11, 10:01 pm, Alexan
> > > Marzia in this thread has already said they dont offer any guarantees.
>
> > Is Marzia a primary source?
>
> Yes, Marzia is part of the app engine team.
I'm hosed.
Cesium
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Goo
On Mon, Jan 12, 2009 at 9:59 AM, Cesium wrote:
>> > > Marzia in this thread has already said they dont offer any guarantees.
>>
>> > Is Marzia a primary source?
>>
>> Yes, Marzia is part of the app engine team.
>
> I'm hosed.
Cesium,
What algorithm are you trying to implement that requires syn
This HandleEntity looks very cool!
thanks a lot, chr
On Jan 12, 9:05 am, djidjadji wrote:
> You can implement your own HandleEntity()
>
> class MyLoader(bulkload.Loader):
> def HandleEntity(self, entityNew):
> - look for an entity with the same primary key
> - if found
> update the attr
Geoffrey,
It is not my desire to hardcode the urls, but I don't know how not to;
my programming skills are limited. Or maybe I have not understood the
suggests given here by you folks about how to do it in a way that is
not hardcoded.
The path a user takes in my application depends on whether s/
Hello,
I am trying to built a supply chain with two applications,say one
application takes in the information from the user and the other
application deals with one raw material.
Suppose these two applications are hosted in google app engine,will
they be able to exchange data?
regards,
Kris
Hi,
At this time, appcfg.py will update any file that has changed since
the last update. There is now way to specify only a subset of files
to update.
-Marzia
On Sat, Jan 10, 2009 at 10:06 AM, Nefarious wrote:
>
> So, I want to update just one file on production GAE, however, I have
> many ch
>
> What algorithm are you trying to implement that requires synchronized
> clocks? To my knowledge it's a pretty well-known best-practice to
> never rely on clocks being the same across a distributed system. Some
> algorithms can take advantage of closely correlated clocks, but I
> believe they n
On 12 tammi, 21:18, Krishna Gollapudi wrote:
> I am trying to built a supply chain with two applications,say one
> application takes in the information from the user and the other
> application deals with one raw material.
> Suppose these two applications are hosted in google app engine,wil
I have a simple model like this:
class MyModel(db.Model):
prop = db.StringProperty()
active = db.BooleanProperty(default=False)
Given an input string, s, I'd like to know if it is in the datastore.
Would this be the best way to check?
if MyModel.gql("WHERE prop = :1 AND active = True", s).
Hi,
If you reply with your app id I can look in to it directly.
If you can find the data in the dataviewer, however, you can get the
key string (from the data's URL) and call db.delete() directly on that
key in your application (if, for instance, you included something like
shell with your appli
Version control becomes essential for maintaining app engine apps.
With Subversion, for instance, you can tag your repository whenever
you deploy, then keep working along the trunk. If you want to make a
change to the current production app, check out the tag, make the
change and deploy again. M
Am i doing something crazy or should i report this as a bug?
On Jan 9, 6:45 pm, Paul wrote:
> I have a GQL query that works fine when theres only one Merchant
> Entity, but fails as below when theres more than 1, any ideas?
>
> merchantList= [e.key() for e in Merchant.all().fetch(10)]
>
> Item.
Hi,
What is the model definition for Item?
-Marzia
On Mon, Jan 12, 2009 at 2:58 PM, Paul wrote:
>
> Am i doing something crazy or should i report this as a bug?
>
>
> On Jan 9, 6:45 pm, Paul wrote:
>> I have a GQL query that works fine when theres only one Merchant
>> Entity, but fails as bel
Hi,
execfile is a builtin Python function, so it seems like there is
something amiss with your python installation. What version of Python
are you using? Does it run, and can you use built-in functions, from
the command line interpreter? What is your PYTHONPATH?
-Marzia
On Fri, Jan 9, 2009 at
This format worked for me: +61 4xx xxx xxx
It looks like you are including a leading '0' after the country code,
try removing it.
See also this thread: http://is.gd/fBro
On Jan 12, 10:02 pm, bannerdyne wrote:
> Hi,
>
> I am using a supported carrier in Australia. I cannot get my mobile
> numbe
See http://is.gd/fBsX
On Jan 12, 11:58 pm, bannerdyne wrote:
> Hi,
>
> I am using a supported Australian carrier but am getting the following
> error when I try to verify.
>
> There were errors: * Mobile Number or Username
>
> I am using the following format 61 000 000. I have tried removin
Hi,
We are working on making sure all of the SDK download links in our
translated documentation get updated when a new SDK is released.
However, the latest SDK is always available from our codesite project:
http://code.google.com/p/googleappengine
-Marzia
On Sat, Jan 10, 2009 at 8:15 PM, WaChe
> Is there a faster/better way? Do I need to do anything with indexes to
> make this query better?
>
You can replace fetch(1) with get(), which is essentially the same.
Other than that, if you know your entity's id/key_name, it's slightly
faster to fetch it using get_by_id() or get_by_key_name().
Hello,
what is the preferred way of retrieving the latest revision of a
document?
(The 'name' doesn't change across the revisions.)
1:
class Document(db.Model):
name = db.StringProperty()
revision = db.IntegerProperty()
content = db.TextProperty()
latest = Document.all().filter('name =', s
The first variant is faster while the second one requires less
maintenance if you rename your documents a lot. Both will do the job.
I'd use the first, de-normalised model unless you normally have a lot
of revisions per document, modify the common document meta-data quite
often, and the meta-data
Hi Marzia, heres everything i could think of that might be relevent:
[Edit Item -> ImgItem]:
ImgItem.gql('WHERE style = :style and merchant in :merchants ORDER BY
__key__',style=theStyle,merchants=merchantList)
class Item(BaseModel):
name = db.StringProperty()
cumulative_avg = db.FloatPr
Ok, I'll go with the first model. Thanks for the reply!
On Jan 13, 12:53 am, Alexander Kojevnikov
wrote:
> The first variant is faster while the second one requires less
> maintenance if you rename your documents a lot. Both will do the job.
>
> I'd use the first, de-normalised model unless you
Wery strange!
I try to use ifequal with filters and it dosent work
i search around web and found this is a normal
but in october ive write very similar code and it working! i lost my
working code and now try to rewite
in appengine i cant use {% with ... %} because it dosent exists
what you do
Do you use (Django) templates?
If not start using them, separate the function (code) from the
presentation (html)
Read the GAE example
http://code.google.com/appengine/docs/gettingstarted/templates.html
There they show you how to use the
users.create_logout_url()
users.create_login_url()
method
If you don't need the entity, count(1) would be faster than fetch(1) or
get().
-- Dan
On Mon, Jan 12, 2009 at 12:54 PM, SM wrote:
>
>
> I have a simple model like this:
>
> class MyModel(db.Model):
> prop = db.StringProperty()
> active = db.BooleanProperty(default=False)
>
> Given an input str
You have no knowledge when your request is executed on the server.
Launching a new interpreter takes time, the server is busy processing
other requests. If the time of the data is important you should take a
time measurement at the sensor and send it as part of the request
2009/1/12 Cesium :
> My
Hi Alexander,
thanks for your reply. I'll try this.
Sorry about the multiple posts - a computer glitch.
cheers
On Jan 13, 10:25 am, Alexander Kojevnikov
wrote:
> This format worked for me: +61 4xx xxx xxx
>
> It looks like you are including a leading '0' after the country code,
> try removi
Sorry about the multiple posts - a computer glitch.
cheers
On Jan 13, 10:27 am, Alexander Kojevnikov
wrote:
> Seehttp://is.gd/fBsX
>
> On Jan 12, 11:58 pm, bannerdyne wrote:
>
> > Hi,
>
> > I am using a supported Australian carrier but am getting the following
> > error when I try to verify.
+1 to the responses.
just to clarify, for the purposes of the archives. in case there's
confusion between the two get() methods: Model.get()/db.get() are
generally the fastest, modulo the size of the entity. Query.count(1)
will be in the same ballpark, usually a little slower, but faster if
the e
Sorry about the multiple posts - i had a computer glitch causing me to
post several times.
Please delete this one if required.
On Jan 13, 12:15 am, bannerdyne wrote:
> Hi,
>
> I am using a supported Australian carrier but am getting the following
> error when I try to verify.
>
> There were err
Thank you to everyone for the responses.
If I understand correctly, for my exampe I should use
if MyModel.gql("WHERE prop = :1 AND active = True", s).count(1):
print "Found"
else:
print "Not found"
On Jan 12, 5:52 pm, ryan wrote:
> +1 to the responses.
>
> just to clarify, for the purpose
you get it
On Tue, Jan 13, 2009 at 10:30 AM, SM wrote:
>
> Thank you to everyone for the responses.
>
> If I understand correctly, for my exampe I should use
>
> if MyModel.gql("WHERE prop = :1 AND active = True", s).count(1):
> print "Found"
> else:
> print "Not found"
>
>
> On Jan 12, 5:52
How can I delete my unwanted indices ?.
I've tried appcfg.py vacuum_indexes and it said everything deleted
successfully. But dashboard still says that i am exceeding indices
count quota. And the indices are in Building status.
Please help.
--~--~-~--~~~---~--~
FOR OUR PROJECT,WE NEED TO CONNECT TWO PC USING A LAN CABLE AND FROM ONE
PC,WE SHD BE ABLE TO ACCESS THE FILES STORED ON THE OTHER PC WITHOUT USING
IPADDRESS. IS IT POSSIBLE? IF SO HOW?PLEASE DO REPLY US..
--~--~-~--~~~---~--~~
You received this message because y
61 matches
Mail list logo