[google-appengine] Re: db.ReferenceProperty - need some mechanism for disabling collection

2008-10-10 Thread Ross Ridge

Andy Freeman wrote:
> class A(db.Model):
> pass
>
> class B(db.Model):
> a = db.ReferenceProperty(A)
>
> In some cases, it's an error to use instances of A to refer to
> instances of B.
>
> It would be nice to have some documented way to express that fact, to
> make it so that A.get(key).b_set throws an exception.

I don't know why it would be an error or why you want to throw an
exception, but the b_set attribute is just a query.  You can always
create your own query function that does whatever it is you want.
Maybe something like the following:

 class A(db.Model):
  def get_b_set(self):
if self.cant_refer_back_to_b:
 raise Exception
return self.b_set_private

 class B(db.Model):
   a = db.ReferenceProperty(A, collection_name =
"b_set_private")

   Ross Ridge

--~--~-~--~~~---~--~~
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@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/google-appengine?hl=en
-~--~~~~--~~--~--~---



[google-appengine] Shutdown deployed application?

2008-10-10 Thread GMan

Hi,

Is there a way to "shutdown" the application once it is deployed?  Is
this possible thru the Dashboard?  If so, is it also possible to
restart it, or can you simply re-deploy it?

Thanks,
GMan
--~--~-~--~~~---~--~~
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@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/google-appengine?hl=en
-~--~~~~--~~--~--~---



[google-appengine] A Custom widgets for GeoPt Property

2008-10-10 Thread Takashi Matsuo

Hi list,

Yesterday I attended Maps API Hack-a-thon, and there I build some
utility classes.
It's distributed under Apache-2.0 License.

https://sites.google.com/a/shehas.net/app-engine-japanese-resources/cabinet/my_geopt.py?attredirects=0

This file helps you to write codes which can store GeoPt Property into
the datastore very easily.

I blogged how to use these classes, so please look into it if you'd like.
http://takashi-matsuo.blogspot.com/2008/10/geopt-property.html

There is a live demonstration too.
http://tm-test.appspot.com/

Any comments, bug reports, and suggestions will be welcome.

Regards,

-- Takashi Matsuo

--~--~-~--~~~---~--~~
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@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/google-appengine?hl=en
-~--~~~~--~~--~--~---



[google-appengine] Re: Redirect isn't working

2008-10-10 Thread yejun

That openid example is still possible to run on GAE through html meta
refresh.

On Oct 10, 8:36 pm, "Barry Hunter" <[EMAIL PROTECTED]>
wrote:
> Have a look here:http://code.google.com/p/googleappengine/issues/detail?id=17
>
> that mentions the issue, and seems to suggest that follow_redirects
> can be used to fix it?
>
> On Sat, Oct 11, 2008 at 12:15 AM, yejun <[EMAIL PROTECTED]> wrote:
>
> > I was testing OpenID consumer example for appengine.
> >http://code.google.com/p/google-app-engine-samples/
>
> > It seems redirect to openid server only work inside SDK environment
> > not on GAE.
> > The GAE front server simple display a 302 page with a link to page
> > itself.
>
> > I also tried self.redirect(url), which gave same result. Redirect to
> > some simple urls is working. I am not sure it's the length of url or
> > special char cause the problem.
>
> --
> Barry
>
> -www.nearby.org.uk-www.geograph.org.uk-
--~--~-~--~~~---~--~~
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@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/google-appengine?hl=en
-~--~~~~--~~--~--~---



[google-appengine] Re: Why python?

2008-10-10 Thread Wooble



On Oct 10, 4:30 pm, Sal <[EMAIL PROTECTED]> wrote:
> I vote for this thread to be removed. If the original poster would
> like an informative answer, then he should pose an appropriate
> question or setup his own home server with cgi scripts in C. Words
> like hate are inappropriate in this context.

To be fair, PHP, Perl, and Java all use "c-like grammar" so he's not
necessarily asking for C.

Still, whining about Google's choice for the first programming
language on the mailing list is basically just noise; it's not going
to get other language support added more quickly and isn't exactly
going to serve to start any sort of productive discussion.
--~--~-~--~~~---~--~~
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@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/google-appengine?hl=en
-~--~~~~--~~--~--~---



[google-appengine] get returning None (no exception raised) on server, but not locally

2008-10-10 Thread Josh Heitzman

I just uploaded the prototype I've been working on for the last few
weeks and I'm seeing different and unexpected behavior on the server.
The following method is run at the beginning of a transaction to
ensure that the transaction will operate on the most current state of
the entities modified.  All its doing is getting the key for an entity
and then using the key to get the current sate of the entity.  This
has been working fine locally for weeks.

def __FreshenEntities(self, names, toSetNone):
for attrName in names:
attr = getattr(self, attrName)
if attr is None:
raise AttributeError(HelperMethods.method_name(self) +
" attribute " + attrName + " not expected")
key = attr.key()
if key is None:
raise
Exception("FGBeingRootInterface.__FreshenEntities " + attrName + " key
is none")
entity = attr.get(key)
if entity is None:
entity = db.get(key)
if entity is None:
entity = db.get(str(key))
if entity is None:
raise
Exception("FGBeingRootInterface.__FreshenEntities " + attrName + " was
none after being gotten from DS using key " + str(key))
setattr(self, attrName, entity)
if getattr(self, attrName) is None:
raise
Exception("FGBeingRootInterface.__FreshenEntities self." + attrName +
" was none after being set")
toSetNone.remove(attrName)

After seeing an exception thrown on the server due to an attribute
with a None value I added the two extra attempts to get the entity in
my efforts to determine what is going on, but all three return None
without throwing an exception.

The attributes were gotten the first time just before this method was
called, so I don't understand how their keys can all of the sudden not
be valid nor why get is not throwing some kind of an exception.
Follows is the generated exception test for one occurrence and the key
string looks legitimate:

Exception: FGBeingRootInterface.__FreshenEntities _ranking was none
after being gotten from DS using key
ag53ZWJnYW1lc2J5am9zaHIjCxIMRkcwUmFua0dyb3VwGOoHDAsSCkZHMFJhbmtpbmcYAQw

Anyone encountered anything similar?

Any ideas on how to figure out what is failing?

Thanks,

Josh Heitzman
--~--~-~--~~~---~--~~
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@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/google-appengine?hl=en
-~--~~~~--~~--~--~---



[google-appengine] Re: Why is a complex index created for an ASC order by?

2008-10-10 Thread ryan

hi andy! the queries described that don't need indices are disjoint.
queries that combine features from more than one of them will usually
still need an index.

in your case, WHERE user = :user ORDER BY created_at has both an
equals filter *and* a sort order, so it needs an index.

in general, all queries that involve multiple properties or an
ancestor will need indices, except if all properties are only used in
equals filters and there are no sort orders.

as for the ORDER BY created_at ASC query, i ran that query in
http://shell.appspot.com/, running in a local dev_appserver - code
below - and it didn't generate an index in index.yaml for me.

>>> class Foo(db.Model):
  pass
>>> print list(Foo.gql('ORDER BY created_at ASC'))
[]
--~--~-~--~~~---~--~~
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@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/google-appengine?hl=en
-~--~~~~--~~--~--~---



[google-appengine] any one make django.contrib.sitemaps works in GAE?

2008-10-10 Thread maverick

This is what I get:  (GAE + Django 1.0 + Django helper)  looks like
something wrong in the model part which belongs to django...

---

AttributeError at /sitemap.xml

'ModelOptions' object has no attribute 'local_many_to_many'

Request Method: GET
Request URL:http://localhost:8080/sitemap.xml
Exception Type: AttributeError
Exception Value:

'ModelOptions' object has no attribute 'local_many_to_many'

Exception Location: D:\work\python\gaeprojects\myblog\django\db\models
\options.py in _fill_related_many_to_many_cache, line 403
Python Executable:  D:\Python25\python.exe
Python Version: 2.5.2
Python Path:['D:\\work\\python\\gaeprojects\\myblog', 'd:\\work\
\python\\gae', 'd:\\work\\python\\gae\\lib\\django', 'd:\\work\\python\
\gae\\lib\\webob', 'd:\\work\\python\\gae\\lib\\yaml\\lib', 'd:\\work\
\python\\gae', 'D:\\Python25', 'D:\\Python25\\DLLs', 'D:\\Python25\
\lib', 'D:\\Python25\\lib\\lib-tk', 'D:\\Python25\\lib\\plat-win', 'D:\
\Python25\\lib\\site-packages', 'D:\\Python25\\lib\\site-packages\
\Pythonwin', 'D:\\Python25\\lib\\site-packages\\win32', 'D:\\Python25\
\lib\\site-packages\\win32\\lib', 'D:\\Python25\\lib\\site-packages\
\wx-2.8-msw-unicode', 'F:\\Windows\\system32\\python25.zip', 'F:\
\eclipse\\plugins\\org.python.pydev_1.3.19\\PySrc']
Server time:Sat, 11 Oct 2008 01:36:07 +
--~--~-~--~~~---~--~~
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@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/google-appengine?hl=en
-~--~~~~--~~--~--~---



[google-appengine] Why is a complex index created for an ASC order by?

2008-10-10 Thread Andy Freeman

http://code.google.com/appengine/docs/datastore/queriesandindexes.html
says

App Engine provides automatic indexes for the following forms of
queries:
queries using only equality, IN and ancestor filters
queries using only inequality filters (which can only be of a
single property)
queries with only one sort order, ascending

however, the following query results in an entry in index.yaml

WHERE user = :user
ORDER BY created_at

If I clear everything out (deleting the data store, the history file
and index.yaml and restarting), there's no index.yaml entry for the
following query

WHERE user = :user

Using "ORDER BY created_at ASC" also results in an index.yaml entry.

Why does that query with a single ascending order by require a custom
index?

Thanks,
-andy



--~--~-~--~~~---~--~~
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@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/google-appengine?hl=en
-~--~~~~--~~--~--~---



[google-appengine] Re: Should I use the development console online?

2008-10-10 Thread Hector Zhao

Thanks!

On 10月11日, 上午12时33分, "Marzia Niccolai" <[EMAIL PROTECTED]> wrote:
> Hi,
>
> A recent change to the admin module introduced an error that breaks the SDK
> admin console when running on App Engine.
>
> The advantage to running the SDK admin console on App Engine is to have an
> interactive Python console to run one off queries/commands (this is why the
> admin modules must be restricted to admin only login!).
>
> I would suggest uploading shell.py with your app to run interctive commands,
> and use the App Engine Admin Console to view the datastore.  shell.py can be
> downloaded here:http://code.google.com/p/google-app-engine-samples/
>
> Give it a test run at:http://shell.appspot.com
>
> -Marzia
>
> On Fri, Oct 10, 2008 at 4:52 AM, Hector Zhao <[EMAIL PROTECTED]> wrote:
>
> > In fact, I tried using it, but it stopped to work since some days ago,
> > always showing:
>
> > 500 BadRequestError: app  cannot call GetSchema
>
> > I searched the group, and found an early post at:
> >http://groups.google.com/group/google-appengine/msg/e770ceefa2c26d54
>
> > where Marzia said: "The admin is meant only for use with the
> > development web server.  For your deployed application, visit
> >http://appengine.google.comand sign in with your administrator
> > account to view your logs, datastore, and administrative information.
> > "
>
> > but the docs at:
>
> >http://code.google.com/appengine/docs/configuringanapp.html#Referring...
>
> > it says: "For example, $PYTHON_LIB/google/appengine/ext/admin is an
> > administrative application similar to the developer console feature of
> > the development web server that can run as part of your application on
> > App Engine itself. To set it up, ..."
>
> > So which one is right?
>
> > Thanks.
--~--~-~--~~~---~--~~
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@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/google-appengine?hl=en
-~--~~~~--~~--~--~---



[google-appengine] Re: Redirect isn't working

2008-10-10 Thread Barry Hunter

Have a look here:
http://code.google.com/p/googleappengine/issues/detail?id=17

that mentions the issue, and seems to suggest that follow_redirects
can be used to fix it?

On Sat, Oct 11, 2008 at 12:15 AM, yejun <[EMAIL PROTECTED]> wrote:
>
> I was testing OpenID consumer example for appengine.
> http://code.google.com/p/google-app-engine-samples/
>
> It seems redirect to openid server only work inside SDK environment
> not on GAE.
> The GAE front server simple display a 302 page with a link to page
> itself.
>
> I also tried self.redirect(url), which gave same result. Redirect to
> some simple urls is working. I am not sure it's the length of url or
> special char cause the problem.
> >
>



-- 
Barry

- www.nearby.org.uk - www.geograph.org.uk -

--~--~-~--~~~---~--~~
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@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/google-appengine?hl=en
-~--~~~~--~~--~--~---



[google-appengine] Re: db.Model instances - please document ALL reserved/used names

2008-10-10 Thread Andy Freeman

That's the section that is incomplete.

It says that it ignores attributes that begin with _, but it doesn't -
it uses them in certain circumstances for its own purposes.

On Oct 10, 1:45 pm, "Marzia Niccolai" <[EMAIL PROTECTED]> wrote:
> Hi Andy,
>
> The information on disallowed property names is 
> here:http://code.google.com/appengine/docs/datastore/modelclass.html#Disal...
>
> "The datastore reserves all property names that begin and end with two
> underscores (__*__). A datastore entity cannot have a property with such a
> name.
>
> The Python model API ignores all attributes on a
> Modelor
> Expando 
> that
> begin with an underscore (
> _). Your application can use these attributes to associate data with the
> model objects that is not saved to the datastore."
> -Marzia
>
>
>
> On Fri, Oct 10, 2008 at 1:15 PM, Andy Freeman <[EMAIL PROTECTED]> wrote:
>
> > class A(db.Model):
> >    x = db.StringProperty(default='hi')
> >    def __init__(self, *args, **kwds):
> >        self._x = 'yes'
> >        super(A, self,).__init__(*args, **kwds)
>
> > a = A()
>
> > There's nothing in the documentation that suggests a connection
> > between A's property x and the instance variable _x, but the db.Model
> > and property implementation uses _x to store values for x.
>
> > This should be documented.  (Of course, it isn't actually necessary -
> > an instance's property data could have been stored in a single
> > instance-specific structure with a documented name, but )- Hide quoted 
> > text -
>
> - Show quoted text -
--~--~-~--~~~---~--~~
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@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/google-appengine?hl=en
-~--~~~~--~~--~--~---



[google-appengine] Re: Problem locating the html template for the template.render() call.

2008-10-10 Thread GMan

Resolved:

looks like "Draftboard.html" is not "draftboard.html", but I guess it
is on Winblow platform (at home).

On Oct 10, 7:29 pm, GMan <[EMAIL PROTECTED]> wrote:
> Hi,
>
> I'm just trying to deploy my first app, which runs fine in the
> development environment on my machine.  However, template.render()
> call is failing to find my html template file.  Note that all other
> html files are being served correctly, however those files are not
> used with the DJango template engine call of template.render().  I
> call them as follows:
>
> self.redirect(''/static/something.html')
>
> All html files are located in a subdirectory mapped to "/static" per
> the app.yaml file (shown at the bottom of this posting).
>
> Here is the Python code:
>
> path = os.path.join(os.path.dirname(__file__), 'draftboard.html')
> self.response.out.write(template.render(path, template_values))
>
> I have also tried:
> path = os.path.join(os.path.dirname(__file__), '/static/
> draftboard.html')
> self.response.out.write(template.render(path, template_values))
>
> The error I get is:
>
> Traceback (most recent call last):
>   File "/base/python_lib/versions/1/google/appengine/ext/webapp/
> __init__.py", line 499, in __call__
>     handler.get(*groups)
>   File "/base/data/home/apps/draftcentral/1.10/Draftboard.py", line
> 135, in get
>     self.response.out.write(template.render(path, template_values))
>   File "/base/python_lib/versions/1/google/appengine/ext/webapp/
> template.py", line 80, in render
>     t = load(template_path, debug)
>   File "/base/python_lib/versions/1/google/appengine/ext/webapp/
> template.py", line 108, in load
>     template = django.template.loader.get_template(file_name)
>   File "/base/python_lib/versions/1/django/template/loader.py", line
> 79, in get_template
>     source, origin = find_template_source(template_name)
>   File "/base/python_lib/versions/1/django/template/loader.py", line
> 72, in find_template_source
>     raise TemplateDoesNotExist, name
> TemplateDoesNotExist: draftboard.html
>
> app.yaml file is:
>
> application: draftcentral
> version: 1
> runtime: python
> api_version: 1
>
> handlers:
> - url: /load
>   script: Loader.py
>
> - url: /static
>   static_dir: staticDir
>
> - url: /stylesheets
>   static_dir: stylesheets
>
> - url: /.*
>   script: DraftCentral.py
--~--~-~--~~~---~--~~
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@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/google-appengine?hl=en
-~--~~~~--~~--~--~---



[google-appengine] Problem locating the html template for the template.render() call.

2008-10-10 Thread GMan

Hi,

I'm just trying to deploy my first app, which runs fine in the
development environment on my machine.  However, template.render()
call is failing to find my html template file.  Note that all other
html files are being served correctly, however those files are not
used with the DJango template engine call of template.render().  I
call them as follows:

self.redirect(''/static/something.html')

All html files are located in a subdirectory mapped to "/static" per
the app.yaml file (shown at the bottom of this posting).

Here is the Python code:

path = os.path.join(os.path.dirname(__file__), 'draftboard.html')
self.response.out.write(template.render(path, template_values))

I have also tried:
path = os.path.join(os.path.dirname(__file__), '/static/
draftboard.html')
self.response.out.write(template.render(path, template_values))


The error I get is:

Traceback (most recent call last):
  File "/base/python_lib/versions/1/google/appengine/ext/webapp/
__init__.py", line 499, in __call__
handler.get(*groups)
  File "/base/data/home/apps/draftcentral/1.10/Draftboard.py", line
135, in get
self.response.out.write(template.render(path, template_values))
  File "/base/python_lib/versions/1/google/appengine/ext/webapp/
template.py", line 80, in render
t = load(template_path, debug)
  File "/base/python_lib/versions/1/google/appengine/ext/webapp/
template.py", line 108, in load
template = django.template.loader.get_template(file_name)
  File "/base/python_lib/versions/1/django/template/loader.py", line
79, in get_template
source, origin = find_template_source(template_name)
  File "/base/python_lib/versions/1/django/template/loader.py", line
72, in find_template_source
raise TemplateDoesNotExist, name
TemplateDoesNotExist: draftboard.html


app.yaml file is:

application: draftcentral
version: 1
runtime: python
api_version: 1

handlers:
- url: /load
  script: Loader.py

- url: /static
  static_dir: staticDir

- url: /stylesheets
  static_dir: stylesheets

- url: /.*
  script: DraftCentral.py
--~--~-~--~~~---~--~~
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@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/google-appengine?hl=en
-~--~~~~--~~--~--~---



[google-appengine] Re: Linking directly to the Google Accounts "new account" page + feature request and UX complaint!

2008-10-10 Thread Jon McAlister

Feris and Bill,

It's hard to make the sign-in page completely customizable, and this
also has security implications, but we certainly do want it to as
usable and intuitive as we can make it. We may do this by modifying
the default template or by making some other system changes. Feel free
to tell us how you think it should be modified.

On Oct 9, 9:55 am, Bill <[EMAIL PROTECTED]> wrote:
> > As far as the UI concerns, what do you think about the "new account"
> > button for the sign-in page onhttp://moderator.appspot.com/?Weare
> > experimenting there, and could make that the default for all
> > applications.
>
> It would be great if Google provided a customizable sign-in page like
> moderator.appspot.com.  Right now, I have a two step process with
> graphics trying to explain what to do on the standard Google login
> page:http://workshops.writertopia.com/
>
> You could put the disclaimer "Google is not affiliated with the
> contents of Writertopia or its owners. If you sign in..." over on the
> right by the login boxes if we could tailor content on the left part
> of the sign-in page.
>
> I've piggybacked onto an existing feature request for better Google
> Account login 
> information:http://code.google.com/p/googleappengine/issues/detail?id=713
> Star it if you'd like to see this feature.
> -Bill
--~--~-~--~~~---~--~~
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@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/google-appengine?hl=en
-~--~~~~--~~--~--~---



[google-appengine] Re: Linking directly to the Google Accounts "new account" page + feature request and UX complaint!

2008-10-10 Thread Jon McAlister

Hi Alex, I think we did indeed live in the same dorm. That explains
why your name was so familiar to me :-)

As far as the direct UI feedback, thanks! It's mostly over my head
since I am primarily a backend guy, but I'll make sure your comments
are referenced correctly.

As far as the NewAccount URL, it does not appear to support continue
URLs. Please file a bug in our Issue Tracker if you would like us to
consider this feature.

On Oct 9, 8:15 am, Alex Vartan <[EMAIL PROTECTED]> wrote:
> Thanks, Jon.
> Does appending redirect information to NewAccount work as it does for
> createLoginUrl?
>
> The button looks OK. I actually used to work for Google in marketing
> and remember when webteam standardized on that button, I'm not a huge
> fan of it, but I know it's used everywhere now. Personally I think the
> text is too bold and tight, and when I did some webpage optimization
> for some AdWords pages, we found that adding a "»" to a button
> increased clicks. I think it would be ideal to provide appengine users
> some control over this page (it looks like Google Moderator was able
> to customize it, will this feature be released soon), or at least the
> button.
>
> I prefer "Start now »" or "Click to begin »" based on the data we saw
> on the adwords homepage, "Click to begin »" performed very slightly
> but statistically significantly better than all other options (Sign up
> now, Get Started, Start Now).
> Thanks for the response,
> Alex
> P.S. I think we lived in castano together long ago...
>
> On Oct 5, 7:24 pm, Jon <[EMAIL PROTECTED]> wrote:
>
> > You can send users tohttps://www.google.com/accounts/NewAccount
>
> > As far as the UI concerns, what do you think about the "new account"
> > button for the sign-in page onhttp://moderator.appspot.com/?Weare
> > experimenting there, and could make that the default for all
> > applications.
>
> > On Oct 4, 3:09 pm, Alex Vartan <[EMAIL PROTECTED]> wrote:
>
> > > Hi there,
>
> > > Since for many novice users, the idea of logging into a non-Google
> > > branded app with a Google account is a bit nonintuitive, I'd like to
> > > create a page with some language in my app that says to the effect
> > > "Got a Google Account? Sign in by clicking here. / Otherwise, create a
> > > new account by clicking here"
>
> > > I'd like to offer my users a choice of clicking on a button that links
> > > to the standard GAEloginlink, and in the second case, bypass the
> > > splash screen and send users directly to the 'create new google
> > > account' page.
>
> > > Is this possible?
>
> > > Hope so. And if not, it should be. From a marketing perspective, it's
> > > really strange to expect new users to my app to click on the same
> > > button tologinand to sign up for a new account. The messaging
> > > required to clarify this would be unnecessarily unweildy ("Click this
> > > button,loginwith your google account. No Google account? Then find
> > > the little link on the next page, create a google account, and you'll
> > > be sent back to this app."
>
> > > If anything, the GAloginpage could be improved by creating a larger
> > > "New account" button or allowing App owners to customize the messaging
> > > on that page.
>
> > > -Alex
--~--~-~--~~~---~--~~
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@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/google-appengine?hl=en
-~--~~~~--~~--~--~---



[google-appengine] Re: Upload a directory of static files

2008-10-10 Thread GMan

Resolved:

Looks like that attribute is not allowed for static_dir but is allowed
static_files.

http://code.google.com/appengine/docs/configuringanapp.html

On Oct 10, 4:32 pm, GMan <[EMAIL PROTECTED]> wrote:
> The error message I am receiving is:
>
> Error parsing yaml file:
> Invalid Object
> Unexpected attribute "upload" for mapping type static_dir
>     in "draftboard/app.yaml", line 15, col 1
>
> On Oct 10, 4:27 pm, GMan <[EMAIL PROTECTED]> wrote:
>
> > Hi,
> > I looked around on the discussion group and it seems the standard answer for
> > uploading a directory of static files is not working for me.  Is there
> > something obvious that I'm doing wrong?
>
> > I have two subdirectories which contain static files.
> > 1) /static
> > some html files
>
> > 2) /css
> > a .css file
>
> > Here is my app.yaml. what am I missing here?
>
> > application: draftcentral
> > version: 1
> > runtime: python
> > api_version: 1
>
> > handlers:
> > - url: /load
> >   script: Loader.py
> >   #login: admin
>
> > - url: /static
> >   static_dir: staticDir
> >   upload: staticDir/
>
> > - url: /stylesheets
> >   static_dir: stylesheets
> >   upload: stylesheets/
>
> > - url: /.*
> >   script: DraftCentral.py
--~--~-~--~~~---~--~~
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@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/google-appengine?hl=en
-~--~~~~--~~--~--~---



[google-appengine] Re: How to change Authentication Options after application has been uploaded

2008-10-10 Thread Jon McAlister

Correct, you will need to register a new app.

On Oct 8, 9:24 pm, pr3d4t0r <[EMAIL PROTECTED]> wrote:
> On Oct 8, 9:14 pm, cm_gui <[EMAIL PROTECTED]> wrote:
>
> > During the uploading, I forgot to restrict authentication to my Google
> > Apps domain.
> > After uploading, I went to Application Settings, but it seems that
> > there is no way
> > to edit the Authentication Options anymore.
>
> Unfortunately there is no way of doing that at this time.  Some
> discussions have hinted that it may change in the future, but this is
> it for now.
>
> Cheers,
>
> pr3d4t0rhttp://www.istheserverup.comhttp://www.teslatestament.com
--~--~-~--~~~---~--~~
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@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/google-appengine?hl=en
-~--~~~~--~~--~--~---



[google-appengine] Re: unable to add 'www' subdomain for app engine service

2008-10-10 Thread Marzia Niccolai
Hi,

Can you follow the directions here:

http://groups.google.com/group/google-appengine/web/deleting-existing-www-mapping-from-google-apps

To see if this helps?  The common case seems like Google Sites is using
'www' whether or not Sites is enabled.

-Marzia

On Thu, Oct 9, 2008 at 5:55 PM, Adam Fisk <[EMAIL PROTECTED]> wrote:

>
> littleshoot.org.  I didn't realize it was a www issue at first, but it
> definitely is.  I'm able to add multiple other subdomains no problem.
>
> On Oct 9, 1:33 pm, "Marzia Niccolai" <[EMAIL PROTECTED]> wrote:
> > Hi Adam,
> >
> > With which domain are you experiencing this issue?
> >
> > -Marzia
> >
> > On Thu, Oct 9, 2008 at 1:27 PM, Adam Fisk <[EMAIL PROTECTED]> wrote:
> >
> > > I have the exact same problem.  Any solutions?  The unfortunately
> > > result is *my site is completely down.*  This makes it virtually
> > > impossible to port a www.* site, which would account for, well, most
> > > of the sites on the Internet.
> >
> > > -Adam
> >
> > > On Oct 9, 11:13 am, ajablo <[EMAIL PROTECTED]> wrote:
> > > > Hello,
> >
> > > > the domain in question is probud.info
> > > > At the very begining it returned a 404, but it seemed like it
> > > > originated from google page creator team (???)
> > > > Then I configured google sites (it was google pages before I guess)
> in
> > > > my apps profile to use 'www' prefix and it worked perfectly for
> sites.
> > > > What I did then was to change the sites prefix from 'www' to
> > > > 'temp' (both in my domain's CNAME records) just to try if maybe this
> > > > time my appengine's service will work under 'www', unfortunately it
> > > > didn't. Any attempt to assign it to appengine service is simply
> > > > ignored without any error message.
> > > > Current status is: I disabled sites completely for my domain (prefix
> > > > history for sites is 'www' -> 'temp' -> disabled), when I open
> > > bothwww.probud.infoandtemp.probud.info I get 'forbidden error 403'
> now.
> > > > Assigning 'www' to my appengine service still fails.
> > > > It seems like google has a big mess in there?
> >
> > > > Many thanks for your help,
> > > > Adam
> >
> > > > On Oct 9, 6:57 pm, "Marzia Niccolai" <[EMAIL PROTECTED]> wrote:
> >
> > > > > Hi,
> >
> > > > > Can you please reply with the domain experiencing the issue?  Also
> if
> > > you go
> > > > > towww.yourdomain.comanditdoes not return a 404, what is shown would
> > > > > indicate what service it's currently mapped to.
> >
> > > > > -Marzia
> >
> > > > > On Thu, Oct 9, 2008 at 5:31 AM, ajablo <[EMAIL PROTECTED]>
> > > wrote:
> >
> > > > > > Hello,
> > > > > > All my attempts to add 'www'subdomainto host my app as a
> > > > > > AppEngine service in Google Apps fail silently. No error message.
> I
> > > > > > can add
> > > > > > any othersubdomain, like 'temp' or whatever with success. And I
> would
> > > > > > like
> > > > > > to assure that there are no other services configured to use
> 'www'
> > > > > >subdomain.
> > > > > > Many thanks for your help,
> > > > > > Adam
> >
>

--~--~-~--~~~---~--~~
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@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/google-appengine?hl=en
-~--~~~~--~~--~--~---



[google-appengine] Redirect isn't working

2008-10-10 Thread yejun

I was testing OpenID consumer example for appengine.
http://code.google.com/p/google-app-engine-samples/

It seems redirect to openid server only work inside SDK environment
not on GAE.
The GAE front server simple display a 302 page with a link to page
itself.

I also tried self.redirect(url), which gave same result. Redirect to
some simple urls is working. I am not sure it's the length of url or
special char cause the problem.
--~--~-~--~~~---~--~~
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@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/google-appengine?hl=en
-~--~~~~--~~--~--~---



[google-appengine] Re: www [mydomain.org] Already used, please remove previous mapping first.

2008-10-10 Thread Marzia Niccolai
Hi,

For directions on how to remove the sites 'www' mapping in Google Apps, I've
put together a quick page (nothing fancy :)

http://groups.google.com/group/google-appengine/web/deleting-existing-www-mapping-from-google-apps

This seems to be the issue most people are having when receiving this
message.

-Marzia

On Wed, Oct 8, 2008 at 11:03 AM, Brade <[EMAIL PROTECTED]> wrote:

>
> In firefox I get the Address Not Found page, which would seem to mean
> that "www" is free to use if I wanted to.
> but I'm still not allowed to...
> --brad g.
>
> On Oct 8, 1:51 pm, "Marzia Niccolai" <[EMAIL PROTECTED]> wrote:
> > Hi,
> >
> > Where are you taken when you hit 'www.yourdomain.com'? This is where the
> > subdomain mapping is currently going, when you know that you can disable
> > that service mapping to www.
> >
> > -Marzia
> >
> > On Wed, Oct 8, 2008 at 1:27 AM, ID <[EMAIL PROTECTED]> wrote:
> >
> > > Hi, thanks for replying.
> >
> > > I have checked,  'www' is not assigned to Sites, Pages, or anywhere
> > > else.
> >
> > > this is a fresh domain, purchased thru google/enom.
> >
> > > sites assigned to 'sites' and pages assignd to 'pages' subdomains
> > > already by default.
> >
> > > 'www' assigned nowhere, yet it shows error 'Duplicate value' when
> > > trying to assign Pages or Sites.
> >
> > > and shows error 'Already used, please remove previous mapping first'
> > > when trying to assign to Appengine app.
> >
> > > thanks
> >
> > > On Oct 7, 1:24 am, "Marzia Niccolai" <[EMAIL PROTECTED]> wrote:
> > > > Hi,
> >
> > > > The issue here is that, by default, Google Apps has assigned www to
> > > sites,
> > > > and you have to disable this before mapping www to an App Engine app.
> >
> > > > Unfortunately, it's not very clear on how to do this in the Google
> Apps
> > > > admin panel.
> >
> > > > To get www to work with your app, enable sites, if it isn't already,
> and
> > > go
> > > > to the service settings for sites.  Find and delete the 'www' mapping
> in
> > > the
> > > > service settings.
> >
> > > > After this, you should be able to map your App Engine app
> > > towww.mydomain.com.
> >
> > > > -MarziaOn Mon, Oct 6, 2008 at 4:20 AM, Sylvain <
> [EMAIL PROTECTED]>
> > > wrote:
> >
> > > > > Can you create an issue for this ?
> >
> > > > >http://code.google.com/p/googleappengine/issues/list
> >
> > > > > On 6 oct, 11:09, ID <[EMAIL PROTECTED]> wrote:
> > > > > > Basically problem seems to be is this:
> >
> > > > > > Google Apps thinks 'www' is assigned to some service, thus
> locking
> > > > > > 'www' so it cant be assigned any other service.
> >
> > > > > > But user can not see which service 'www' was assigned to by
> Google
> > > > > > apps, therefore user not able  to changed or disabled it.
> >
> > > > > > On Oct 5, 7:33 pm, Tom <[EMAIL PROTECTED]> wrote:
> >
> > > > > > > Please try the following:
> >
> > > > > > > Go to your site's dashboardhttps://
> > > > >www.google.com/a/cpanel/[yourdomain.org]/Dashboard
> 
> > > 
> >
> > > > > > > From there you'll likely see the Web Pages service set
> > > > > towww.yourdomain.org.
> > > > > > > Clicking on that will let you rename it (to
> home.yourdomain.orgfor
> > > > > > > example).
> >
> > > > > > > Hope that helps!
> >
>

--~--~-~--~~~---~--~~
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@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/google-appengine?hl=en
-~--~~~~--~~--~--~---



[google-appengine] Re: 1000 file limit

2008-10-10 Thread Barry Hunter

On Fri, Oct 10, 2008 at 9:24 PM, Venkatesh Rangarajan
<[EMAIL PROTECTED]> wrote:
> Well,
>
> If you do that, then you have to Open media. to public. You have
> to give read access to public.
>
> its a choice one can make..that basically makes all of your files structure
> public and anybody can download them. All of them at one go.

You can just set read access on the specific objects, you dont need to
give access to the whole bucket. And without access to the bucket
itself cant get a listing of all objects.

>
> By you using URL fetch, appengine is the gatekeeper and you can have stats/
> ads and any other functionality you want.
>
> Rgds,
> Venkatesh
>
> On Fri, Oct 10, 2008 at 12:05 PM, yejun <[EMAIL PROTECTED]> wrote:
>>
>> Why not serve file from S3 directly?
>>
>> On Oct 10, 1:38 pm, "Venkatesh Rangarajan"
>> <[EMAIL PROTECTED]> wrote:
>> > Phtq,
>> >
>> > Its better if you host your static files in Amazon S3.
>> >
>> > You can create a new subdomain...say media..com on S3
>> >
>> > And when in appengine, you reference that file, all you have to do a is
>> > a
>> > urlfetch
>> >
>> > Sample : urlfetch.fetch('http://media..com/mp3/' + > > name>)
>> >
>> > you can use amazon S3 organizer to upload files to S3. Its as simple as
>> > FTP.
>> > Link
>> > :https://addons.mozilla.org/en-US/firefox/addon/3247https://addons.mozilla.org/en-US/firefox/addon/3247
>> >
>> > Rgds,
>> > Venkatesh
>> >
>> > On Fri, Oct 10, 2008 at 9:54 AM, Barry Hunter
>> > <[EMAIL PROTECTED]>wrote:
>> >
>> >
>> >
>> > > Couple of options:
>> >
>> > > Host the 'static' files elsewhere (eg Amazon S3 - esp as it will soon
>> > > have a CDN)
>> >
>> > > Store the files in the datastore, and serve them dynamically via a
>> > > script. (be careful to set good caching headers to avoid wasting
>> > > resources)
>> >
>> > > Store the files in zip files (beware a 1Mb limit) and dynamicially
>> > > serve them via a script. (not recommended)
>> >
>> > > You have 10 'apps', distribute your static files around other
>> > > installations.
>> >
>> > > On Fri, Oct 10, 2008 at 3:36 AM, phtq <[EMAIL PROTECTED]>
>> > > wrote:
>> >
>> > > > We have an application we want to put online but it contains about
>> > > > 8,000 files (these are mp3, gif, swf, html, etc) in the English
>> > > > version alone. We tested a cut down version online and it worked
>> > > > fine,
>> > > > but when we try to put up the whole application for testing we get a
>> > > > fail message from the uploader.
>> >
>> > > > Is it going to impossible to mount this application in
>> > > > GoogleAppEngine?
>> >
>> > > --
>> > > Barry
>> >
>> > > -www.nearby.org.uk-www.geograph.org.uk-
>>
>
>
> >
>



-- 
Barry

- www.nearby.org.uk - www.geograph.org.uk -

--~--~-~--~~~---~--~~
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@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/google-appengine?hl=en
-~--~~~~--~~--~--~---



[google-appengine] Re: page not refreshing properly

2008-10-10 Thread ae

no, i'm not using cookies.

On Oct 10, 2:49 pm, Roy Leban <[EMAIL PROTECTED]> wrote:
> Are you using cookies? There's a bug related to this. There is a
> workaround with a meta expires tag (search for that)
>
> On Oct 10, 2:00 pm, Jeff S <[EMAIL PROTECTED]> wrote:
>
> > Hi ae,
>
> > When you say that the page does not refresh properly, could you be
> > more specific? Is it that the redirect doesn't happen, or the page
> > content is not what you expect?...
>
> > Cheers,
>
> > Jeff
>
> > On Oct 9, 7:17 pm, ae <[EMAIL PROTECTED]> wrote:
>
> > > I have a Sign Out link that signs somebody out and redirects them back
> > > to where they were (same url but with slightly different content)...
> > > but the page doesn't seem to refresh properly all the time.  What's
> > > the best way to solve this?  Thanks.
--~--~-~--~~~---~--~~
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@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/google-appengine?hl=en
-~--~~~~--~~--~--~---



[google-appengine] Re: page not refreshing properly

2008-10-10 Thread ae

Hi Jeff,

The redirect happens... it's the page content that's not refreshed.

Upon sign out, I (sometimes) still see the old (account specific)
content... so it looks like I haven't signed out yet... but hitting F5
to refresh the page will show the right content.  Thanks.

ae

On Oct 10, 2:00 pm, Jeff S <[EMAIL PROTECTED]> wrote:
> Hi ae,
>
> When you say that the page does not refresh properly, could you be
> more specific? Is it that the redirect doesn't happen, or the page
> content is not what you expect?...
>
> Cheers,
>
> Jeff
>
> On Oct 9, 7:17 pm, ae <[EMAIL PROTECTED]> wrote:
>
> > I have a Sign Out link that signs somebody out and redirects them back
> > to where they were (same url but with slightly different content)...
> > but the page doesn't seem to refresh properly all the time.  What's
> > the best way to solve this?  Thanks.
--~--~-~--~~~---~--~~
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@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/google-appengine?hl=en
-~--~~~~--~~--~--~---



[google-appengine] Re: inconsistent indexes

2008-10-10 Thread Marzia Niccolai
Thanks for the info, a few more questions, I'm trying to see if I can repeat
this issue elsewhere and so far haven't had any luck.

What is the complete model definition you are using? What data is included
when you put the model in the datastore.

Can you log the explicit values for offset and mas_vieja.fecha_f that are
used in the second query?

Thanks,
Marzia

On Fri, Oct 10, 2008 at 8:37 AM, tigrillo <
[EMAIL PROTECTED]> wrote:

>
> if needed, the methods invoqued inside pendiente_aleatoria, but I
> think it is not the matter.
>
>@classmethod
>def inc(cls):
>if cls.INT < cls.MAX:
>cls.INT+=1
>
>@classmethod
>def dec(cls):
>if cls.INT > cls.MIN:
>cls.INT-=1
>
> Thanks
> >
>

--~--~-~--~~~---~--~~
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@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/google-appengine?hl=en
-~--~~~~--~~--~--~---



[google-appengine] Re: Definition of "Google's Infrastructure"

2008-10-10 Thread David Symonds

On Sat, Oct 11, 2008 at 6:37 AM, vvatever <[EMAIL PROTECTED]> wrote:
>
>> Regarding the CDN case is markedly different from the datastore case,
>> since you're just dealing with immutable blobs. This is not the thorny
>> issue.
>
> Are you saying that GAE already takes care of replicating static
> content to the edge servers? If so, what type of content is considered
> immutable blob - images, javascripts, etc.?

Probably anything you declare as "static" in your app.yaml file.


Dave.

--~--~-~--~~~---~--~~
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@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/google-appengine?hl=en
-~--~~~~--~~--~--~---



[google-appengine] Re: 1000 file limit

2008-10-10 Thread Venkatesh Rangarajan
Hmm..thats a good Point.. i was not aware of that ( query string based
authentication with expiration time.).

Sounds like that would be a better solution, especially with 1M limit

On Fri, Oct 10, 2008 at 1:33 PM, yejun <[EMAIL PROTECTED]> wrote:

>
> S3 accepts query string based authentication with expiration time.
> Proxy through GAE will limit file size to 1M and triple the network
> usage.
>
> On Oct 10, 4:24 pm, "Venkatesh Rangarajan"
> <[EMAIL PROTECTED]> wrote:
> > Well,
> >
> > If you do that, then you have to Open media. to public. You
> have
> > to give read access to public.
> >
> > its a choice one can make..that basically makes all of your files
> structure
> > public and anybody can download them. All of them at one go.
> >
> > By you using URL fetch, appengine is the gatekeeper and you can have
> stats/
> > ads and any other functionality you want.
> >
> > Rgds,
> > Venkatesh
> >
> > On Fri, Oct 10, 2008 at 12:05 PM, yejun <[EMAIL PROTECTED]> wrote:
> >
> > > Why not serve file from S3 directly?
> >
> > > On Oct 10, 1:38 pm, "Venkatesh Rangarajan"
> > > <[EMAIL PROTECTED]> wrote:
> > > > Phtq,
> >
> > > > Its better if you host your static files in Amazon S3.
> >
> > > > You can create a new subdomain...say media..com on
> S3
> >
> > > > And when in appengine, you reference that file, all you have to do a
> is a
> > > > urlfetch
> >
> > > > Sample : urlfetch.fetch('http://media..com/mp3/' +
>  > > name>)
> >
> > > > you can use amazon S3 organizer to upload files to S3. Its as simple
> as
> > > FTP.
> > > > Link :
> > >https://addons.mozilla.org/en-US/firefox/addon/3247https://addons.moz.
> ..
> >
> > > > Rgds,
> > > > Venkatesh
> >
> > > > On Fri, Oct 10, 2008 at 9:54 AM, Barry Hunter
> > > > <[EMAIL PROTECTED]>wrote:
> >
> > > > > Couple of options:
> >
> > > > > Host the 'static' files elsewhere (eg Amazon S3 - esp as it will
> soon
> > > > > have a CDN)
> >
> > > > > Store the files in the datastore, and serve them dynamically via a
> > > > > script. (be careful to set good caching headers to avoid wasting
> > > > > resources)
> >
> > > > > Store the files in zip files (beware a 1Mb limit) and dynamicially
> > > > > serve them via a script. (not recommended)
> >
> > > > > You have 10 'apps', distribute your static files around other
> > > > > installations.
> >
> > > > > On Fri, Oct 10, 2008 at 3:36 AM, phtq <[EMAIL PROTECTED]>
> > > wrote:
> >
> > > > > > We have an application we want to put online but it contains
> about
> > > > > > 8,000 files (these are mp3, gif, swf, html, etc) in the English
> > > > > > version alone. We tested a cut down version online and it worked
> > > fine,
> > > > > > but when we try to put up the whole application for testing we
> get a
> > > > > > fail message from the uploader.
> >
> > > > > > Is it going to impossible to mount this application in
> > > > > > GoogleAppEngine?
> >
> > > > > --
> > > > > Barry
> >
> > > > > -www.nearby.org.uk-www.geograph.org.uk-
> >
>

--~--~-~--~~~---~--~~
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@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/google-appengine?hl=en
-~--~~~~--~~--~--~---



[google-appengine] Re: page not refreshing properly

2008-10-10 Thread Roy Leban

Are you using cookies? There's a bug related to this. There is a
workaround with a meta expires tag (search for that)

On Oct 10, 2:00 pm, Jeff S <[EMAIL PROTECTED]> wrote:
> Hi ae,
>
> When you say that the page does not refresh properly, could you be
> more specific? Is it that the redirect doesn't happen, or the page
> content is not what you expect?...
>
> Cheers,
>
> Jeff
>
> On Oct 9, 7:17 pm, ae <[EMAIL PROTECTED]> wrote:
>
> > I have a Sign Out link that signs somebody out and redirects them back
> > to where they were (same url but with slightly different content)...
> > but the page doesn't seem to refresh properly all the time.  What's
> > the best way to solve this?  Thanks.
>
>
--~--~-~--~~~---~--~~
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@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/google-appengine?hl=en
-~--~~~~--~~--~--~---



[google-appengine] Re: Upload a directory of static files

2008-10-10 Thread GMan

The error message I am receiving is:

Error parsing yaml file:
Invalid Object
Unexpected attribute "upload" for mapping type static_dir
in "draftboard/app.yaml", line 15, col 1


On Oct 10, 4:27 pm, GMan <[EMAIL PROTECTED]> wrote:
> Hi,
> I looked around on the discussion group and it seems the standard answer for
> uploading a directory of static files is not working for me.  Is there
> something obvious that I'm doing wrong?
>
> I have two subdirectories which contain static files.
> 1) /static
> some html files
>
> 2) /css
> a .css file
>
> Here is my app.yaml. what am I missing here?
>
> application: draftcentral
> version: 1
> runtime: python
> api_version: 1
>
> handlers:
> - url: /load
>   script: Loader.py
>   #login: admin
>
> - url: /static
>   static_dir: staticDir
>   upload: staticDir/
>
> - url: /stylesheets
>   static_dir: stylesheets
>   upload: stylesheets/
>
> - url: /.*
>   script: DraftCentral.py
--~--~-~--~~~---~--~~
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@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/google-appengine?hl=en
-~--~~~~--~~--~--~---



[google-appengine] Re: Since 1.1.5 import cgi/urllib/traceback/etc fails (on MacOS)

2008-10-10 Thread Marzia Niccolai
Hi,

Thanks for all the information that has been provided so far, I'm copying
verbating a resquest I've gotten from an App Engine Engineer:

"It would be very helpful if the user printed out their python path from a
naked interpreter, and from their AppEngine app:

import sys
print sys.path


Also, run dev_appserver with --debug_imports. This will give a full dump of
all of the various paths it's trying to investigate to load the file.

We recently added some code to properly handle symlinks that may occur in
weird places. My guess is that this is somehow strangely interacting with
the file access permissions code that's elsewhere in the dev_appserver.

Having the debug_imports dump will show us all of the various paths that are
investigated."

If people experiencing this issue could provide the requested information, I
would appreciate it!

Thanks,
Marzia

On Fri, Oct 10, 2008 at 7:51 AM, Leo <[EMAIL PROTECTED]> wrote:

>
>
>
>
> http://googleappengine.googlecode.com/files/GoogleAppEngineLauncher-1.1.4.dmg
>
> On Oct 10, 2:48 am, Greg <[EMAIL PROTECTED]> wrote:
> > Is there anywhere we can download 1.1.4 of the helper in the mean
> > time? It'd be nice to get back to coding again.
> >
> > Greg
> >
> > On Oct 8, 10:49 pm, "Marzia Niccolai" <[EMAIL PROTECTED]> wrote:
> >
> > > Hi,
> >
> > > Thanks.  Did you also have the output of the dev_appserver logs console
> when
> > > this happens?  And what is the output of 'which python'?
> >
> > > Your help is really appreciated.
> >
> > > -Marzia
> >
> > > On Wed, Oct 8, 2008 at 1:14 PM, Greg <[EMAIL PROTECTED]> wrote:
> >
> > > > Running dev_appserver.py from the command line gives me the same "No
> > > > module named cgi" error.
> >
> > > > The result of "defaults read ~/Library/Preferences/
> > > > com.google.GoogleAppEngineLauncher" :
> >
> > > > =
> > > > {
> > > >EditDirectory = 1;
> > > >Editor = "";
> > > >GMClientAuthWindowSignInName = "[EMAIL PROTECTED]";
> > > >NSNavLastCurrentDirectory = "~/Documents/workspace";
> > > >NSNavLastRootDirectory = "~";
> > > >NSNavPanelExpandedSizeForOpenMode = "{518, 400}";
> > > >NSNavSidebarWidth = 120;
> > > >"NSTableView Columns NSNavOutlineColumnSettings.v1" = (
> > > ><040b7374 7265616d 74797065 6481e803 84014084 8484084e
> > > > 53537472 696e6701 8484084e 534f626a 65637400 8584012b 1c4e534e
> > > > 61764469 73706c61 794e616d 6546696c 6550726f 70657274 7986>,
> > > >225,
> > > ><040b7374 7265616d 74797065 6481e803 84014084 8484084e
> > > > 53537472 696e6701 8484084e 534f626a 65637400 8584012b 184e534e
> > > > 61764d6f 64446174 6546696c 6550726f 70657274 7986>,
> > > >145
> > > >);
> > > >"NSTableView Hidden Columns NSNavOutlineColumnSettings.v1" = (
> > > >);
> > > >"NSTableView Sort Ordering NSNavOutlineColumnSettings.v1" = (
> > > ><040b7374 7265616d 74797065 6481e803 84014084 8484084e
> > > > 53537472 696e6701 8484084e 534f626a 65637400 8584012b 184e534e
> > > > 61764d6f 64446174 6546696c 6550726f 70657274 7986>,
> > > >0
> > > >);
> > > >"NSToolbar Configuration DocTB" = {
> > > >"TB Display Mode" = 1;
> > > >"TB Icon Size Mode" = 1;
> > > >"TB Is Shown" = 1;
> > > >"TB Item Identifiers" = (
> > > >Run,
> > > >Stop,
> > > >Browse,
> > > >Logs,
> > > >"SDK Console",
> > > >NSToolbarSeparatorItem,
> > > >Edit,
> > > >NSToolbarFlexibleSpaceItem,
> > > >Deploy,
> > > >Dashboard
> > > >);
> > > >"TB Size Mode" = 1;
> > > >"TB Visibility Priority Values" = {
> > > >};
> > > >};
> > > > }
> > > > =
> >
> > > > "os.path.exists(os.path.join(os.path.dirname(os.__file__),
> 'cgi.py'))"
> > > > gives me a value of True.
> >
> > > > greg
> >
> > > > On Oct 8, 9:06 pm, "Marzia Niccolai" <[EMAIL PROTECTED]> wrote:
> > > > > Yet more troubleshooting requests :)
> >
> > > > > This may be more specific than just1.1.5+ 10.5.5 as we have cases
> where
> > > > > this installation is working.
> >
> > > > > If you could send the results of running this command on the
> command
> > > > line:
> > > > > defaults read
> ~/Library/Preferences/com.google.GoogleAppEngineLauncher
> >
> > > > > Also, the entire output in the Console window, such as:
> > > > > *** Running dev_appserver with the following flags:
> > > > >--admin_console_server= --port=8080
> --datastore_path=/Users/name/q
> > > > > --debug
> > > > > Python command: /usr/bin/python
> >
> > > > > And finally when you run python from the shell, what is the output
> of:
> > > > > import os
> > > > > os.path.exists(os.path.join(os.path.dirname(os.__file__),
> 'cgi.py'))
> >
> > > > > Thanks,
> > > > > Marzia
> >
> > > > > On Wed, Oct 8, 2008 at 11:30 AM, Marzia Niccolai <[EMAIL PROTECTED]
> >
> > > > wrote:
> > > > > > Hi,
> >
> > > > > > An

[google-appengine] Upload a directory of static files

2008-10-10 Thread GMan
Hi,
I looked around on the discussion group and it seems the standard answer for
uploading a directory of static files is not working for me.  Is there
something obvious that I'm doing wrong?

I have two subdirectories which contain static files.
1) /static
some html files

2) /css
a .css file

Here is my app.yaml. what am I missing here?

application: draftcentral
version: 1
runtime: python
api_version: 1

handlers:
- url: /load
  script: Loader.py
  #login: admin

- url: /static
  static_dir: staticDir
  upload: staticDir/

- url: /stylesheets
  static_dir: stylesheets
  upload: stylesheets/

- url: /.*
  script: DraftCentral.py

--~--~-~--~~~---~--~~
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@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/google-appengine?hl=en
-~--~~~~--~~--~--~---



[google-appengine] How to get root entities only?

2008-10-10 Thread Lakshmi

Hello,

If we take the following example:

Comment
  - post (reference to Post)
  - text
  - author

where comments that are responded to become parents of other comments,
how can I get only the root entities - comments that are not
responses?

Comment.gql("WHERE post=:post AND ANCESTOR IS None", post=)
does not work. I get a  "Invalid WHERE condition at symbol None"
error.


Thanks in advance
Lakshmi.


--~--~-~--~~~---~--~~
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@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/google-appengine?hl=en
-~--~~~~--~~--~--~---



[google-appengine] Re: page not refreshing properly

2008-10-10 Thread Jeff S

Hi ae,

When you say that the page does not refresh properly, could you be
more specific? Is it that the redirect doesn't happen, or the page
content is not what you expect?...

Cheers,

Jeff

On Oct 9, 7:17 pm, ae <[EMAIL PROTECTED]> wrote:
> I have a Sign Out link that signs somebody out and redirects them back
> to where they were (same url but with slightly different content)...
> but the page doesn't seem to refresh properly all the time.  What's
> the best way to solve this?  Thanks.
--~--~-~--~~~---~--~~
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@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/google-appengine?hl=en
-~--~~~~--~~--~--~---



[google-appengine] Re: db.Model instances - please document ALL reserved/used names

2008-10-10 Thread Marzia Niccolai
Hi Andy,

The information on disallowed property names is here:
http://code.google.com/appengine/docs/datastore/modelclass.html#Disallowed_Property_Names

"The datastore reserves all property names that begin and end with two
underscores (__*__). A datastore entity cannot have a property with such a
name.

The Python model API ignores all attributes on a
Modelor
Expando that
begin with an underscore (
_). Your application can use these attributes to associate data with the
model objects that is not saved to the datastore."
-Marzia

On Fri, Oct 10, 2008 at 1:15 PM, Andy Freeman <[EMAIL PROTECTED]> wrote:

>
> class A(db.Model):
>x = db.StringProperty(default='hi')
>def __init__(self, *args, **kwds):
>self._x = 'yes'
>super(A, self,).__init__(*args, **kwds)
>
> a = A()
>
> There's nothing in the documentation that suggests a connection
> between A's property x and the instance variable _x, but the db.Model
> and property implementation uses _x to store values for x.
>
> This should be documented.  (Of course, it isn't actually necessary -
> an instance's property data could have been stored in a single
> instance-specific structure with a documented name, but )
>
>
> >
>

--~--~-~--~~~---~--~~
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@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/google-appengine?hl=en
-~--~~~~--~~--~--~---



[google-appengine] Re: a way to determine image size would be greatly appreciated

2008-10-10 Thread Jeff S

Hi Claude,

This sounds a bit like the following feature request:
http://code.google.com/p/googleappengine/issues/detail?id=435 but your
idea may be slightly different. Feel free to star this one, or file a
new issue :)

Thank you,

Jeff

On Oct 9, 10:25 pm, cz <[EMAIL PROTECTED]> wrote:
> If there was just one thing to add to the Image api, a way to
> determine the image size would be highest on my list.
>
> It just seems so easy to add... would it not be possible to stuff a
> couple of integers (height,width) along with the image data into the
> image service response ProtocolMessage? Maybe it's not so easy, I
> don't really know.
>
> But please, please, could someone at Google spend a couple of minutes
> to look into it?
>
> thanks,
> - Claude
--~--~-~--~~~---~--~~
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@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/google-appengine?hl=en
-~--~~~~--~~--~--~---



[google-appengine] Re: 1000 file limit

2008-10-10 Thread yejun

S3 accepts query string based authentication with expiration time.
Proxy through GAE will limit file size to 1M and triple the network
usage.

On Oct 10, 4:24 pm, "Venkatesh Rangarajan"
<[EMAIL PROTECTED]> wrote:
> Well,
>
> If you do that, then you have to Open media. to public. You have
> to give read access to public.
>
> its a choice one can make..that basically makes all of your files structure
> public and anybody can download them. All of them at one go.
>
> By you using URL fetch, appengine is the gatekeeper and you can have stats/
> ads and any other functionality you want.
>
> Rgds,
> Venkatesh
>
> On Fri, Oct 10, 2008 at 12:05 PM, yejun <[EMAIL PROTECTED]> wrote:
>
> > Why not serve file from S3 directly?
>
> > On Oct 10, 1:38 pm, "Venkatesh Rangarajan"
> > <[EMAIL PROTECTED]> wrote:
> > > Phtq,
>
> > > Its better if you host your static files in Amazon S3.
>
> > > You can create a new subdomain...say media..com on S3
>
> > > And when in appengine, you reference that file, all you have to do a is a
> > > urlfetch
>
> > > Sample : urlfetch.fetch('http://media..com/mp3/' +  > name>)
>
> > > you can use amazon S3 organizer to upload files to S3. Its as simple as
> > FTP.
> > > Link :
> >https://addons.mozilla.org/en-US/firefox/addon/3247https://addons.moz...
>
> > > Rgds,
> > > Venkatesh
>
> > > On Fri, Oct 10, 2008 at 9:54 AM, Barry Hunter
> > > <[EMAIL PROTECTED]>wrote:
>
> > > > Couple of options:
>
> > > > Host the 'static' files elsewhere (eg Amazon S3 - esp as it will soon
> > > > have a CDN)
>
> > > > Store the files in the datastore, and serve them dynamically via a
> > > > script. (be careful to set good caching headers to avoid wasting
> > > > resources)
>
> > > > Store the files in zip files (beware a 1Mb limit) and dynamicially
> > > > serve them via a script. (not recommended)
>
> > > > You have 10 'apps', distribute your static files around other
> > > > installations.
>
> > > > On Fri, Oct 10, 2008 at 3:36 AM, phtq <[EMAIL PROTECTED]>
> > wrote:
>
> > > > > We have an application we want to put online but it contains about
> > > > > 8,000 files (these are mp3, gif, swf, html, etc) in the English
> > > > > version alone. We tested a cut down version online and it worked
> > fine,
> > > > > but when we try to put up the whole application for testing we get a
> > > > > fail message from the uploader.
>
> > > > > Is it going to impossible to mount this application in
> > > > > GoogleAppEngine?
>
> > > > --
> > > > Barry
>
> > > > -www.nearby.org.uk-www.geograph.org.uk-
--~--~-~--~~~---~--~~
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@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/google-appengine?hl=en
-~--~~~~--~~--~--~---



[google-appengine] Re: Why python?

2008-10-10 Thread Sal

I vote for this thread to be removed. If the original poster would
like an informative answer, then he should pose an appropriate
question or setup his own home server with cgi scripts in C. Words
like hate are inappropriate in this context.

On Oct 9, 11:50 pm, Leo(雷傲) <[EMAIL PROTECTED]> wrote:
> I hate python's strange grammer! It's not neccesary to build a new
> style of grammer since the c-like grammer is so successful !
>
> And I think the "OOP" is not so great. The procedure programming
> language is still powerful and will continue its power!
--~--~-~--~~~---~--~~
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@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/google-appengine?hl=en
-~--~~~~--~~--~--~---



[google-appengine] Re: In AppEngine, gdata.py-1.2.1 (latest as of 10-8-08) is broken and gdata.service.http_request_handler = gdata.urlfetch won't help

2008-10-10 Thread Jeff S

Instructions for using the latest version of the gdata-python-client
can be found here: http://code.google.com/appengine/articles/gdata.html
There are also a few threads on this discussion group which have dealt
with recent changes in the Python library for Google Data APIs:

http://groups.google.com/group/google-appengine/browse_thread/thread/1433e3883aa67b73
http://groups.google.com/group/google-appengine/browse_thread/thread/881229734ab68b72
http://groups.google.com/group/google-appengine/browse_thread/thread/9688d06514109954
http://groups.google.com/group/google-appengine/browse_thread/thread/10d8d67cbf6ba709

Happy coding,

Jeff

On Oct 8, 9:57 pm, pragmaticobjects <[EMAIL PROTECTED]>
wrote:
> Jeff Scudder blogged about making Contacts API work with AppEngine
> here (http://googledataapis.blogspot.com/2008/04/release-hounds-support-for...
> ), but gdata.py-1.2.1 is broken in AppEngine 1.1.5 (both are latest as
> of 10-08-08).  The error is 'module' object has no attribute 'socket',
> which already was posted on another Google Group here 
> (http://groups.google.com/group/youtube-api-gdata/browse_thread/thread...
> ).
>
> You can write a simple app using gdata.py-1.2.1 and AppEngine 1.1.5,
> get it working  and tell me that I'm crazy, and I'll be glad to hear
> that, but I spent the whole day and still didn't see it working.
>
> Anyway, for now I fixed by still using the latest gdata.py.1.2.1,
> copy /atom and /gdata to the application folder, but I replace all
> the .py files with the same ones from one of the sample 
> fromhttp://code.google.com/p/hello-youtube/downloads/list#.  I know that's
> scary and crazy, but that seems to work for now.  It's better than the
> alternatives which is either doing nothing, or using one of the older
> gdata.py versions (don't know which one to select) or simply wait.
>
> Hope someone from either team at Google see this post, verify the
> problem, and fix it.
--~--~-~--~~~---~--~~
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@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/google-appengine?hl=en
-~--~~~~--~~--~--~---



[google-appengine] db.Model instances - please document ALL reserved/used names

2008-10-10 Thread Andy Freeman

class A(db.Model):
x = db.StringProperty(default='hi')
def __init__(self, *args, **kwds):
self._x = 'yes'
super(A, self,).__init__(*args, **kwds)

a = A()

There's nothing in the documentation that suggests a connection
between A's property x and the instance variable _x, but the db.Model
and property implementation uses _x to store values for x.

This should be documented.  (Of course, it isn't actually necessary -
an instance's property data could have been stored in a single
instance-specific structure with a documented name, but )


--~--~-~--~~~---~--~~
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@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/google-appengine?hl=en
-~--~~~~--~~--~--~---



[google-appengine] Re: Why python?

2008-10-10 Thread Steve Schwarz
I'm thinking: http://en.wikipedia.org/wiki/Troll_(Internet) or:
http://en.wikipedia.org/wiki/Flame_bait
Steve


2008/10/10 Davide Rognoni <[EMAIL PROTECTED]>

>
> Is this a provocation?
>
> On Oct 10, 8:50 am, Leo(雷傲) <[EMAIL PROTECTED]> wrote:
> > I hate python's strange grammer! It's not neccesary to build a new
> > style of grammer since the c-like grammer is so successful !
> >
> > And I think the "OOP" is not so great. The procedure programming
> > language is still powerful and will continue its power!
> >
>

--~--~-~--~~~---~--~~
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@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/google-appengine?hl=en
-~--~~~~--~~--~--~---



[google-appengine] db.ReferenceProperty - need some mechanism for disabling collection

2008-10-10 Thread Andy Freeman

class A(db.Model):
pass

class B(db.Model):
a = db.ReferenceProperty(A)

In some cases, it's an error to use instances of A to refer to
instances of B.

It would be nice to have some documented way to express that fact, to
make it so that A.get(key).b_set throws an exception.

--~--~-~--~~~---~--~~
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@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/google-appengine?hl=en
-~--~~~~--~~--~--~---



[google-appengine] Re: 1000 file limit

2008-10-10 Thread Venkatesh Rangarajan
Well,

If you do that, then you have to Open media. to public. You have
to give read access to public.

its a choice one can make..that basically makes all of your files structure
public and anybody can download them. All of them at one go.

By you using URL fetch, appengine is the gatekeeper and you can have stats/
ads and any other functionality you want.

Rgds,
Venkatesh

On Fri, Oct 10, 2008 at 12:05 PM, yejun <[EMAIL PROTECTED]> wrote:

>
> Why not serve file from S3 directly?
>
> On Oct 10, 1:38 pm, "Venkatesh Rangarajan"
> <[EMAIL PROTECTED]> wrote:
> > Phtq,
> >
> > Its better if you host your static files in Amazon S3.
> >
> > You can create a new subdomain...say media..com on S3
> >
> > And when in appengine, you reference that file, all you have to do a is a
> > urlfetch
> >
> > Sample : urlfetch.fetch('http://media..com/mp3/' +  name>)
> >
> > you can use amazon S3 organizer to upload files to S3. Its as simple as
> FTP.
> > Link :
> https://addons.mozilla.org/en-US/firefox/addon/3247https://addons.mozilla.org/en-US/firefox/addon/3247
> >
> > Rgds,
> > Venkatesh
> >
> > On Fri, Oct 10, 2008 at 9:54 AM, Barry Hunter
> > <[EMAIL PROTECTED]>wrote:
> >
> >
> >
> > > Couple of options:
> >
> > > Host the 'static' files elsewhere (eg Amazon S3 - esp as it will soon
> > > have a CDN)
> >
> > > Store the files in the datastore, and serve them dynamically via a
> > > script. (be careful to set good caching headers to avoid wasting
> > > resources)
> >
> > > Store the files in zip files (beware a 1Mb limit) and dynamicially
> > > serve them via a script. (not recommended)
> >
> > > You have 10 'apps', distribute your static files around other
> > > installations.
> >
> > > On Fri, Oct 10, 2008 at 3:36 AM, phtq <[EMAIL PROTECTED]>
> wrote:
> >
> > > > We have an application we want to put online but it contains about
> > > > 8,000 files (these are mp3, gif, swf, html, etc) in the English
> > > > version alone. We tested a cut down version online and it worked
> fine,
> > > > but when we try to put up the whole application for testing we get a
> > > > fail message from the uploader.
> >
> > > > Is it going to impossible to mount this application in
> > > > GoogleAppEngine?
> >
> > > --
> > > Barry
> >
> > > -www.nearby.org.uk-www.geograph.org.uk-
> >
>

--~--~-~--~~~---~--~~
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@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/google-appengine?hl=en
-~--~~~~--~~--~--~---



[google-appengine] Re: Modeling mutual references

2008-10-10 Thread Andy Freeman

Yes, but then the db.ReferenceProperty won't verify that it's being
pointed to the right kind of thing.

On Oct 9, 4:40 pm, yejun <[EMAIL PROTECTED]> wrote:
> You don't have to give class for ReferenceProperty.
> first = db.ReferenceProperty()
>
> On Oct 9, 6:53 pm, acuth <[EMAIL PROTECTED]> wrote:
>
>
>
> > Is it possible to have two models reference each other? I can't get
> > this to work and haven't been able to find this limitation in the
> > documentation. As a simple example, consider:
>
> > class Book(db.Model):
> >         title = db.StringProperty()
> >         first = db.ReferenceProperty(Page)
>
> > class Page(db.Model):
> >         text = db.TextProperty()
> >         next = db.SelfReferenceProperty()
> >         book = db.ReferenceProperty(Book)
>
> > which generates "NameError: name 'Page' is not defined" when
> > processing the Book class definition. Is this really a limitation of
> > the underlying data store or is it more related to how models are
> > defined in Python?
>
> > I'm guessing the solution is to record the 'first page in book'
> > information as a separate class, for example:
>
> > class FirstPage(db.Model):
> >         book = db.ReferenceProperty(Book)
> >         first = db.ReferenceProperty(Page)
>
> > any pointers would be gratefully received, Adrian- Hide quoted text -
>
> - Show quoted text -
--~--~-~--~~~---~--~~
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@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/google-appengine?hl=en
-~--~~~~--~~--~--~---



[google-appengine] Re: Definition of "Google's Infrastructure"

2008-10-10 Thread vvatever

> Regarding the CDN case is markedly different from the datastore case,
> since you're just dealing with immutable blobs. This is not the thorny
> issue.

Are you saying that GAE already takes care of replicating static
content to the edge servers? If so, what type of content is considered
immutable blob - images, javascripts, etc.?

--~--~-~--~~~---~--~~
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@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/google-appengine?hl=en
-~--~~~~--~~--~--~---



[google-appengine] GAE & Jaxer

2008-10-10 Thread Davide Rognoni

http://www.aptana.com/jaxer

Google, let's go!

:-)

--~--~-~--~~~---~--~~
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@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/google-appengine?hl=en
-~--~~~~--~~--~--~---



[google-appengine] Re: datastore transaction question

2008-10-10 Thread yejun

I found an old thread on this topic.
http://groups.google.com/group/google-appengine/browse_thread/thread/ba1c22b37581/8722ed96f11f0c17
It seems eventual consistency is the only practical option.

On Oct 9, 1:04 pm, David <[EMAIL PROTECTED]> wrote:
> Hi, a question for all you datastore gurus:
>
> If I have:
>
> class User(db.Model):
>     money = db.IntegerProperty(required=True)
>
> class Thing(db.Model):
>     cost = db.IntegerProperty(required=True)
>     stuff = db.BlobProperty(required=True)
>
> I need to allow a user to create a new thing and then reference the
> things they have somehow. So a request would be called with the cost
> and the blob data, and I would like to put a new Thing in the
> datastore. But heres the problem, only if the user has enough money to
> create the new Thing.
>
> This is causing me a issue, as i cant update two separate entity
> groups in one transaction. unless im missing something i dont want to
> group them as the Thing may be sold at a later data to a new User.
>
> so i need to:
>
> 1)get the users money
> 2)if they have enough create the Thing and put it in the datastore
> 3)update the users money and reference the Thing to the user somehow
> and re-store
>
> If any of this fails i need it all to roll back.
>
> Currently im creating the Thing regardles and performing a transaction
> on the User, if this fails i delete the Thing after. This makes me
> uneasy :)
>
> any suggestions would be most welcome.
--~--~-~--~~~---~--~~
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@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/google-appengine?hl=en
-~--~~~~--~~--~--~---



[google-appengine] Re: GAE Obfuscator?

2008-10-10 Thread Davide Rognoni

Yes, the aim of this post is to learn something about the GAE
obfuscation.

On Oct 9, 9:41 pm, "Jorge Vargas" <[EMAIL PROTECTED]> wrote:
> have you heard of MACOSX? this isn't really new... anyway I'm going to
> stop replying as you seem to be trolling about how bad google is, and
> to be honest that's a discussion I'll prefer not to have with
> strangers.
>
> On Wed, Oct 8, 2008 at 1:37 PM, Davide Rognoni <[EMAIL PROTECTED]> wrote:
>
> > ...and I can't see its secret code?
>
> > "Google Chrome: Good or evil?"
> >http://blog.sp.or.at/2008/09/02/google-chrome-good-or-evil/
>
> > See the last comment:
> > "The source code for Google's Chrome Browser has never been released.
> > Google uses the code from the open source browser Chromium in their
> > proprietary browser Chrome. They can do this because the Chromium code
> > is released under the BSD License. Clever marketing by Google. Google
> > only offers Chrome in binary form (it's closed source) and they only
> > offer the source code (not the binary) for Chromium. If you want to
> > use the open source browser Chromium you can download a binary at
> >http://free-chrome.net";
>
> > On Oct 3, 11:13 pm, Davide Rognoni <[EMAIL PROTECTED]> wrote:
> >> Why Google can see my secret code?
>
> >> i.e.http://www.lysator.liu.se/~astrand/projects/pyobfuscate/
--~--~-~--~~~---~--~~
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@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/google-appengine?hl=en
-~--~~~~--~~--~--~---



[google-appengine] Re: Why python?

2008-10-10 Thread Josh Heitzman

Python has been around for over decade so I really wouldn't call it a
new style of grammar.  There are numerous programming languages out
there that don't use c-like grammar, so Python is hardly unique in
that respect.  Python started life without objects and none of its
procedural aspects were removed when objects were added.

On Oct 9, 11:50 pm, Leo(雷傲) <[EMAIL PROTECTED]> wrote:
> I hate python's strange grammer! It's not neccesary to build a new
> style of grammer since the c-like grammer is so successful !
>
> And I think the "OOP" is not so great. The procedure programming
> language is still powerful and will continue its power!
--~--~-~--~~~---~--~~
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@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/google-appengine?hl=en
-~--~~~~--~~--~--~---



[google-appengine] Re: 1000 file limit

2008-10-10 Thread Davide Rognoni

Could you make 8 updates?

1) put 1000 file and run:
appcfg.py update yourapp

2) put 1000 file and run:
appcfg.py update yourapp

... 8)

On Oct 10, 4:36 am, phtq <[EMAIL PROTECTED]> wrote:
> We have an application we want to put online but it contains about
> 8,000 files (these are mp3, gif, swf, html, etc) in the English
> version alone. We tested a cut down version online and it worked fine,
> but when we try to put up the whole application for testing we get a
> fail message from the uploader.
>
> Is it going to impossible to mount this application in
> GoogleAppEngine?
--~--~-~--~~~---~--~~
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@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/google-appengine?hl=en
-~--~~~~--~~--~--~---



[google-appengine] Re: 1000 file limit

2008-10-10 Thread yejun

Why not serve file from S3 directly?

On Oct 10, 1:38 pm, "Venkatesh Rangarajan"
<[EMAIL PROTECTED]> wrote:
> Phtq,
>
> Its better if you host your static files in Amazon S3.
>
> You can create a new subdomain...say media..com on S3
>
> And when in appengine, you reference that file, all you have to do a is a
> urlfetch
>
> Sample : urlfetch.fetch('http://media..com/mp3/' + )
>
> you can use amazon S3 organizer to upload files to S3. Its as simple as FTP.
> Link 
> :https://addons.mozilla.org/en-US/firefox/addon/3247https://addons.mozilla.org/en-US/firefox/addon/3247
>
> Rgds,
> Venkatesh
>
> On Fri, Oct 10, 2008 at 9:54 AM, Barry Hunter
> <[EMAIL PROTECTED]>wrote:
>
>
>
> > Couple of options:
>
> > Host the 'static' files elsewhere (eg Amazon S3 - esp as it will soon
> > have a CDN)
>
> > Store the files in the datastore, and serve them dynamically via a
> > script. (be careful to set good caching headers to avoid wasting
> > resources)
>
> > Store the files in zip files (beware a 1Mb limit) and dynamicially
> > serve them via a script. (not recommended)
>
> > You have 10 'apps', distribute your static files around other
> > installations.
>
> > On Fri, Oct 10, 2008 at 3:36 AM, phtq <[EMAIL PROTECTED]> wrote:
>
> > > We have an application we want to put online but it contains about
> > > 8,000 files (these are mp3, gif, swf, html, etc) in the English
> > > version alone. We tested a cut down version online and it worked fine,
> > > but when we try to put up the whole application for testing we get a
> > > fail message from the uploader.
>
> > > Is it going to impossible to mount this application in
> > > GoogleAppEngine?
>
> > --
> > Barry
>
> > -www.nearby.org.uk-www.geograph.org.uk-
--~--~-~--~~~---~--~~
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@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/google-appengine?hl=en
-~--~~~~--~~--~--~---



[google-appengine] Re: Why python?

2008-10-10 Thread Davide Rognoni

Is this a provocation?

On Oct 10, 8:50 am, Leo(雷傲) <[EMAIL PROTECTED]> wrote:
> I hate python's strange grammer! It's not neccesary to build a new
> style of grammer since the c-like grammer is so successful !
>
> And I think the "OOP" is not so great. The procedure programming
> language is still powerful and will continue its power!
--~--~-~--~~~---~--~~
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@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/google-appengine?hl=en
-~--~~~~--~~--~--~---



[google-appengine] Re: GAE Bless America

2008-10-10 Thread Davide Rognoni

:-)

See also
http://appgallery.appspot.com/results?category=Finance


On Oct 9, 10:19 pm, Davide Rognoni <[EMAIL PROTECTED]> wrote:
> http://finance.google.com/finance?q=Google
>
> "God Bless The Globalized World"
--~--~-~--~~~---~--~~
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@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/google-appengine?hl=en
-~--~~~~--~~--~--~---



[google-appengine] Re: Why python?

2008-10-10 Thread Amir Michail

On Oct 10, 2:50 am, Leo(雷傲) <[EMAIL PROTECTED]> wrote:
> I hate python's strange grammer! It's not neccesary to build a new
> style of grammer since the c-like grammer is so successful !
>
> And I think the "OOP" is not so great. The procedure programming
> language is still powerful and will continue its power!

C isn't a serious alternative to Python for web apps.  But Scala is.
I hope that the upcoming app engine Java support will include Scala
and its api.

Amir


--~--~-~--~~~---~--~~
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@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/google-appengine?hl=en
-~--~~~~--~~--~--~---



[google-appengine] Datastore integrity checks using relational db schemas

2008-10-10 Thread Amir Michail

Hi,

Why not provide datastore integrity checks using relational db
schemas?

Even though a relational database architecture may be too expensive in
terms of resource usage, why not at least provide a datastore
integrity check that could be used occasionally to fix up the db?

It seems that anyone building a serious app would need to write
datastore integrity checks manually...  so why not have this built
into the google app engine and why not use relational database
conventions for specifying database constraints?

Amir


--~--~-~--~~~---~--~~
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@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/google-appengine?hl=en
-~--~~~~--~~--~--~---



[google-appengine] Re: 1000 file limit

2008-10-10 Thread Venkatesh Rangarajan
Phtq,

Its better if you host your static files in Amazon S3.

You can create a new subdomain...say media..com on S3

And when in appengine, you reference that file, all you have to do a is a
urlfetch

Sample : urlfetch.fetch('http://media..com/mp3/' + )

you can use amazon S3 organizer to upload files to S3. Its as simple as FTP.
Link : https://addons.mozilla.org/en-US/firefox/addon/3247
https://addons.mozilla.org/en-US/firefox/addon/3247

Rgds,
Venkatesh

On Fri, Oct 10, 2008 at 9:54 AM, Barry Hunter
<[EMAIL PROTECTED]>wrote:

>
> Couple of options:
>
> Host the 'static' files elsewhere (eg Amazon S3 - esp as it will soon
> have a CDN)
>
> Store the files in the datastore, and serve them dynamically via a
> script. (be careful to set good caching headers to avoid wasting
> resources)
>
> Store the files in zip files (beware a 1Mb limit) and dynamicially
> serve them via a script. (not recommended)
>
> You have 10 'apps', distribute your static files around other
> installations.
>
>
>
> On Fri, Oct 10, 2008 at 3:36 AM, phtq <[EMAIL PROTECTED]> wrote:
> >
> > We have an application we want to put online but it contains about
> > 8,000 files (these are mp3, gif, swf, html, etc) in the English
> > version alone. We tested a cut down version online and it worked fine,
> > but when we try to put up the whole application for testing we get a
> > fail message from the uploader.
> >
> > Is it going to impossible to mount this application in
> > GoogleAppEngine?
> >
> > >
> >
>
>
>
> --
> Barry
>
> - www.nearby.org.uk - www.geograph.org.uk -
>
> >
>

--~--~-~--~~~---~--~~
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@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/google-appengine?hl=en
-~--~~~~--~~--~--~---



[google-appengine] Re: datastore exception handling examples

2008-10-10 Thread Bill

> Are there any articles or sample code, showing how to robustly handle
> datastore exceptions, for production standard code?

David,

I recently modified my memcached, sharded counter system to handle
various datastore exceptions:
http://billkatz.com/2008/10/Fault-tolerant-counters-for-App-Engine
You can look at or copy the open source code referenced in that
article.

It also depends on your app requirements.  The above counter shouldn't
be used for banking, for example, because if there are simultaneous
memcache and datastore errors, you lose pending increments.  But if
you want something that minimizes the impact of exceptions for things
like votes, it's a reasonable approach.

-Bill
--~--~-~--~~~---~--~~
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@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/google-appengine?hl=en
-~--~~~~--~~--~--~---



[google-appengine] Re: 1000 file limit

2008-10-10 Thread Barry Hunter

Couple of options:

Host the 'static' files elsewhere (eg Amazon S3 - esp as it will soon
have a CDN)

Store the files in the datastore, and serve them dynamically via a
script. (be careful to set good caching headers to avoid wasting
resources)

Store the files in zip files (beware a 1Mb limit) and dynamicially
serve them via a script. (not recommended)

You have 10 'apps', distribute your static files around other installations.



On Fri, Oct 10, 2008 at 3:36 AM, phtq <[EMAIL PROTECTED]> wrote:
>
> We have an application we want to put online but it contains about
> 8,000 files (these are mp3, gif, swf, html, etc) in the English
> version alone. We tested a cut down version online and it worked fine,
> but when we try to put up the whole application for testing we get a
> fail message from the uploader.
>
> Is it going to impossible to mount this application in
> GoogleAppEngine?
>
> >
>



-- 
Barry

- www.nearby.org.uk - www.geograph.org.uk -

--~--~-~--~~~---~--~~
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@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/google-appengine?hl=en
-~--~~~~--~~--~--~---



[google-appengine] Why python?

2008-10-10 Thread 雷傲

I hate python's strange grammer! It's not neccesary to build a new
style of grammer since the c-like grammer is so successful !

And I think the "OOP" is not so great. The procedure programming
language is still powerful and will continue its power!


--~--~-~--~~~---~--~~
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@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/google-appengine?hl=en
-~--~~~~--~~--~--~---



[google-appengine] Re: Since 1.1.5 import cgi/urllib/traceback/etc fails (on MacOS)

2008-10-10 Thread Leo



http://googleappengine.googlecode.com/files/GoogleAppEngineLauncher-1.1.4.dmg

On Oct 10, 2:48 am, Greg <[EMAIL PROTECTED]> wrote:
> Is there anywhere we can download 1.1.4 of the helper in the mean
> time? It'd be nice to get back to coding again.
>
> Greg
>
> On Oct 8, 10:49 pm, "Marzia Niccolai" <[EMAIL PROTECTED]> wrote:
>
> > Hi,
>
> > Thanks.  Did you also have the output of the dev_appserver logs console when
> > this happens?  And what is the output of 'which python'?
>
> > Your help is really appreciated.
>
> > -Marzia
>
> > On Wed, Oct 8, 2008 at 1:14 PM, Greg <[EMAIL PROTECTED]> wrote:
>
> > > Running dev_appserver.py from the command line gives me the same "No
> > > module named cgi" error.
>
> > > The result of "defaults read ~/Library/Preferences/
> > > com.google.GoogleAppEngineLauncher" :
>
> > > =
> > > {
> > >    EditDirectory = 1;
> > >    Editor = "";
> > >    GMClientAuthWindowSignInName = "[EMAIL PROTECTED]";
> > >    NSNavLastCurrentDirectory = "~/Documents/workspace";
> > >    NSNavLastRootDirectory = "~";
> > >    NSNavPanelExpandedSizeForOpenMode = "{518, 400}";
> > >    NSNavSidebarWidth = 120;
> > >    "NSTableView Columns NSNavOutlineColumnSettings.v1" =     (
> > >        <040b7374 7265616d 74797065 6481e803 84014084 8484084e
> > > 53537472 696e6701 8484084e 534f626a 65637400 8584012b 1c4e534e
> > > 61764469 73706c61 794e616d 6546696c 6550726f 70657274 7986>,
> > >        225,
> > >        <040b7374 7265616d 74797065 6481e803 84014084 8484084e
> > > 53537472 696e6701 8484084e 534f626a 65637400 8584012b 184e534e
> > > 61764d6f 64446174 6546696c 6550726f 70657274 7986>,
> > >        145
> > >    );
> > >    "NSTableView Hidden Columns NSNavOutlineColumnSettings.v1" =     (
> > >    );
> > >    "NSTableView Sort Ordering NSNavOutlineColumnSettings.v1" =     (
> > >        <040b7374 7265616d 74797065 6481e803 84014084 8484084e
> > > 53537472 696e6701 8484084e 534f626a 65637400 8584012b 184e534e
> > > 61764d6f 64446174 6546696c 6550726f 70657274 7986>,
> > >        0
> > >    );
> > >    "NSToolbar Configuration DocTB" =     {
> > >        "TB Display Mode" = 1;
> > >        "TB Icon Size Mode" = 1;
> > >        "TB Is Shown" = 1;
> > >        "TB Item Identifiers" =         (
> > >            Run,
> > >            Stop,
> > >            Browse,
> > >            Logs,
> > >            "SDK Console",
> > >            NSToolbarSeparatorItem,
> > >            Edit,
> > >            NSToolbarFlexibleSpaceItem,
> > >            Deploy,
> > >            Dashboard
> > >        );
> > >        "TB Size Mode" = 1;
> > >        "TB Visibility Priority Values" =         {
> > >        };
> > >    };
> > > }
> > > =
>
> > > "os.path.exists(os.path.join(os.path.dirname(os.__file__), 'cgi.py'))"
> > > gives me a value of True.
>
> > > greg
>
> > > On Oct 8, 9:06 pm, "Marzia Niccolai" <[EMAIL PROTECTED]> wrote:
> > > > Yet more troubleshooting requests :)
>
> > > > This may be more specific than just1.1.5+ 10.5.5 as we have cases where
> > > > this installation is working.
>
> > > > If you could send the results of running this command on the command
> > > line:
> > > > defaults read ~/Library/Preferences/com.google.GoogleAppEngineLauncher
>
> > > > Also, the entire output in the Console window, such as:
> > > > *** Running dev_appserver with the following flags:
> > > >    --admin_console_server= --port=8080 
> > > > --datastore_path=/Users/name/q
> > > > --debug
> > > > Python command: /usr/bin/python
>
> > > > And finally when you run python from the shell, what is the output of:
> > > > import os
> > > > os.path.exists(os.path.join(os.path.dirname(os.__file__), 'cgi.py'))
>
> > > > Thanks,
> > > > Marzia
>
> > > > On Wed, Oct 8, 2008 at 11:30 AM, Marzia Niccolai <[EMAIL PROTECTED]>
> > > wrote:
> > > > > Hi,
>
> > > > > Another question for those experiencing the issue - what is the output
> > > when
> > > > > you type 'python' in to your command line in the Mac shell?
>
> > > > > Thanks,
> > > > > Marzia
>
> > > > > On Wed, Oct 8, 2008 at 11:19 AM, Marzia Niccolai <[EMAIL PROTECTED]>
> > > wrote:
>
> > > > >> Hi,
>
> > > > >> I couldn't find this filed so I went ahead:
> > > > >>http://code.google.com/p/googleappengine/issues/detail?id=778
>
> > > > >> The scope so far seems to be limited to 10.5.5, and we'll keep you
> > > updated
> > > > >> on the progress.  I wonder if you can still run the SDK by making the
> > > > >> symlinks and running from the command line?
>
> > > > >> Thanks for the troubleshooting help.
>
> > > > >> -Marzia
>
> > > > >> On Wed, Oct 8, 2008 at 10:39 AM, Greg <[EMAIL PROTECTED]> wrote:
>
> > > > >>> I'm having the same error (on OS 10.5.5 and Launcher1.1.5). I tried
> > > > >>> explicit setting my Python path. It didn't fix the problem
>
> > > > >>> Greg
>
> > > > >>> On Oct 8, 5:59 pm, "Marzia Niccolai" <[EMAIL PROTECTED]> wrote:
> > > > >>> > Hi,
>
> > > > >>> > Thanks.  Right now it seems that this is an issue specific to
> > > 10.5.5 +
> >

[google-appengine] I can't receive the sms from google appengine

2008-10-10 Thread [EMAIL PROTECTED]

I had never ever received the sms from google appengine, but when I
click "send" button again, it said that "The phone number has been
sent too many messages or has already been used to confirm an
account.". Is there any problem with sms system of google  appengine?

--~--~-~--~~~---~--~~
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@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/google-appengine?hl=en
-~--~~~~--~~--~--~---



[google-appengine] Using GAE's data store with GWT???

2008-10-10 Thread Max

To developers who are familiar with GWT:

 Is there a demo for using GAE's data store with GWT? All I need from
GAE is adding, updating and deleting data and my client is built wiht
GWT. So I need a way to communicate GWT with GAE's data store.  Any
tutorials or demos for doing that ? Thanks

--~--~-~--~~~---~--~~
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@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/google-appengine?hl=en
-~--~~~~--~~--~--~---



[google-appengine] 1000 file limit

2008-10-10 Thread phtq

We have an application we want to put online but it contains about
8,000 files (these are mp3, gif, swf, html, etc) in the English
version alone. We tested a cut down version online and it worked fine,
but when we try to put up the whole application for testing we get a
fail message from the uploader.

Is it going to impossible to mount this application in
GoogleAppEngine?

--~--~-~--~~~---~--~~
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@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/google-appengine?hl=en
-~--~~~~--~~--~--~---



[google-appengine] Re: Should I use the development console online?

2008-10-10 Thread Marzia Niccolai
Hi,

A recent change to the admin module introduced an error that breaks the SDK
admin console when running on App Engine.

The advantage to running the SDK admin console on App Engine is to have an
interactive Python console to run one off queries/commands (this is why the
admin modules must be restricted to admin only login!).

I would suggest uploading shell.py with your app to run interctive commands,
and use the App Engine Admin Console to view the datastore.  shell.py can be
downloaded here: http://code.google.com/p/google-app-engine-samples/

Give it a test run at: http://shell.appspot.com

-Marzia

On Fri, Oct 10, 2008 at 4:52 AM, Hector Zhao <[EMAIL PROTECTED]> wrote:

>
> In fact, I tried using it, but it stopped to work since some days ago,
> always showing:
>
> 500 BadRequestError: app  cannot call GetSchema
>
> I searched the group, and found an early post at:
> http://groups.google.com/group/google-appengine/msg/e770ceefa2c26d54
>
> where Marzia said: "The admin is meant only for use with the
> development web server.  For your deployed application, visit
> http://appengine.google.com and sign in with your administrator
> account to view your logs, datastore, and administrative information.
> "
>
> but the docs at:
>
> http://code.google.com/appengine/docs/configuringanapp.html#Referring_to_the_Python_Library_Directory
>
> it says: "For example, $PYTHON_LIB/google/appengine/ext/admin is an
> administrative application similar to the developer console feature of
> the development web server that can run as part of your application on
> App Engine itself. To set it up, ..."
>
> So which one is right?
>
> Thanks.
> >
>

--~--~-~--~~~---~--~~
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@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/google-appengine?hl=en
-~--~~~~--~~--~--~---



[google-appengine] Re: importing models from external files

2008-10-10 Thread Marzia Niccolai
Also, don't forget to include an __init__.py file in all of your project
subfolders.

-Marzia

On Fri, Oct 10, 2008 at 3:44 AM, Sylvain <[EMAIL PROTECTED]> wrote:

>
> from model.blog import Blogger
> I think.
>
> On 10 oct, 10:51, "David Symonds" <[EMAIL PROTECTED]> wrote:
> > On Fri, Oct 10, 2008 at 7:20 PM, James <[EMAIL PROTECTED]> wrote:
> >
> > > Importing models from other files isn't working.
> >
> > > for instance,
> >
> > > model/blog.py
> >
> > > class Blogger(db.Model)
> > > 
> >
> > > model/user.py
> >
> > > class BlogUserl(db.Model):
> > >  blogger = db.ReferenceProperty(Blogger...)
> >
> > from blog import Blogger
> >
> > That should work just fine. What's the exact error message you are
> getting?
> >
> > Dave.
> >
>

--~--~-~--~~~---~--~~
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@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/google-appengine?hl=en
-~--~~~~--~~--~--~---



[google-appengine] Re: datastore exception handling examples

2008-10-10 Thread Marzia Niccolai
Hi David,

Currently we don't have any articles covering this subject, but thanks for
the suggestion!  We would like to expand a lot of the articles offered,
including on our datastore which seems to be a hot topic.

I would suggest checking out some of our samples in the meantime:
http://code.google.com/p/google-app-engine-samples

-Marzia

On Fri, Oct 10, 2008 at 3:07 AM, David
<[EMAIL PROTECTED]>wrote:

>
>
> Hi,
>
> Are there any articles or sample code, showing how to robustly handle
> datastore exceptions, for production standard code?
>
> Being a fresh python programmer, I find the api docs a bit light in
> this area and some concrete examples of not only what exceptions I
> should be handling and best practicies of what to do when exceptions
> occer to keep my app running would be very useful.
>
> David.
>
>
>
>
>
> >
>

--~--~-~--~~~---~--~~
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@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/google-appengine?hl=en
-~--~~~~--~~--~--~---



[google-appengine] Re: Since 1.1.5 import cgi/urllib/traceback/etc fails (on MacOS)

2008-10-10 Thread Marzia Niccolai
Hi Greg,

All of the old SDKs are available for download on the Google project hosting
site, they are just not in the default view.  All downloads can be viewed
here:
http://code.google.com/p/googleappengine/downloads/list?can=1&q=&colspec=Filename+Summary+Uploaded+Size+DownloadCount

-Marzia

On Thu, Oct 9, 2008 at 11:48 PM, Greg <[EMAIL PROTECTED]> wrote:

>
> Is there anywhere we can download 1.1.4 of the helper in the mean
> time? It'd be nice to get back to coding again.
>
> Greg
>
> On Oct 8, 10:49 pm, "Marzia Niccolai" <[EMAIL PROTECTED]> wrote:
> > Hi,
> >
> > Thanks.  Did you also have the output of the dev_appserver logs console
> when
> > this happens?  And what is the output of 'which python'?
> >
> > Your help is really appreciated.
> >
> > -Marzia
> >
> > On Wed, Oct 8, 2008 at 1:14 PM, Greg <[EMAIL PROTECTED]> wrote:
> >
> > > Running dev_appserver.py from the command line gives me the same "No
> > > module named cgi" error.
> >
> > > The result of "defaults read ~/Library/Preferences/
> > > com.google.GoogleAppEngineLauncher" :
> >
> > > =
> > > {
> > >EditDirectory = 1;
> > >Editor = "";
> > >GMClientAuthWindowSignInName = "[EMAIL PROTECTED]";
> > >NSNavLastCurrentDirectory = "~/Documents/workspace";
> > >NSNavLastRootDirectory = "~";
> > >NSNavPanelExpandedSizeForOpenMode = "{518, 400}";
> > >NSNavSidebarWidth = 120;
> > >"NSTableView Columns NSNavOutlineColumnSettings.v1" = (
> > ><040b7374 7265616d 74797065 6481e803 84014084 8484084e
> > > 53537472 696e6701 8484084e 534f626a 65637400 8584012b 1c4e534e
> > > 61764469 73706c61 794e616d 6546696c 6550726f 70657274 7986>,
> > >225,
> > ><040b7374 7265616d 74797065 6481e803 84014084 8484084e
> > > 53537472 696e6701 8484084e 534f626a 65637400 8584012b 184e534e
> > > 61764d6f 64446174 6546696c 6550726f 70657274 7986>,
> > >145
> > >);
> > >"NSTableView Hidden Columns NSNavOutlineColumnSettings.v1" = (
> > >);
> > >"NSTableView Sort Ordering NSNavOutlineColumnSettings.v1" = (
> > ><040b7374 7265616d 74797065 6481e803 84014084 8484084e
> > > 53537472 696e6701 8484084e 534f626a 65637400 8584012b 184e534e
> > > 61764d6f 64446174 6546696c 6550726f 70657274 7986>,
> > >0
> > >);
> > >"NSToolbar Configuration DocTB" = {
> > >"TB Display Mode" = 1;
> > >"TB Icon Size Mode" = 1;
> > >"TB Is Shown" = 1;
> > >"TB Item Identifiers" = (
> > >Run,
> > >Stop,
> > >Browse,
> > >Logs,
> > >"SDK Console",
> > >NSToolbarSeparatorItem,
> > >Edit,
> > >NSToolbarFlexibleSpaceItem,
> > >Deploy,
> > >Dashboard
> > >);
> > >"TB Size Mode" = 1;
> > >"TB Visibility Priority Values" = {
> > >};
> > >};
> > > }
> > > =
> >
> > > "os.path.exists(os.path.join(os.path.dirname(os.__file__), 'cgi.py'))"
> > > gives me a value of True.
> >
> > > greg
> >
> > > On Oct 8, 9:06 pm, "Marzia Niccolai" <[EMAIL PROTECTED]> wrote:
> > > > Yet more troubleshooting requests :)
> >
> > > > This may be more specific than just 1.1.5 + 10.5.5 as we have cases
> where
> > > > this installation is working.
> >
> > > > If you could send the results of running this command on the command
> > > line:
> > > > defaults read
> ~/Library/Preferences/com.google.GoogleAppEngineLauncher
> >
> > > > Also, the entire output in the Console window, such as:
> > > > *** Running dev_appserver with the following flags:
> > > >--admin_console_server= --port=8080
> --datastore_path=/Users/name/q
> > > > --debug
> > > > Python command: /usr/bin/python
> >
> > > > And finally when you run python from the shell, what is the output
> of:
> > > > import os
> > > > os.path.exists(os.path.join(os.path.dirname(os.__file__), 'cgi.py'))
> >
> > > > Thanks,
> > > > Marzia
> >
> > > > On Wed, Oct 8, 2008 at 11:30 AM, Marzia Niccolai <[EMAIL PROTECTED]>
> > > wrote:
> > > > > Hi,
> >
> > > > > Another question for those experiencing the issue - what is the
> output
> > > when
> > > > > you type 'python' in to your command line in the Mac shell?
> >
> > > > > Thanks,
> > > > > Marzia
> >
> > > > > On Wed, Oct 8, 2008 at 11:19 AM, Marzia Niccolai <[EMAIL PROTECTED]
> >
> > > wrote:
> >
> > > > >> Hi,
> >
> > > > >> I couldn't find this filed so I went ahead:
> > > > >>http://code.google.com/p/googleappengine/issues/detail?id=778
> >
> > > > >> The scope so far seems to be limited to 10.5.5, and we'll keep you
> > > updated
> > > > >> on the progress.  I wonder if you can still run the SDK by making
> the
> > > > >> symlinks and running from the command line?
> >
> > > > >> Thanks for the troubleshooting help.
> >
> > > > >> -Marzia
> >
> > > > >> On Wed, Oct 8, 2008 at 10:39 AM, Greg <[EMAIL PROTECTED]> wrote:
> >
> > > > >>> I'm having the same error (on OS 10.5.5 and Launcher 1.1.5). 

[google-appengine] Re: inconsistent indexes

2008-10-10 Thread tigrillo

if needed, the methods invoqued inside pendiente_aleatoria, but I
think it is not the matter.

@classmethod
def inc(cls):
if cls.INT < cls.MAX:
cls.INT+=1

@classmethod
def dec(cls):
if cls.INT > cls.MIN:
cls.INT-=1

Thanks
--~--~-~--~~~---~--~~
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@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/google-appengine?hl=en
-~--~~~~--~~--~--~---



[google-appengine] Re: Newbie question - save geocode to the Datastore

2008-10-10 Thread Barry Hunter

Maybe you can get some clues from

http://code.google.com/p/geodatastore/

Demo: http://geodatastore.appspot.com/

On Thu, Oct 9, 2008 at 11:56 PM, Yang <[EMAIL PROTECTED]> wrote:
>
> Hi,
>
> I am sorry for such newbie question...  I would appreciate any help.
>
> I am trying to write a simple code which allows a user to place
> markers on a map and save them. Those saved markers would be displayed
> to everyone. There are more thing I want to do past it, but I am stuck
> at saving the markers geocode to the Datastore.  I created db class,
> and initialized instance of it, but since marking activity happens in
> javascript, I don't know how to pass the geocode information from
> javascript portion to  part of HTML code so that it could be
> saved. Also, in reverse direction, I need to pass geocodes of all
> markers in the map canvas to display them.  I am very new to the whole
> Google App Engine thing, so any help would be much much appreciated.
>
> Thank you,
>
> -Yang
>
> >
>



-- 
Barry

- www.nearby.org.uk - www.geograph.org.uk -

--~--~-~--~~~---~--~~
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@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/google-appengine?hl=en
-~--~~~~--~~--~--~---



[google-appengine] Re: inconsistent indexes

2008-10-10 Thread tigrillo

if needed, the methods invoqued inside pendiente_aleatoria, but I
think it is not the matter.

@classmethod
def inc(cls):
if cls.INT < cls.MAX:
cls.INT+=1

@classmethod
def dec(cls):
if cls.INT > cls.MIN:
cls.INT-=1

Thanks
--~--~-~--~~~---~--~~
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@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/google-appengine?hl=en
-~--~~~~--~~--~--~---



[google-appengine] Re: inconsistent indexes

2008-10-10 Thread tigrillo

This was the code when a realized about the problem:

I invoque: self.pendiente_aleatoria(False)... and got "1"

def pendiente_aleatoria(self, aleatoria=True):
ahora = DateSuport.hoy()
if aleatoria:
offset=int(random.random()*self.INT)
else:
offset=0
mas_vieja = self.clase.gql("WHERE fecha_f <= :1 ORDER BY
fecha_f ASC", ahora).get()
if mas_vieja != None:
rta = self.clase.gql("WHERE fecha_f = :1",
mas_vieja.fecha_f).fetch(limit=1, offset=offset)
if len(rta) == 0:
self.dec()
logging.warning("1")
return None
else:
self.inc()
logging.warning("2")
return rta[0]
logging.warning("3")
return None
--~--~-~--~~~---~--~~
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@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/google-appengine?hl=en
-~--~~~~--~~--~--~---



[google-appengine] Re: Newbie question - save geocode to the Datastore

2008-10-10 Thread [EMAIL PROTECTED]

Without getting too much into the details, you'll probably want to do
an asynchronous (AJAX) request to your web app.  Basically, once the
geocode request has gone through and you have the coordinates, fire
off another request to post the coordinates and associated data to
your AppSpot for storage.

-B

On Oct 9, 3:56 pm, Yang <[EMAIL PROTECTED]> wrote:
> Hi,
>
> I am sorry for such newbie question...  I would appreciate any help.
>
> I am trying to write a simple code which allows a user to place
> markers on a map and save them. Those saved markers would be displayed
> to everyone. There are more thing I want to do past it, but I am stuck
> at saving the markers geocode to the Datastore.  I created db class,
> and initialized instance of it, but since marking activity happens in
> javascript, I don't know how to pass the geocode information from
> javascript portion to  part of HTML code so that it could be
> saved. Also, in reverse direction, I need to pass geocodes of all
> markers in the map canvas to display them.  I am very new to the whole
> Google App Engine thing, so any help would be much much appreciated.
>
> Thank you,
>
> -Yang
--~--~-~--~~~---~--~~
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@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/google-appengine?hl=en
-~--~~~~--~~--~--~---



[google-appengine] Should I use the development console online?

2008-10-10 Thread Hector Zhao

In fact, I tried using it, but it stopped to work since some days ago,
always showing:

500 BadRequestError: app  cannot call GetSchema

I searched the group, and found an early post at:
http://groups.google.com/group/google-appengine/msg/e770ceefa2c26d54

where Marzia said: "The admin is meant only for use with the
development web server.  For your deployed application, visit
http://appengine.google.com and sign in with your administrator
account to view your logs, datastore, and administrative information.
"

but the docs at:
http://code.google.com/appengine/docs/configuringanapp.html#Referring_to_the_Python_Library_Directory

it says: "For example, $PYTHON_LIB/google/appengine/ext/admin is an
administrative application similar to the developer console feature of
the development web server that can run as part of your application on
App Engine itself. To set it up, ..."

So which one is right?

Thanks.
--~--~-~--~~~---~--~~
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@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/google-appengine?hl=en
-~--~~~~--~~--~--~---



[google-appengine] Re: How to use timeutil module in GAE?

2008-10-10 Thread kang
OK..Thanks

On Fri, Oct 10, 2008 at 1:26 AM, Marzia Niccolai <[EMAIL PROTECTED]> wrote:

> Hi,
>
> Please read the following FAQ on what python libraries are available with
> Google App Engine:
> http://code.google.com/appengine/kb/general.html#libraries
>
> -Marzia
>
> On Wed, Oct 8, 2008 at 8:28 PM, Kang <[EMAIL PROTECTED]> wrote:
>
>>
>> I cannot import that module in GAE. Wish your help.
>>
>> p.s. I cannot import epsilon module either...
>>
>>
>>
>
> >
>


-- 
Stay hungry,Stay foolish.

--~--~-~--~~~---~--~~
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@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/google-appengine?hl=en
-~--~~~~--~~--~--~---



[google-appengine] Re: importing models from external files

2008-10-10 Thread Sylvain

from model.blog import Blogger
I think.

On 10 oct, 10:51, "David Symonds" <[EMAIL PROTECTED]> wrote:
> On Fri, Oct 10, 2008 at 7:20 PM, James <[EMAIL PROTECTED]> wrote:
>
> > Importing models from other files isn't working.
>
> > for instance,
>
> > model/blog.py
>
> > class Blogger(db.Model)
> > 
>
> > model/user.py
>
> > class BlogUserl(db.Model):
> >  blogger = db.ReferenceProperty(Blogger...)
>
> from blog import Blogger
>
> That should work just fine. What's the exact error message you are getting?
>
> Dave.
--~--~-~--~~~---~--~~
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@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/google-appengine?hl=en
-~--~~~~--~~--~--~---



[google-appengine] datastore exception handling examples

2008-10-10 Thread David


Hi,

Are there any articles or sample code, showing how to robustly handle
datastore exceptions, for production standard code?

Being a fresh python programmer, I find the api docs a bit light in
this area and some concrete examples of not only what exceptions I
should be handling and best practicies of what to do when exceptions
occer to keep my app running would be very useful.

David.





--~--~-~--~~~---~--~~
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@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/google-appengine?hl=en
-~--~~~~--~~--~--~---



[google-appengine] Re: database

2008-10-10 Thread sfox
Maybe you can refer this article:
http://code.google.com/appengine/articles/update_schema.html



2008/10/10 amshuhu <[EMAIL PROTECTED]>

>
> HI GAE friends
>
>How can we add/delete a field in data, in my
> app their are 3 fields eg:
> 1.name
> 2.phoneno
> 3.email
>  I need to add address field instead of phoneno
> field and also insert another field as contact ,i dont know how to add/
> delete so please guide me
>
> Thanks
>
> jaikumar.cn
>
> >
>

--~--~-~--~~~---~--~~
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@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/google-appengine?hl=en
-~--~~~~--~~--~--~---



[google-appengine] importing models from external files

2008-10-10 Thread James

Importing models from other files isn't working.

for instance,

model/blog.py

class Blogger(db.Model)
 

model/user.py

class BlogUserl(db.Model):
  blogger = db.ReferenceProperty(Blogger...)


I've tried a bunch of variations, importing the file, importing * from
the file, and reference the module name in front of the reference
class (blog.Blogger)

All result in import or name errors.

Any advice?
--~--~-~--~~~---~--~~
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@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/google-appengine?hl=en
-~--~~~~--~~--~--~---



[google-appengine] Re: database

2008-10-10 Thread David Symonds

On Fri, Oct 10, 2008 at 4:19 PM, amshuhu <[EMAIL PROTECTED]> wrote:

>How can we add/delete a field in data, in my
> app their are 3 fields eg:
> 1.name
> 2.phoneno
> 3.email
>  I need to add address field instead of phoneno
> field and also insert another field as contact ,i dont know how to add/
> delete so please guide me

You're using a class that inherits from db.Model, right? Just add the
new properties to that class, and remove the ones you don't want.


Dave.

--~--~-~--~~~---~--~~
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@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/google-appengine?hl=en
-~--~~~~--~~--~--~---



[google-appengine] Re: importing models from external files

2008-10-10 Thread David Symonds

On Fri, Oct 10, 2008 at 7:20 PM, James <[EMAIL PROTECTED]> wrote:
>
> Importing models from other files isn't working.
>
> for instance,
>
> model/blog.py
>
> class Blogger(db.Model)
> 
>
> model/user.py
>
> class BlogUserl(db.Model):
>  blogger = db.ReferenceProperty(Blogger...)

from blog import Blogger

That should work just fine. What's the exact error message you are getting?


Dave.

--~--~-~--~~~---~--~~
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@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/google-appengine?hl=en
-~--~~~~--~~--~--~---



[google-appengine] Re: webapp template inheritance problem

2008-10-10 Thread Bill

I copied the template code from google.appengine.ext.webapp and
modified it to allow a template directory hierarchy under render() and
load().  So my template.py has something like this:

def render(template_path, template_dict, debug=False,
template_dirs=()):
  """Renders the template at the given path with the given dict of
values.

  Example usage:
render("templates/index.html", {"name": "Bret", "values": [1, 2,
3]})

  Args:
template_path: path to a Django template
template_dict: dictionary of values to apply to the template
  """
  t = load(template_path, debug, template_dirs)
  return t.render(Context(template_dict))


template_cache = {}
def load(path, debug=False, template_dirs=()):
  """Loads the Django template from the given path.

  It is better to use this function than to construct a Template using
the
  class below because Django requires you to load the template with a
method
  if you want imports and extends to work in the template.
  """
  abspath = os.path.abspath(path)

  if not debug:
template = template_cache.get(abspath, None)
  else:
template = None

  if not template:
directory, file_name = os.path.split(abspath)
new_settings = {
'TEMPLATE_DIRS': (directory,) + template_dirs,
'TEMPLATE_DEBUG': debug,
'DEBUG': debug,
}
old_settings = _swap_settings(new_settings)
try:
  template = django.template.loader.get_template(file_name)
finally:
  _swap_settings(old_settings)

if not debug:
  template_cache[abspath] = template

def wrap_render(context, orig_render=template.render):
  URLNode = django.template.defaulttags.URLNode
  save_urlnode_render = URLNode.render
  old_settings = _swap_settings(new_settings)
  try:
URLNode.render = _urlnode_render_replacement
return orig_render(context)
  finally:
_swap_settings(old_settings)
URLNode.render = save_urlnode_render

template.render = wrap_render

  return template



I have a view.py that constructs a template_dirs tuple so I can have a
base.html at a root directory and more specific templates for modules
in subdirectories.

Hope that helps,
Bill
--~--~-~--~~~---~--~~
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@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/google-appengine?hl=en
-~--~~~~--~~--~--~---