[google-appengine] Re: uploading app failed.... need help to fix..

2009-04-04 Thread Xavier Mathews

Yeah That You went over the free limit ame over the space.

On 04/03/2009, Aaron shyhockey...@gmail.com wrote:

 So it's basicly saying I am going over a free limit?

 I am working for a company and they had the previous programmer to
 make a admin interface where I can just copy and paste in my css and
 html code to make changes to the website.

 So this basicly is saying I am exceeding a limit  based on free
 service. So the company if they want this content on their website
 they need to pay for it or more.

 On Apr 3, 8:55 pm, WallyDD shaneb...@gmail.com wrote:
 from;http://code.google.com/appengine/docs/quotas.html

 You can upload up to 1,000 code and 1,000 static files with your
 application.

 On Apr 3, 5:02 pm, Aaron shyhockey...@gmail.com wrote:

  I currently have trouble uploading a applicaiton.

  I am using linux ubuntu OS.

  this is what I get in the terminal when I type in my e-mail address
  and password.

  Cloning 69 static files.
  Cloning 2535 application files.
  Cloned 100 files.
  Cloned 200 files.
  Cloned 300 files.
  Cloned 400 files.
  Cloned 500 files.
  Cloned 600 files.
  Cloned 700 files.
  Cloned 800 files.
  Cloned 900 files.
  Cloned 1000 files.
  Cloned 1100 files.
  Cloned 1200 files.
  Cloned 1300 files.
  Cloned 1400 files.
  Cloned 1500 files.
  Cloned 1600 files.
  Cloned 1700 files.
  Cloned 1800 files.
  Cloned 1900 files.
  Cloned 2000 files.
  Cloned 2100 files.
  Cloned 2200 files.
  Cloned 2300 files.
  Cloned 2400 files.
  Cloned 2500 files.
  Uploading 95 files.
  ERROR:root:An unexpected error occurred. Aborting.
  Traceback (most recent call last):
    File /home/aaron/websites/Chillenvillen.com/apps/google_app_engine/
  google_appengine/google/appengine/tools/appcfg.py, line 1221, in
  DoUpload
      self.UploadFile(missing_file, file_handle)
    File /home/aaron/websites/Chillenvillen.com/apps/google_app_engine/
  google_appengine/google/appengine/tools/appcfg.py, line 1083, in
  UploadFile
      payload=file_handle.read())
    File /home/aaron/websites/Chillenvillen.com/apps/google_app_engine/
  google_appengine/google/appengine/tools/appengine_rpc.py, line 303,
  in Send
      f = self.opener.open(req)
    File /usr/lib/python2.5/urllib2.py, line 387, in open
      response = meth(req, response)
    File /usr/lib/python2.5/urllib2.py, line 498, in http_response
      'http', request, response, code, msg, hdrs)
    File /usr/lib/python2.5/urllib2.py, line 425, in error
      return self._call_chain(*args)
    File /usr/lib/python2.5/urllib2.py, line 360, in _call_chain
      result = func(*args)
    File /usr/lib/python2.5/urllib2.py, line 506, in
  http_error_default
      raise HTTPError(req.get_full_url(), code, msg, hdrs, fp)
  HTTPError: HTTP Error 400: Bad Request
  Rolling back the update.
  Error 400: --- begin server output ---
  Max number of files and blobs is 1000.
  --- end server output ---
  Regenerating uncompressed media

  any idea how to fix this?
 



-- 
Sent From Sony Slim-Line PSP

Xavier A. Mathews
Web-Developer

--~--~-~--~~~---~--~~
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 
google-appengine+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/google-appengine?hl=en
-~--~~~~--~~--~--~---



[google-appengine] Re: one more

2009-04-04 Thread Xavier Mathews

Yea But Your Code Is Also On Google SystemSo That Makes It Therer!
The Are Only Goint To Give You So Much Privacy!

On 04/04/2009, Portos ciber...@gmail.com wrote:

 of course they sould, specially to paying customers. I think that that
 kind of care and politeness is what they are paying for. My point is
 that looking in someones code is like breaking in your house. My code
 is my territory and I like to know when I am beeing spied (whatever
 the spie's good reason is). Otherwise if you consider that my code is
 as much my property as my car of my house I should have the right of
 choosing to be inspected or to have my app shutted down.

 (sorry for my english)

 On Apr 3, 8:22 pm, Xavier Mathews xavieruni...@gmail.com wrote:
 Well We Are using Their SDK EtcAnd There Is A Privacy Policy On
 Content
 storing and processing! If they have over 100 developers who codes
 are causing problems to the system and causing instable then the easiest
 way
 for them to fix it is to look at your code and fix it. You Are saying the
 should come in contact with every one who's code is out of order and try
 and communicate effectively to try and fix it. Google does not have the
 time
 and that would just be to much confusion! As long as they do not tamper
 with
 the code i see no problem of them looking at it!

 Sent From Sony Slim-Line PSP

 Xavier A. Mathews
 Web-Developer

 Sent from Chicago, Illinois, United States

 On Thu, Apr 2, 2009 at 7:30 PM, Scott sje...@gmail.com wrote:

  I'm another developer with concerns about the privacy policy.

  Content. Google App Engine stores, processes your application source
  code and content in order to provide the service to you.

  The fact that the above isn't even grammatically correct doesn't do
  much for my confidence.

  Marzia - you mention that google employees might look at the code if
  your application is causing system wide instability. Is that really
  necessary? Could you not just shut it down? If you were interested in
  determining how it caused instability in the face of controls you have
  put in place to prevent that situation, could you not work with the
  customer to e.g. isolate the problematic code so that you wouldn't
  have to get involved with the real application? Would you notify the
  customer and give them the opportunity to pull the code before you get
  involved with it?

  I am curious about your answers, and I do believe in the good
  intentions of the app engine team and Google in general. But also, and
  as Colin said, it would be excellent to get that kind of clear
  language into the legal documents. Data privacy concerns are a major
  barrier to cloud adoption in business (for anyone with doubts, there's
  this great tool called Google Search you may want to try). The kind of
  clear language you've used here would really help to mitigate that
  issue, were it legally binding, or even prominently displayed (in the
  FAQ or similar).
 



-- 
Sent From Sony Slim-Line PSP

Xavier A. Mathews
Web-Developer

--~--~-~--~~~---~--~~
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 
google-appengine+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/google-appengine?hl=en
-~--~~~~--~~--~--~---



[google-appengine] Re: UTF-8 parameters, quote, unquote and WebOb UnicodeMultiDict questions

2009-04-04 Thread Sylvain

With UTF-8 parameters it doesn't work.

I think the issue is with quote
I don't know why but quote works with UTF-8 string (but it depends on
the system) then unquote removes all special char

Maybe we have to convert UTF-8 string to string (encode/decode) then
quote the string

 p = u'François Vallé'
 pe = p.encode('utf8')
 pe
'Fran\xc3\xa7ois Vall\xc3\xa9'
 peq = urllib.quote(pe)
 peq
'Fran%C3%A7ois%20Vall%C3%A9'
 pequq = urllib.unqote(peq)
 pequq = urllib.unquote
 pequq = urllib.unquote(peq)
 pequq
'Fran\xc3\xa7ois Vall\xc3\xa9'
 pequq.decode('utf-8')
u'Fran\xe7ois Vall\xe9'
 p
u'Fran\xe7ois Vall\xe9'


I didn't test live because quote/unqote seems totaly useless now.
I think all modern browsers/servers,... handle properly UTF8 values


On 4 avr, 02:01, Alkis Evlogimenos ('Αλκης Ευλογημένος)
evlogime...@gmail.com wrote:
 You need to unquote the parameter:
 import urllib

 name = urllib.unquote(self.request.get('name'))



 On Fri, Mar 27, 2009 at 10:56 AM, Sylvain sylvain.viv...@gmail.com wrote:

  Hi,

  All my app (pages, variables,...) is encoded in UTF-8 and now I'm
  trying to send a parameter ('name') in the url like that :

 http://appid.appspot.com/profile?name=Françoishttp://appid.appspot.com/profile?name=Fran%C3%A7oisVallé

  Server side I get the name info like that and it works fine :
  name = self.request.get('name')
   print name
   François Vallé
  The WebOb object is a UnicodeMultiDict.
  So everything works fine.

  In order to be cleaner, I wanted to quote/unquote the parameters
  So now my url is like that :
 http://appid.appspot.com/profile?name=Fran%E7ois%20Vall%E9
  Server side I get the name info like and now it doesn't work
  name = self.request.get('name')
   print name
   Franois Vall
  The WebOb object is MultiDict (not an unciode one)
  So now all special chars are lost.

  So my question is how to handle unicode parameter properly and
  particularly if we want to quote/unquote them ?
  Currently, I do no quote/unquote and it works fine,...

 --

 Alkis
--~--~-~--~~~---~--~~
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 
google-appengine+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/google-appengine?hl=en
-~--~~~~--~~--~--~---



[google-appengine] Re: {% extends %} and UTF-8

2009-04-04 Thread 'Αλκης Ευλογημένος
On Sat, Apr 4, 2009 at 7:14 AM, DocDay google@eoasys.com wrote:

 Is GAE causing this?


I think its your editor.


-- 

Alkis

--~--~-~--~~~---~--~~
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 
google-appengine+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/google-appengine?hl=en
-~--~~~~--~~--~--~---



[google-appengine] Re: UTF-8 parameters, quote, unquote and WebOb UnicodeMultiDict questions

2009-04-04 Thread 'Αλκης Ευλογημένος
On Sat, Apr 4, 2009 at 9:24 AM, Sylvain sylvain.viv...@gmail.com wrote:


 Maybe we have to convert UTF-8 string to string (encode/decode) then
 quote the string


This is correct.
-- 

Alkis

--~--~-~--~~~---~--~~
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 
google-appengine+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/google-appengine?hl=en
-~--~~~~--~~--~--~---



[google-appengine] Re: Memcache return different object for same key?

2009-04-04 Thread Tim Hoffman

That is correct, an instance is being recreated from the data stored
in memcache

You will find the same value inside it though.

What happens is the object is being pickled when you stick it into
memcache, when you get it the object it
is unpickled and essentially a new instance is created from the data
stored.

T

On Apr 4, 7:14 pm, 秦锋 feng.w@gmail.com wrote:
 Following is my code in interactive console in local SDK admin web
 page:

 from google.appengine.api import memcache
 from google.appengine.ext import db

 r = db.Model()
 memcache.set(Mytest, r)

 i = 0
 while i10:
   print memcache.get(Mytest)
   i+=1

 When I run it, I got different instances for the same key? Is it
 wrong?

 google.appengine.ext.db.Model object at 0x024DCFF0
 google.appengine.ext.db.Model object at 0x024DCE10
 google.appengine.ext.db.Model object at 0x024DCDD0
 google.appengine.ext.db.Model object at 0x024DCF50
 google.appengine.ext.db.Model object at 0x024DCFF0
 google.appengine.ext.db.Model object at 0x024DCE10
 google.appengine.ext.db.Model object at 0x024DCDD0
 google.appengine.ext.db.Model object at 0x024DCF50
 google.appengine.ext.db.Model object at 0x024DCFF0
 google.appengine.ext.db.Model object at 0x024DCE10
--~--~-~--~~~---~--~~
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 
google-appengine+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/google-appengine?hl=en
-~--~~~~--~~--~--~---



[google-appengine] Re: Memcache return different object for same key?

2009-04-04 Thread 秦锋

Thanks!
Does it means I have to put entity back to db or pickle it back to
memcache after changed something? Otherwise changes will be lost, I
guess.

On 4月4日, 下午9时31分, Tim Hoffman zutes...@gmail.com wrote:
 That is correct, an instance is being recreated from the data stored
 in memcache

 You will find the same value inside it though.

 What happens is the object is being pickled when you stick it into
 memcache, when you get it the object it
 is unpickled and essentially a new instance is created from the data
 stored.

 T

 On Apr 4, 7:14 pm, 秦锋 feng.w@gmail.com wrote:



  Following is my code in interactive console in local SDK admin web
  page:

  from google.appengine.api import memcache
  from google.appengine.ext import db

  r = db.Model()
  memcache.set(Mytest, r)

  i = 0
  while i10:
print memcache.get(Mytest)
i+=1

  When I run it, I got different instances for the same key? Is it
  wrong?

  google.appengine.ext.db.Model object at 0x024DCFF0
  google.appengine.ext.db.Model object at 0x024DCE10
  google.appengine.ext.db.Model object at 0x024DCDD0
  google.appengine.ext.db.Model object at 0x024DCF50
  google.appengine.ext.db.Model object at 0x024DCFF0
  google.appengine.ext.db.Model object at 0x024DCE10
  google.appengine.ext.db.Model object at 0x024DCDD0
  google.appengine.ext.db.Model object at 0x024DCF50
  google.appengine.ext.db.Model object at 0x024DCFF0
  google.appengine.ext.db.Model object at 0x024DCE10
--~--~-~--~~~---~--~~
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 
google-appengine+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/google-appengine?hl=en
-~--~~~~--~~--~--~---



[google-appengine] Re: Memcache return different object for same key?

2009-04-04 Thread 'Αλκης Ευλογημένος
You need to do both. Memcache doesn't persist.

2009/4/4 秦锋 feng.w@gmail.com


 Thanks!
 Does it means I have to put entity back to db or pickle it back to
 memcache after changed something? Otherwise changes will be lost, I
 guess.

 On 4月4日, 下午9时31分, Tim Hoffman zutes...@gmail.com wrote:
  That is correct, an instance is being recreated from the data stored
  in memcache
 
  You will find the same value inside it though.
 
  What happens is the object is being pickled when you stick it into
  memcache, when you get it the object it
  is unpickled and essentially a new instance is created from the data
  stored.
 
  T
 
  On Apr 4, 7:14 pm, 秦锋 feng.w@gmail.com wrote:
 
 
 
   Following is my code in interactive console in local SDK admin web
   page:
 
   from google.appengine.api import memcache
   from google.appengine.ext import db
 
   r = db.Model()
   memcache.set(Mytest, r)
 
   i = 0
   while i10:
 print memcache.get(Mytest)
 i+=1
 
   When I run it, I got different instances for the same key? Is it
   wrong?
 
   google.appengine.ext.db.Model object at 0x024DCFF0
   google.appengine.ext.db.Model object at 0x024DCE10
   google.appengine.ext.db.Model object at 0x024DCDD0
   google.appengine.ext.db.Model object at 0x024DCF50
   google.appengine.ext.db.Model object at 0x024DCFF0
   google.appengine.ext.db.Model object at 0x024DCE10
   google.appengine.ext.db.Model object at 0x024DCDD0
   google.appengine.ext.db.Model object at 0x024DCF50
   google.appengine.ext.db.Model object at 0x024DCFF0
   google.appengine.ext.db.Model object at 0x024DCE10
 



-- 

Alkis

--~--~-~--~~~---~--~~
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 
google-appengine+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/google-appengine?hl=en
-~--~~~~--~~--~--~---



[google-appengine] Re: Can't get it to work

2009-04-04 Thread ianolsenclark

When using Windows, I think you need to start the command by executing
Python first  i.e

python dev_appserver.py urbanapplicaton

It's probably also a good idea to move down to Python 2.6, as using
3.01 may cause other issues.

Hope this helps?

Ian

On Apr 2, 11:27 pm, urbanfre...@gmail.com urbanfre...@gmail.com
wrote:
 Hi.
 Here is my problem.There is something i'm missing here.
 I use windows vista.
 I installed python 3.0.1
 I installed SDK.
 When i try to run dev_appserver.py urbanapplicaton it just opens up
 the dev_appserver.py in the notepad. Doesn't start the server.
 Could anybody help me run this thing up?
 Thank you.
--~--~-~--~~~---~--~~
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 
google-appengine+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/google-appengine?hl=en
-~--~~~~--~~--~--~---



[google-appengine] Re: Memcache return different object for same key?

2009-04-04 Thread 秦锋

I did the same scenario but one more:
db.get() - entity - Memcached - entity - dp.put() - memcache.set
(Mykey, object())
I don't the difference with yours, and currently it seems OK for my
quota.

On 4月4日, 下午10时59分, Sylvain sylvain.viv...@gmail.com wrote:
 db.get() - entity - Memcached - entity - dp.put() = bug

 You can check this bug 
 :http://code.google.com/p/googleappengine/issues/detail?id=631
 But it not a good idea to use the memcache to store an entity then to
 put this entity back to datastore.

 Regards

 On 4 avr, 16:15, Alkis Evlogimenos ('Αλκης Ευλογημένος)



 evlogime...@gmail.com wrote:
  You need to do both. Memcache doesn't persist.

  2009/4/4 秦锋 feng.w@gmail.com

   Thanks!
   Does it means I have to put entity back to db or pickle it back to
   memcache after changed something? Otherwise changes will be lost, I
   guess.

   On 4月4日, 下午9时31分, Tim Hoffman zutes...@gmail.com wrote:
That is correct, an instance is being recreated from the data stored
in memcache

You will find the same value inside it though.

What happens is the object is being pickled when you stick it into
memcache, when you get it the object it
is unpickled and essentially a new instance is created from the data
stored.

T

On Apr 4, 7:14 pm, 秦锋 feng.w@gmail.com wrote:

 Following is my code in interactive console in local SDK admin web
 page:

 from google.appengine.api import memcache
 from google.appengine.ext import db

 r = db.Model()
 memcache.set(Mytest, r)

 i = 0
 while i10:
   print memcache.get(Mytest)
   i+=1

 When I run it, I got different instances for the same key? Is it
 wrong?

 google.appengine.ext.db.Model object at 0x024DCFF0
 google.appengine.ext.db.Model object at 0x024DCE10
 google.appengine.ext.db.Model object at 0x024DCDD0
 google.appengine.ext.db.Model object at 0x024DCF50
 google.appengine.ext.db.Model object at 0x024DCFF0
 google.appengine.ext.db.Model object at 0x024DCE10
 google.appengine.ext.db.Model object at 0x024DCDD0
 google.appengine.ext.db.Model object at 0x024DCF50
 google.appengine.ext.db.Model object at 0x024DCFF0
 google.appengine.ext.db.Model object at 0x024DCE10

  --

  Alkis
--~--~-~--~~~---~--~~
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 
google-appengine+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/google-appengine?hl=en
-~--~~~~--~~--~--~---



[google-appengine] Re: SSL Socket connections

2009-04-04 Thread jeremysomething

Thanks Jay! That's quite helpful actually.. :)

On Apr 4, 11:33 am, Jay Lee jay0...@gmail.com wrote:
 tlslite is the way to go.  It is actually included now in the GData
 Python library at:

 http://code.google.com/p/gdata-python-client/

 so you might wish to just use that.  See here for some samples of
 connecting to Google's AuthSub service via SSL:

 http://groups.google.com/group/Google-Accounts-API/browse_thread/thre...

 hope this helps.

 Jay

 On Apr 3, 4:05 pm, jeremysomething jeremyschoenh...@gmail.com wrote:



  Has anyone implemented a SSL/TLS client connection from their GAE app?

  There's this libhttp://trevp.net/tlslite/

  Just curious if anyone has any advice or samples I could check out. I
  basically want to be able to connect to a remote SSL port with a given
  cert.. And then push a bunch of data..

  Thanks!

  //jeremy
--~--~-~--~~~---~--~~
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 
google-appengine+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/google-appengine?hl=en
-~--~~~~--~~--~--~---



[google-appengine] Re: Fastest Templating on AppEngine?

2009-04-04 Thread djidjadji

On GAE all template engines should be pure python code.
At some comparison tables the Django engine was not very fast, but in
terms of ms that it adds to your respons time it doesn't matter much
which engine you use. The Django template I used in my tests just
added a few ms to the total time. The datastore operations took nearly
1000ms.
Just use the template engine that has the features you need.

2009/4/3 Lee Olayvar leeolay...@gmail.com:
 I'm curious, has anyone ran across any tests on appengine with various
 templating engines? I know there are speed comparisons all over the place,
 but im specifically concerning appengine since it has many aspects that
 force various templating engines to not use feature X or speed enhancing
 module Y.

 Any opinions would also be handy. I'm looking for an obviously sane
 language, but i have no desire/requirement for the ability to run complex
 logic inside templates (nor should anyone, imo.)

 Comments and opinions are much appreciated.

 Thanks,
 --
 Lee Olayvar

 


--~--~-~--~~~---~--~~
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 
google-appengine+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/google-appengine?hl=en
-~--~~~~--~~--~--~---



[google-appengine] Re: Can't get it to work

2009-04-04 Thread Arun Shanker Prasad

Hi,

To add to this discussion;

If you installed Python from the MSI it probably has the python.exe in
the environment variables, (ie the system path). You might want to
check that also.

Thanks,
Arun Shanker Prasad.

On Apr 4, 7:50 pm, ianolsenclark ianolsencl...@gmail.com wrote:
 When using Windows, I think you need to start the command by executing
 Python first  i.e

 python dev_appserver.py urbanapplicaton

 It's probably also a good idea to move down to Python 2.6, as using
 3.01 may cause other issues.

 Hope this helps?

 Ian

 On Apr 2, 11:27 pm, urbanfre...@gmail.com urbanfre...@gmail.com
 wrote:



  Hi.
  Here is my problem.There is something i'm missing here.
  I use windows vista.
  I installed python 3.0.1
  I installed SDK.
  When i try to run dev_appserver.py urbanapplicaton it just opens up
  the dev_appserver.py in the notepad. Doesn't start the server.
  Could anybody help me run this thing up?
  Thank you.
--~--~-~--~~~---~--~~
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 
google-appengine+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/google-appengine?hl=en
-~--~~~~--~~--~--~---



[google-appengine] Re: Existing Kinds Not Showing in Datastore List

2009-04-04 Thread djidjadji

That list of Kinds is cached. It will update after 15 or 30 min.
If not let us know.

2009/4/3 Ed edgam...@gmail.com:

 Hi,
 I recently created, loaded with objects, and queried two new Kinds
 having exactly the same fields as Kinds currently visible in the
 Datastore drop-down list.  The new Kinds, however, are not showing up
 in the list.  Has anyone else encountered this problem?  Thanks.
 -Ed
 


--~--~-~--~~~---~--~~
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 
google-appengine+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/google-appengine?hl=en
-~--~~~~--~~--~--~---



[google-appengine] Re: How can I pass more parameters between GWT and GAE by JSON?

2009-04-04 Thread Arun Shanker Prasad

Hi,

Can't you just pass the additional parameters also along in JSON
format? If you are using the paging by key the bookmark can be pickled
and converted to JSON format.

I have not tested or used it with any of the below suggestions,

1. try the normal picked object.
if that does not work
2. 
http://ajaxian.com/archives/json-pickle-serialize-your-complex-python-objects-to-json

If your question was how to parse JSON in python, Django framework
comes bundled with simplejson and its included in the GAE SDK.

Thanks,
Arun Shanker Prasad.

On Apr 4, 6:55 pm, 秦锋 feng.w@gmail.com wrote:
 My site uses GAE as background Data source and GWT as front UI, which
 sends request and expects get JSON format data table back to
 Visualization Chart.
 As we known, JSON has specific format definition, thus how can I pass
 extra parameters in on JSON response? such as paging data(bookmark)?
--~--~-~--~~~---~--~~
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 
google-appengine+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/google-appengine?hl=en
-~--~~~~--~~--~--~---



[google-appengine] Re: Control Packages

2009-04-04 Thread djidjadji

Static files can't be opened by your python code.
Just remove them form your app.yaml file.
They will be uploaded and you can use them as templates.

2009/4/3 Viktar karp...@gmail.com:

 I am trying to create package for controls. Here is my folder
 structure:

 /controls
   items.py
   __init__.py

 /controls/templates
   items.html

 items.py has a Render method:

 def Render():
     
    items_control_path = os.path.join(os.path.dirname(__file__),
 'templates/items.html')
    return template.render(items_control_path,{'items':items})

 I am calling this method from root index.py, so it returns me html of
 control:

 from controls.items import Items
 ...
 control = {'items':Items.Render()}  # I did some work around, so it is
 ok to call Render method like this

 Locally everything works great. However if I deploy application it
 gives me an error. It can't find items.html.

 Here is my app.yaml:

 - url: /controls/items
  script: controls/items.py

 - url: /controls/templates/(.*\.html)
  static_files: controls/templates/\1
  upload: controls/templates/(.*\.html)

 If in browser I go directly to /controls/templates/items.html template
 is showing up, so file is there.

 I think packages are deployed some how different then static files, so
 path is not correct.

 I don't want dump controls and pages in the same root folder. Is there
 any solution for a problem?

 How I can reference static template files from modules in packages?






 


--~--~-~--~~~---~--~~
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 
google-appengine+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/google-appengine?hl=en
-~--~~~~--~~--~--~---



[google-appengine] Need help. Getting many python errors on localhost test.

2009-04-04 Thread Aaron

Hi, I just done a test of my app. It's a website. I just used the
local host test.

I got about 50 errors which all points the errors to the app engine
python scripts.

How could this happen?

I will just post a few here or some of the errors:

A problem occurred in a Python script. Here is the sequence of
function calls leading up to the error, in the order they occurred.
 /home/aaron/websites/Chillenvillen.com/apps/google_app_engine/
google_appengine/google/appengine/tools/dev_appserver.py in
_HandleRequest
(self=google.appengine.tools.dev_appserver.DevAppServerRequestHandler
instance at 0x90443ec)
 2709   infile,
 2710   outfile,
error here-  2711
base_env_dict=env_dict)
 2712 finally:
 2713   self.module_manager.UpdateModuleFileModificationTimes
()
base_env_dict undefined, env_dict = {'APPLICATION_ID': 'mobile-
consulting-inc', 'CURRENT_VERSION_ID': '5.1', 'REMOTE_ADDR':
'127.0.0.1', 'REQUEST_METHOD': 'GET', 'SERVER_NAME': 'localhost',
'SERVER_PORT': '8000', 'SERVER_PROTOCOL': 'HTTP/1.0',
'SERVER_SOFTWARE': 'Development/1.0'}
 /home/aaron/websites/Chillenvillen.com/apps/google_app_engine/
google_appengine/google/appengine/tools/dev_appserver.py in Dispatch
(self=google.appengine.tools.dev_appserver.MatcherDispatcher object
at 0x8b5710c, relative_url='/', path=None, headers=mimetools.Message
instance at 0x8b50e2c, infile=cStringIO.StringI object at
0x8a6d200, outfile=cStringIO.StringO object at 0x8b570e0,
base_env_dict={'APPLICATION_ID': 'mobile-consulting-inc',
'CURRENT_VERSION_ID': '5.1', 'REMOTE_ADDR': '127.0.0.1',
'REQUEST_METHOD': 'GET', 'SERVER_NAME': 'localhost', 'SERVER_PORT':
'8000', 'SERVER_PROTOCOL': 'HTTP/1.0', 'SERVER_SOFTWARE': 'Development/
1.0'})
  378   infile,
  379   outfile,
  error here- 380
base_env_dict=base_env_dict)
  381
  382 if forward:
base_env_dict = {'APPLICATION_ID': 'mobile-consulting-inc',
'CURRENT_VERSION_ID': '5.1', 'REMOTE_ADDR': '127.0.0.1',
'REQUEST_METHOD': 'GET', 'SERVER_NAME': 'localhost', 'SERVER_PORT':
'8000', 'SERVER_PROTOCOL': 'HTTP/1.0', 'SERVER_SOFTWARE': 'Development/
1.0'}
 /home/aaron/websites/Chillenvillen.com/apps/google_app_engine/
google_appengine/google/appengine/tools/dev_appserver.py in Dispatch
(self=google.appengine.tools.dev_appserver.CGIDispatcher object at
0x8b5350c, relative_url='/', path='common/appenginepatch/main.py',
headers=mimetools.Message instance at 0x8b50e2c,
infile=cStringIO.StringI object at 0x8a6d200,
outfile=cStringIO.StringO object at 0x8b570e0, base_env_dict=
{'APPLICATION_ID': 'mobile-consulting-inc', 'CURRENT_VERSION_ID':
'5.1', 'REMOTE_ADDR': '127.0.0.1', 'REQUEST_METHOD': 'GET',
'SERVER_NAME': 'localhost', 'SERVER_PORT': '8000', 'SERVER_PROTOCOL':
'HTTP/1.0', 'SERVER_SOFTWARE': 'Development/1.0'})
 1996  infile,
 1997  outfile,
Errror here- 1998  self._module_dict)
 1999   handler.AddDebuggingConsole(relative_url, env, outfile)
 2000 finally:
self = google.appengine.tools.dev_appserver.CGIDispatcher object at
0x8b5350c, self._module_dict = {'Cookie': module 'Cookie' from '/usr/
lib/python2.5/Cookie.pyc', 'UserDict': module 'UserDict' from '/usr/
lib/python2.5/UserDict.pyc', '__main__': module
'common.appenginepatch.main' from '/home.../google_appengine/common/
appenginepatch/main.py', '_bisect': module '_bisect' from '/usr/lib/
python2.5/lib-dynload/_bisect.so', '_functools': module '_functools'
from '/usr/lib/python2.5/lib-dynload/_functools.so', '_hashlib':
module '_hashlib' from '/usr/lib/python2.5/lib-dynload/_hashlib.so',
'_locale': module '_locale' from '/usr/lib/python2.5/lib-dynload/
_locale.so', '_random': module '_random' from '/usr/lib/python2.5/
lib-dynload/_random.so', '_struct': module '_struct' from '/usr/lib/
python2.5/lib-dynload/_struct.so', '_threading_local': module
'_threading_local' from '/usr/lib/python2.5/
_threading_local.pyc', ...}

what could cause all these errors. If you notice they are errors in
the python files google app engine provided.




I am new to google apps engine but not new to python. I however never
hardcore used python for any web or software application development.


do you think it's something to do with how the files are being linked?

I mean I was given a mange.py file and a folder for the app. The
manage.py was in that folder.  I tried running it and I got an error
saying can't find the sdk.

When I moved the manage.py  to the directory of the google apps engine
it worked.

Could you tell me were should my app files be and how can I run
manage.py and have it to be able to see the SDK.


--~--~-~--~~~---~--~~
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 

[google-appengine] Re: Fastest Templating on AppEngine?

2009-04-04 Thread Stephen

The Clearsilver template engine is implemented in C and is compiled
into the python interpreters running on Google's servers. (Apparently
it is the template engine behind Google Groups, or was at some point.)

http://www.clearsilver.net/

I don't have any advice on whether it is good or not or how fast it is
-- I've only played with it briefly.

It's a little awkward to develop with due to this SDK bug:

http://code.google.com/p/googleappengine/issues/detail?id=1163


It might be a good choice to use with the built-in webapp framework,
with a few convenience functions.


On Apr 3, 1:13 am, Lee Olayvar leeolay...@gmail.com wrote:
 I'm curious, has anyone ran across any tests on appengine with various
 templating engines? I know there are speed comparisons all over the place,
 but im specifically concerning appengine since it has many aspects that
 force various templating engines to not use feature X or speed enhancing
 module Y.

 Any opinions would also be handy. I'm looking for an obviously sane
 language, but i have no desire/requirement for the ability to run complex
 logic inside templates (nor should anyone, imo.)

 Comments and opinions are much appreciated.

 Thanks,
 --
 Lee Olayvar
--~--~-~--~~~---~--~~
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 
google-appengine+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/google-appengine?hl=en
-~--~~~~--~~--~--~---



[google-appengine] Re: Need help. Getting many python errors on localhost test.

2009-04-04 Thread Aaron

well those are the errors I had in the brower.

Now after I restart the test server.

I get a 404 errror.

I then took a look at the terminal and this is what came after I type
the command runserver.

here are those errors:

WARNING:root:Could not read datastore data from /tmp/django_mobile-
consulting-inc.datastore
Running on app-engine-patch 1.0dev
INFO:root:Server: appengine.google.com
INFO:root:Checking for updates to the SDK.
INFO:root:The SDK is up to date.
WARNING:root:Could not read datastore data from /tmp/django_mobile-
consulting-inc.datastore
INFO:root:Running application mobile-consulting-inc on port 8000:
http://localhost:8000
DEBUG:root:Matched / to CGI dispatcher with path common/
appenginepatch/main.py
DEBUG:root:Executing CGI with env:
{'APPLICATION_ID': 'mobile-consulting-inc',
 'AUTH_DOMAIN': 'gmail.com',
 'CONTENT_LENGTH': '',
 'CONTENT_TYPE': 'application/x-www-form-urlencoded',
 'CURRENT_VERSION_ID': '5.1',
 'GATEWAY_INTERFACE': 'CGI/1.1',
 'HTTP_ACCEPT': 'text/html,application/xhtml+xml,application/
xml;q=0.9,*/*;q=0.8',
 'HTTP_ACCEPT_CHARSET': 'ISO-8859-1,utf-8;q=0.7,*;q=0.7',
 'HTTP_ACCEPT_LANGUAGE': 'en-us,en;q=0.5',
 'HTTP_CONNECTION': 'keep-alive',
 'HTTP_HOST': 'localhost:8000',
 'HTTP_KEEP_ALIVE': '300',
 'HTTP_USER_AGENT': 'Mozilla/5.0 (X11; U; Linux i686; en-US; rv:
1.9.0.8) Gecko/2009032711 Ubuntu/8.04 (hardy) Firefox/3.0.8',
 'PATH_INFO': '/',
 'PATH_TRANSLATED': u'/home/aaron/websites/Chillenvillen.com/apps/
google_app_engine/google_appengine/common/appenginepatch/main.py',
 'QUERY_STRING': '',
 'REMOTE_ADDR': '127.0.0.1',
 'REQUEST_METHOD': 'GET',
 'SCRIPT_NAME': '',
 'SERVER_NAME': 'localhost',
 'SERVER_PORT': '8000',
 'SERVER_PROTOCOL': 'HTTP/1.0',
 'SERVER_SOFTWARE': 'Development/1.0',
 'TZ': 'UTC',
 'USER_EMAIL': ''}
DEBUG:root:Could not import strop: Disallowed C-extension or built-
in module
DEBUG:root:Could not import fcntl: Disallowed C-extension or built-
in module
DEBUG:root:Access to module file denied: /usr/lib/python2.5/site-
packages/mod_python
INFO:root:GET / HTTP/1.1 404 -
INFO:root:Detected manual index.yaml, will not update


On Apr 4, 1:29 pm, Aaron shyhockey...@gmail.com wrote:
 Hi, I just done a test of my app. It's a website. I just used the
 local host test.

 I got about 50 errors which all points the errors to the app engine
 python scripts.

 How could this happen?

 I will just post a few here or some of the errors:

 A problem occurred in a Python script. Here is the sequence of
 function calls leading up to the error, in the order they occurred.
  /home/aaron/websites/Chillenvillen.com/apps/google_app_engine/
 google_appengine/google/appengine/tools/dev_appserver.py in
 _HandleRequest
 (self=google.appengine.tools.dev_appserver.DevAppServerRequestHandler
 instance at 0x90443ec)
  2709                               infile,
  2710                               outfile,
 error here-  2711
 base_env_dict=env_dict)
  2712         finally:
  2713           self.module_manager.UpdateModuleFileModificationTimes
 ()
 base_env_dict undefined, env_dict = {'APPLICATION_ID': 'mobile-
 consulting-inc', 'CURRENT_VERSION_ID': '5.1', 'REMOTE_ADDR':
 '127.0.0.1', 'REQUEST_METHOD': 'GET', 'SERVER_NAME': 'localhost',
 'SERVER_PORT': '8000', 'SERVER_PROTOCOL': 'HTTP/1.0',
 'SERVER_SOFTWARE': 'Development/1.0'}
  /home/aaron/websites/Chillenvillen.com/apps/google_app_engine/
 google_appengine/google/appengine/tools/dev_appserver.py in Dispatch
 (self=google.appengine.tools.dev_appserver.MatcherDispatcher object
 at 0x8b5710c, relative_url='/', path=None, headers=mimetools.Message
 instance at 0x8b50e2c, infile=cStringIO.StringI object at
 0x8a6d200, outfile=cStringIO.StringO object at 0x8b570e0,
 base_env_dict={'APPLICATION_ID': 'mobile-consulting-inc',
 'CURRENT_VERSION_ID': '5.1', 'REMOTE_ADDR': '127.0.0.1',
 'REQUEST_METHOD': 'GET', 'SERVER_NAME': 'localhost', 'SERVER_PORT':
 '8000', 'SERVER_PROTOCOL': 'HTTP/1.0', 'SERVER_SOFTWARE': 'Development/
 1.0'})
   378                                       infile,
   379                                       outfile,
   error here- 380
 base_env_dict=base_env_dict)
   381
   382         if forward:
 base_env_dict = {'APPLICATION_ID': 'mobile-consulting-inc',
 'CURRENT_VERSION_ID': '5.1', 'REMOTE_ADDR': '127.0.0.1',
 'REQUEST_METHOD': 'GET', 'SERVER_NAME': 'localhost', 'SERVER_PORT':
 '8000', 'SERVER_PROTOCOL': 'HTTP/1.0', 'SERVER_SOFTWARE': 'Development/
 1.0'}
  /home/aaron/websites/Chillenvillen.com/apps/google_app_engine/
 google_appengine/google/appengine/tools/dev_appserver.py in Dispatch
 (self=google.appengine.tools.dev_appserver.CGIDispatcher object at
 0x8b5350c, relative_url='/', path='common/appenginepatch/main.py',
 headers=mimetools.Message instance at 0x8b50e2c,
 infile=cStringIO.StringI object at 0x8a6d200,
 outfile=cStringIO.StringO object at 0x8b570e0, base_env_dict=
 {'APPLICATION_ID': 'mobile-consulting-inc', 'CURRENT_VERSION_ID':
 '5.1', 'REMOTE_ADDR': '127.0.0.1', 'REQUEST_METHOD': 'GET',
 

[google-appengine] Re: Need help. Getting many python errors on localhost test.

2009-04-04 Thread Xavier Mathews

Well 404 Is A Not Found Error So That Would Be The Browser Or Test
Connection Which Can Be A Problem In It's Self!

On 04/04/2009, Aaron shyhockey...@gmail.com wrote:

 well those are the errors I had in the brower.

 Now after I restart the test server.

 I get a 404 errror.

 I then took a look at the terminal and this is what came after I type
 the command runserver.

 here are those errors:

 WARNING:root:Could not read datastore data from /tmp/django_mobile-
 consulting-inc.datastore
 Running on app-engine-patch 1.0dev
 INFO:root:Server: appengine.google.com
 INFO:root:Checking for updates to the SDK.
 INFO:root:The SDK is up to date.
 WARNING:root:Could not read datastore data from /tmp/django_mobile-
 consulting-inc.datastore
 INFO:root:Running application mobile-consulting-inc on port 8000:
 http://localhost:8000
 DEBUG:root:Matched / to CGI dispatcher with path common/
 appenginepatch/main.py
 DEBUG:root:Executing CGI with env:
 {'APPLICATION_ID': 'mobile-consulting-inc',
  'AUTH_DOMAIN': 'gmail.com',
  'CONTENT_LENGTH': '',
  'CONTENT_TYPE': 'application/x-www-form-urlencoded',
  'CURRENT_VERSION_ID': '5.1',
  'GATEWAY_INTERFACE': 'CGI/1.1',
  'HTTP_ACCEPT': 'text/html,application/xhtml+xml,application/
 xml;q=0.9,*/*;q=0.8',
  'HTTP_ACCEPT_CHARSET': 'ISO-8859-1,utf-8;q=0.7,*;q=0.7',
  'HTTP_ACCEPT_LANGUAGE': 'en-us,en;q=0.5',
  'HTTP_CONNECTION': 'keep-alive',
  'HTTP_HOST': 'localhost:8000',
  'HTTP_KEEP_ALIVE': '300',
  'HTTP_USER_AGENT': 'Mozilla/5.0 (X11; U; Linux i686; en-US; rv:
 1.9.0.8) Gecko/2009032711 Ubuntu/8.04 (hardy) Firefox/3.0.8',
  'PATH_INFO': '/',
  'PATH_TRANSLATED': u'/home/aaron/websites/Chillenvillen.com/apps/
 google_app_engine/google_appengine/common/appenginepatch/main.py',
  'QUERY_STRING': '',
  'REMOTE_ADDR': '127.0.0.1',
  'REQUEST_METHOD': 'GET',
  'SCRIPT_NAME': '',
  'SERVER_NAME': 'localhost',
  'SERVER_PORT': '8000',
  'SERVER_PROTOCOL': 'HTTP/1.0',
  'SERVER_SOFTWARE': 'Development/1.0',
  'TZ': 'UTC',
  'USER_EMAIL': ''}
 DEBUG:root:Could not import strop: Disallowed C-extension or built-
 in module
 DEBUG:root:Could not import fcntl: Disallowed C-extension or built-
 in module
 DEBUG:root:Access to module file denied: /usr/lib/python2.5/site-
 packages/mod_python
 INFO:root:GET / HTTP/1.1 404 -
 INFO:root:Detected manual index.yaml, will not update


 On Apr 4, 1:29 pm, Aaron shyhockey...@gmail.com wrote:
 Hi, I just done a test of my app. It's a website. I just used the
 local host test.

 I got about 50 errors which all points the errors to the app engine
 python scripts.

 How could this happen?

 I will just post a few here or some of the errors:

 A problem occurred in a Python script. Here is the sequence of
 function calls leading up to the error, in the order they occurred.
  /home/aaron/websites/Chillenvillen.com/apps/google_app_engine/
 google_appengine/google/appengine/tools/dev_appserver.py in
 _HandleRequest
 (self=google.appengine.tools.dev_appserver.DevAppServerRequestHandler
 instance at 0x90443ec)
  2709                               infile,
  2710                               outfile,
 error here-  2711
 base_env_dict=env_dict)
  2712         finally:
  2713           self.module_manager.UpdateModuleFileModificationTimes
 ()
 base_env_dict undefined, env_dict = {'APPLICATION_ID': 'mobile-
 consulting-inc', 'CURRENT_VERSION_ID': '5.1', 'REMOTE_ADDR':
 '127.0.0.1', 'REQUEST_METHOD': 'GET', 'SERVER_NAME': 'localhost',
 'SERVER_PORT': '8000', 'SERVER_PROTOCOL': 'HTTP/1.0',
 'SERVER_SOFTWARE': 'Development/1.0'}
  /home/aaron/websites/Chillenvillen.com/apps/google_app_engine/
 google_appengine/google/appengine/tools/dev_appserver.py in Dispatch
 (self=google.appengine.tools.dev_appserver.MatcherDispatcher object
 at 0x8b5710c, relative_url='/', path=None, headers=mimetools.Message
 instance at 0x8b50e2c, infile=cStringIO.StringI object at
 0x8a6d200, outfile=cStringIO.StringO object at 0x8b570e0,
 base_env_dict={'APPLICATION_ID': 'mobile-consulting-inc',
 'CURRENT_VERSION_ID': '5.1', 'REMOTE_ADDR': '127.0.0.1',
 'REQUEST_METHOD': 'GET', 'SERVER_NAME': 'localhost', 'SERVER_PORT':
 '8000', 'SERVER_PROTOCOL': 'HTTP/1.0', 'SERVER_SOFTWARE': 'Development/
 1.0'})
   378                                       infile,
   379                                       outfile,
   error here- 380
 base_env_dict=base_env_dict)
   381
   382         if forward:
 base_env_dict = {'APPLICATION_ID': 'mobile-consulting-inc',
 'CURRENT_VERSION_ID': '5.1', 'REMOTE_ADDR': '127.0.0.1',
 'REQUEST_METHOD': 'GET', 'SERVER_NAME': 'localhost', 'SERVER_PORT':
 '8000', 'SERVER_PROTOCOL': 'HTTP/1.0', 'SERVER_SOFTWARE': 'Development/
 1.0'}
  /home/aaron/websites/Chillenvillen.com/apps/google_app_engine/
 google_appengine/google/appengine/tools/dev_appserver.py in Dispatch
 (self=google.appengine.tools.dev_appserver.CGIDispatcher object at
 0x8b5350c, relative_url='/', path='common/appenginepatch/main.py',
 headers=mimetools.Message instance at 0x8b50e2c,
 

[google-appengine] Re: Need help. Getting many python errors on localhost test.

2009-04-04 Thread Aaron

ya but how would you fix it?

I restarted the test server about 4 times. I would get a 404 once. I
got 3  times where it gave me a python error.

It listed all the google app engine where errors occured inthe app
engine python scripts.

so how can I fix this? Like I said I aint a python guru.



On Apr 4, 1:58 pm, Xavier Mathews xavieruni...@gmail.com wrote:
 Well 404 Is A Not Found Error So That Would Be The Browser Or Test
 Connection Which Can Be A Problem In It's Self!

 On 04/04/2009, Aaron shyhockey...@gmail.com wrote:





  well those are the errors I had in the brower.

  Now after I restart the test server.

  I get a 404 errror.

  I then took a look at the terminal and this is what came after I type
  the command runserver.

  here are those errors:

  WARNING:root:Could not read datastore data from /tmp/django_mobile-
  consulting-inc.datastore
  Running on app-engine-patch 1.0dev
  INFO:root:Server: appengine.google.com
  INFO:root:Checking for updates to the SDK.
  INFO:root:The SDK is up to date.
  WARNING:root:Could not read datastore data from /tmp/django_mobile-
  consulting-inc.datastore
  INFO:root:Running application mobile-consulting-inc on port 8000:
 http://localhost:8000
  DEBUG:root:Matched / to CGI dispatcher with path common/
  appenginepatch/main.py
  DEBUG:root:Executing CGI with env:
  {'APPLICATION_ID': 'mobile-consulting-inc',
   'AUTH_DOMAIN': 'gmail.com',
   'CONTENT_LENGTH': '',
   'CONTENT_TYPE': 'application/x-www-form-urlencoded',
   'CURRENT_VERSION_ID': '5.1',
   'GATEWAY_INTERFACE': 'CGI/1.1',
   'HTTP_ACCEPT': 'text/html,application/xhtml+xml,application/
  xml;q=0.9,*/*;q=0.8',
   'HTTP_ACCEPT_CHARSET': 'ISO-8859-1,utf-8;q=0.7,*;q=0.7',
   'HTTP_ACCEPT_LANGUAGE': 'en-us,en;q=0.5',
   'HTTP_CONNECTION': 'keep-alive',
   'HTTP_HOST': 'localhost:8000',
   'HTTP_KEEP_ALIVE': '300',
   'HTTP_USER_AGENT': 'Mozilla/5.0 (X11; U; Linux i686; en-US; rv:
  1.9.0.8) Gecko/2009032711 Ubuntu/8.04 (hardy) Firefox/3.0.8',
   'PATH_INFO': '/',
   'PATH_TRANSLATED': u'/home/aaron/websites/Chillenvillen.com/apps/
  google_app_engine/google_appengine/common/appenginepatch/main.py',
   'QUERY_STRING': '',
   'REMOTE_ADDR': '127.0.0.1',
   'REQUEST_METHOD': 'GET',
   'SCRIPT_NAME': '',
   'SERVER_NAME': 'localhost',
   'SERVER_PORT': '8000',
   'SERVER_PROTOCOL': 'HTTP/1.0',
   'SERVER_SOFTWARE': 'Development/1.0',
   'TZ': 'UTC',
   'USER_EMAIL': ''}
  DEBUG:root:Could not import strop: Disallowed C-extension or built-
  in module
  DEBUG:root:Could not import fcntl: Disallowed C-extension or built-
  in module
  DEBUG:root:Access to module file denied: /usr/lib/python2.5/site-
  packages/mod_python
  INFO:root:GET / HTTP/1.1 404 -
  INFO:root:Detected manual index.yaml, will not update

  On Apr 4, 1:29 pm, Aaron shyhockey...@gmail.com wrote:
  Hi, I just done a test of my app. It's a website. I just used the
  local host test.

  I got about 50 errors which all points the errors to the app engine
  python scripts.

  How could this happen?

  I will just post a few here or some of the errors:

  A problem occurred in a Python script. Here is the sequence of
  function calls leading up to the error, in the order they occurred.
   /home/aaron/websites/Chillenvillen.com/apps/google_app_engine/
  google_appengine/google/appengine/tools/dev_appserver.py in
  _HandleRequest
  (self=google.appengine.tools.dev_appserver.DevAppServerRequestHandler
  instance at 0x90443ec)
   2709                               infile,
   2710                               outfile,
  error here-  2711
  base_env_dict=env_dict)
   2712         finally:
   2713           self.module_manager.UpdateModuleFileModificationTimes
  ()
  base_env_dict undefined, env_dict = {'APPLICATION_ID': 'mobile-
  consulting-inc', 'CURRENT_VERSION_ID': '5.1', 'REMOTE_ADDR':
  '127.0.0.1', 'REQUEST_METHOD': 'GET', 'SERVER_NAME': 'localhost',
  'SERVER_PORT': '8000', 'SERVER_PROTOCOL': 'HTTP/1.0',
  'SERVER_SOFTWARE': 'Development/1.0'}
   /home/aaron/websites/Chillenvillen.com/apps/google_app_engine/
  google_appengine/google/appengine/tools/dev_appserver.py in Dispatch
  (self=google.appengine.tools.dev_appserver.MatcherDispatcher object
  at 0x8b5710c, relative_url='/', path=None, headers=mimetools.Message
  instance at 0x8b50e2c, infile=cStringIO.StringI object at
  0x8a6d200, outfile=cStringIO.StringO object at 0x8b570e0,
  base_env_dict={'APPLICATION_ID': 'mobile-consulting-inc',
  'CURRENT_VERSION_ID': '5.1', 'REMOTE_ADDR': '127.0.0.1',
  'REQUEST_METHOD': 'GET', 'SERVER_NAME': 'localhost', 'SERVER_PORT':
  '8000', 'SERVER_PROTOCOL': 'HTTP/1.0', 'SERVER_SOFTWARE': 'Development/
  1.0'})
    378                                       infile,
    379                                       outfile,
    error here- 380
  base_env_dict=base_env_dict)
    381
    382         if forward:
  base_env_dict = {'APPLICATION_ID': 'mobile-consulting-inc',
  'CURRENT_VERSION_ID': '5.1', 'REMOTE_ADDR': '127.0.0.1',
  'REQUEST_METHOD': 

[google-appengine] Re: Control Packages

2009-04-04 Thread Viktar

Thank you for your help, everything works.

On Apr 4, 10:57 am, djidjadji djidja...@gmail.com wrote:
 Static files can't be opened by your python code.
 Just remove them form your app.yaml file.
 They will be uploaded and you can use them as templates.

 2009/4/3 Viktar karp...@gmail.com:



  I am trying to create package for controls. Here is my folder
  structure:

  /controls
    items.py
    __init__.py

  /controls/templates
    items.html

  items.py has a Render method:

  def Render():
      
     items_control_path = os.path.join(os.path.dirname(__file__),
  'templates/items.html')
     return template.render(items_control_path,{'items':items})

  I am calling this method from root index.py, so it returns me html of
  control:

  from controls.items import Items
  ...
  control = {'items':Items.Render()}  # I did some work around, so it is
  ok to call Render method like this

  Locally everything works great. However if I deploy application it
  gives me an error. It can't find items.html.

  Here is my app.yaml:

  - url: /controls/items
   script: controls/items.py

  - url: /controls/templates/(.*\.html)
   static_files: controls/templates/\1
   upload: controls/templates/(.*\.html)

  If in browser I go directly to /controls/templates/items.html template
  is showing up, so file is there.

  I think packages are deployed some how different then static files, so
  path is not correct.

  I don't want dump controls and pages in the same root folder. Is there
  any solution for a problem?

  How I can reference static template files from modules in packages?
--~--~-~--~~~---~--~~
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 
google-appengine+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/google-appengine?hl=en
-~--~~~~--~~--~--~---



[google-appengine] Re: Fastest Templating on AppEngine?

2009-04-04 Thread Paul Roy

yea im not sure that i like what im seeing from cs' web site (personal  
taste), but if its built-in and as such, more powerful / less costly  
to use, i might give it a shot myself.

can anyone confirm that this is an importable package included in the  
interpreter that runs gae apps?...

Sent from my iPhone

On 09-04-04, at 13:47, Stephen sdea...@gmail.com wrote:


 The Clearsilver template engine is implemented in C and is compiled
 into the python interpreters running on Google's servers. (Apparently
 it is the template engine behind Google Groups, or was at some point.)

http://www.clearsilver.net/

 I don't have any advice on whether it is good or not or how fast it is
 -- I've only played with it briefly.

 It's a little awkward to develop with due to this SDK bug:

http://code.google.com/p/googleappengine/issues/detail?id=1163


 It might be a good choice to use with the built-in webapp framework,
 with a few convenience functions.


 On Apr 3, 1:13 am, Lee Olayvar leeolay...@gmail.com wrote:
 I'm curious, has anyone ran across any tests on appengine with  
 various
 templating engines? I know there are speed comparisons all over the  
 place,
 but im specifically concerning appengine since it has many aspects  
 that
 force various templating engines to not use feature X or speed  
 enhancing
 module Y.

 Any opinions would also be handy. I'm looking for an obviously sane
 language, but i have no desire/requirement for the ability to run  
 complex
 logic inside templates (nor should anyone, imo.)

 Comments and opinions are much appreciated.

 Thanks,
 --
 Lee Olayvar
 

--~--~-~--~~~---~--~~
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 
google-appengine+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/google-appengine?hl=en
-~--~~~~--~~--~--~---



[google-appengine] Re: Need help. Getting many python errors on localhost test.

2009-04-04 Thread Aaron

ya but how would you fix it?

I restarted the test server about 4 times. I would get a 404 once. I
got 3  times where it gave me a python error.

It listed all the google app engine where errors occured inthe app
engine python scripts.

so how can I fix this? Like I said I aint a python guru.



On Apr 4, 1:58 pm, Xavier Mathews xavieruni...@gmail.com wrote:
 Well 404 Is A Not Found Error So That Would Be The Browser Or Test
 Connection Which Can Be A Problem In It's Self!

 On 04/04/2009, Aaron shyhockey...@gmail.com wrote:





  well those are the errors I had in the brower.

  Now after I restart the test server.

  I get a 404 errror.

  I then took a look at the terminal and this is what came after I type
  the command runserver.

  here are those errors:

  WARNING:root:Could not read datastore data from /tmp/django_mobile-
  consulting-inc.datastore
  Running on app-engine-patch 1.0dev
  INFO:root:Server: appengine.google.com
  INFO:root:Checking for updates to the SDK.
  INFO:root:The SDK is up to date.
  WARNING:root:Could not read datastore data from /tmp/django_mobile-
  consulting-inc.datastore
  INFO:root:Running application mobile-consulting-inc on port 8000:
 http://localhost:8000
  DEBUG:root:Matched / to CGI dispatcher with path common/
  appenginepatch/main.py
  DEBUG:root:Executing CGI with env:
  {'APPLICATION_ID': 'mobile-consulting-inc',
   'AUTH_DOMAIN': 'gmail.com',
   'CONTENT_LENGTH': '',
   'CONTENT_TYPE': 'application/x-www-form-urlencoded',
   'CURRENT_VERSION_ID': '5.1',
   'GATEWAY_INTERFACE': 'CGI/1.1',
   'HTTP_ACCEPT': 'text/html,application/xhtml+xml,application/
  xml;q=0.9,*/*;q=0.8',
   'HTTP_ACCEPT_CHARSET': 'ISO-8859-1,utf-8;q=0.7,*;q=0.7',
   'HTTP_ACCEPT_LANGUAGE': 'en-us,en;q=0.5',
   'HTTP_CONNECTION': 'keep-alive',
   'HTTP_HOST': 'localhost:8000',
   'HTTP_KEEP_ALIVE': '300',
   'HTTP_USER_AGENT': 'Mozilla/5.0 (X11; U; Linux i686; en-US; rv:
  1.9.0.8) Gecko/2009032711 Ubuntu/8.04 (hardy) Firefox/3.0.8',
   'PATH_INFO': '/',
   'PATH_TRANSLATED': u'/home/aaron/websites/Chillenvillen.com/apps/
  google_app_engine/google_appengine/common/appenginepatch/main.py',
   'QUERY_STRING': '',
   'REMOTE_ADDR': '127.0.0.1',
   'REQUEST_METHOD': 'GET',
   'SCRIPT_NAME': '',
   'SERVER_NAME': 'localhost',
   'SERVER_PORT': '8000',
   'SERVER_PROTOCOL': 'HTTP/1.0',
   'SERVER_SOFTWARE': 'Development/1.0',
   'TZ': 'UTC',
   'USER_EMAIL': ''}
  DEBUG:root:Could not import strop: Disallowed C-extension or built-
  in module
  DEBUG:root:Could not import fcntl: Disallowed C-extension or built-
  in module
  DEBUG:root:Access to module file denied: /usr/lib/python2.5/site-
  packages/mod_python
  INFO:root:GET / HTTP/1.1 404 -
  INFO:root:Detected manual index.yaml, will not update

  On Apr 4, 1:29 pm, Aaron shyhockey...@gmail.com wrote:
  Hi, I just done a test of my app. It's a website. I just used the
  local host test.

  I got about 50 errors which all points the errors to the app engine
  python scripts.

  How could this happen?

  I will just post a few here or some of the errors:

  A problem occurred in a Python script. Here is the sequence of
  function calls leading up to the error, in the order they occurred.
   /home/aaron/websites/Chillenvillen.com/apps/google_app_engine/
  google_appengine/google/appengine/tools/dev_appserver.py in
  _HandleRequest
  (self=google.appengine.tools.dev_appserver.DevAppServerRequestHandler
  instance at 0x90443ec)
   2709                               infile,
   2710                               outfile,
  error here-  2711
  base_env_dict=env_dict)
   2712         finally:
   2713           self.module_manager.UpdateModuleFileModificationTimes
  ()
  base_env_dict undefined, env_dict = {'APPLICATION_ID': 'mobile-
  consulting-inc', 'CURRENT_VERSION_ID': '5.1', 'REMOTE_ADDR':
  '127.0.0.1', 'REQUEST_METHOD': 'GET', 'SERVER_NAME': 'localhost',
  'SERVER_PORT': '8000', 'SERVER_PROTOCOL': 'HTTP/1.0',
  'SERVER_SOFTWARE': 'Development/1.0'}
   /home/aaron/websites/Chillenvillen.com/apps/google_app_engine/
  google_appengine/google/appengine/tools/dev_appserver.py in Dispatch
  (self=google.appengine.tools.dev_appserver.MatcherDispatcher object
  at 0x8b5710c, relative_url='/', path=None, headers=mimetools.Message
  instance at 0x8b50e2c, infile=cStringIO.StringI object at
  0x8a6d200, outfile=cStringIO.StringO object at 0x8b570e0,
  base_env_dict={'APPLICATION_ID': 'mobile-consulting-inc',
  'CURRENT_VERSION_ID': '5.1', 'REMOTE_ADDR': '127.0.0.1',
  'REQUEST_METHOD': 'GET', 'SERVER_NAME': 'localhost', 'SERVER_PORT':
  '8000', 'SERVER_PROTOCOL': 'HTTP/1.0', 'SERVER_SOFTWARE': 'Development/
  1.0'})
    378                                       infile,
    379                                       outfile,
    error here- 380
  base_env_dict=base_env_dict)
    381
    382         if forward:
  base_env_dict = {'APPLICATION_ID': 'mobile-consulting-inc',
  'CURRENT_VERSION_ID': '5.1', 'REMOTE_ADDR': '127.0.0.1',
  'REQUEST_METHOD': 

[google-appengine] Re: Need help. Getting many python errors on localhost test.

2009-04-04 Thread Aaron

ok, I just fixed the 404 error.  The test server was looking for the
app in the static folder.

I didn't have to app in their so I moved it in their and I get now
python errors. Like about 50 like before.



On Apr 4, 2:44 pm, Aaron shyhockey...@gmail.com wrote:
 ya but how would you fix it?

 I restarted the test server about 4 times. I would get a 404 once. I
 got 3  times where it gave me a python error.

 It listed all the google app engine where errors occured inthe app
 engine python scripts.

 so how can I fix this? Like I said I aint a python guru.

 On Apr 4, 1:58 pm, Xavier Mathews xavieruni...@gmail.com wrote:

  Well 404 Is A Not Found Error So That Would Be The Browser Or Test
  Connection Which Can Be A Problem In It's Self!

  On 04/04/2009, Aaron shyhockey...@gmail.com wrote:

   well those are the errors I had in the brower.

   Now after I restart the test server.

   I get a 404 errror.

   I then took a look at the terminal and this is what came after I type
   the command runserver.

   here are those errors:

   WARNING:root:Could not read datastore data from /tmp/django_mobile-
   consulting-inc.datastore
   Running on app-engine-patch 1.0dev
   INFO:root:Server: appengine.google.com
   INFO:root:Checking for updates to the SDK.
   INFO:root:The SDK is up to date.
   WARNING:root:Could not read datastore data from /tmp/django_mobile-
   consulting-inc.datastore
   INFO:root:Running application mobile-consulting-inc on port 8000:
  http://localhost:8000
   DEBUG:root:Matched / to CGI dispatcher with path common/
   appenginepatch/main.py
   DEBUG:root:Executing CGI with env:
   {'APPLICATION_ID': 'mobile-consulting-inc',
    'AUTH_DOMAIN': 'gmail.com',
    'CONTENT_LENGTH': '',
    'CONTENT_TYPE': 'application/x-www-form-urlencoded',
    'CURRENT_VERSION_ID': '5.1',
    'GATEWAY_INTERFACE': 'CGI/1.1',
    'HTTP_ACCEPT': 'text/html,application/xhtml+xml,application/
   xml;q=0.9,*/*;q=0.8',
    'HTTP_ACCEPT_CHARSET': 'ISO-8859-1,utf-8;q=0.7,*;q=0.7',
    'HTTP_ACCEPT_LANGUAGE': 'en-us,en;q=0.5',
    'HTTP_CONNECTION': 'keep-alive',
    'HTTP_HOST': 'localhost:8000',
    'HTTP_KEEP_ALIVE': '300',
    'HTTP_USER_AGENT': 'Mozilla/5.0 (X11; U; Linux i686; en-US; rv:
   1.9.0.8) Gecko/2009032711 Ubuntu/8.04 (hardy) Firefox/3.0.8',
    'PATH_INFO': '/',
    'PATH_TRANSLATED': u'/home/aaron/websites/Chillenvillen.com/apps/
   google_app_engine/google_appengine/common/appenginepatch/main.py',
    'QUERY_STRING': '',
    'REMOTE_ADDR': '127.0.0.1',
    'REQUEST_METHOD': 'GET',
    'SCRIPT_NAME': '',
    'SERVER_NAME': 'localhost',
    'SERVER_PORT': '8000',
    'SERVER_PROTOCOL': 'HTTP/1.0',
    'SERVER_SOFTWARE': 'Development/1.0',
    'TZ': 'UTC',
    'USER_EMAIL': ''}
   DEBUG:root:Could not import strop: Disallowed C-extension or built-
   in module
   DEBUG:root:Could not import fcntl: Disallowed C-extension or built-
   in module
   DEBUG:root:Access to module file denied: /usr/lib/python2.5/site-
   packages/mod_python
   INFO:root:GET / HTTP/1.1 404 -
   INFO:root:Detected manual index.yaml, will not update

   On Apr 4, 1:29 pm, Aaron shyhockey...@gmail.com wrote:
   Hi, I just done a test of my app. It's a website. I just used the
   local host test.

   I got about 50 errors which all points the errors to the app engine
   python scripts.

   How could this happen?

   I will just post a few here or some of the errors:

   A problem occurred in a Python script. Here is the sequence of
   function calls leading up to the error, in the order they occurred.
    /home/aaron/websites/Chillenvillen.com/apps/google_app_engine/
   google_appengine/google/appengine/tools/dev_appserver.py in
   _HandleRequest
   (self=google.appengine.tools.dev_appserver.DevAppServerRequestHandler
   instance at 0x90443ec)
    2709                               infile,
    2710                               outfile,
   error here-  2711
   base_env_dict=env_dict)
    2712         finally:
    2713           self.module_manager.UpdateModuleFileModificationTimes
   ()
   base_env_dict undefined, env_dict = {'APPLICATION_ID': 'mobile-
   consulting-inc', 'CURRENT_VERSION_ID': '5.1', 'REMOTE_ADDR':
   '127.0.0.1', 'REQUEST_METHOD': 'GET', 'SERVER_NAME': 'localhost',
   'SERVER_PORT': '8000', 'SERVER_PROTOCOL': 'HTTP/1.0',
   'SERVER_SOFTWARE': 'Development/1.0'}
    /home/aaron/websites/Chillenvillen.com/apps/google_app_engine/
   google_appengine/google/appengine/tools/dev_appserver.py in Dispatch
   (self=google.appengine.tools.dev_appserver.MatcherDispatcher object
   at 0x8b5710c, relative_url='/', path=None, headers=mimetools.Message
   instance at 0x8b50e2c, infile=cStringIO.StringI object at
   0x8a6d200, outfile=cStringIO.StringO object at 0x8b570e0,
   base_env_dict={'APPLICATION_ID': 'mobile-consulting-inc',
   'CURRENT_VERSION_ID': '5.1', 'REMOTE_ADDR': '127.0.0.1',
   'REQUEST_METHOD': 'GET', 'SERVER_NAME': 'localhost', 'SERVER_PORT':
   '8000', 'SERVER_PROTOCOL': 'HTTP/1.0', 'SERVER_SOFTWARE': 

[google-appengine] test data for my model

2009-04-04 Thread Ronn Ross
I have a simple model like so:
class User(db.Model):
UserName = db.StringProperty(required=True)
Password = db.StringProperty(required=True)
FirstName = db.StringProperty(required=True)
LastName = db.StringProperty(required=True)

I would like there to be at least one default user in this table while
testing. How do I add test data to a class model?
Dankon

--~--~-~--~~~---~--~~
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 
google-appengine+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/google-appengine?hl=en
-~--~~~~--~~--~--~---



[google-appengine] Re: Need help. Getting many python errors on localhost test.

2009-04-04 Thread Aaron

ok, I just fixed the 404 error.  The test server was looking for the
app in the static folder.

I didn't have to app in their so I moved it in their and I get now
python errors. Like about 50 like before.



On Apr 4, 2:44 pm, Aaron shyhockey...@gmail.com wrote:
 ya but how would you fix it?

 I restarted the test server about 4 times. I would get a 404 once. I
 got 3  times where it gave me a python error.

 It listed all the google app engine where errors occured inthe app
 engine python scripts.

 so how can I fix this? Like I said I aint a python guru.

 On Apr 4, 1:58 pm, Xavier Mathews xavieruni...@gmail.com wrote:

  Well 404 Is A Not Found Error So That Would Be The Browser Or Test
  Connection Which Can Be A Problem In It's Self!

  On 04/04/2009, Aaron shyhockey...@gmail.com wrote:

   well those are the errors I had in the brower.

   Now after I restart the test server.

   I get a 404 errror.

   I then took a look at the terminal and this is what came after I type
   the command runserver.

   here are those errors:

   WARNING:root:Could not read datastore data from /tmp/django_mobile-
   consulting-inc.datastore
   Running on app-engine-patch 1.0dev
   INFO:root:Server: appengine.google.com
   INFO:root:Checking for updates to the SDK.
   INFO:root:The SDK is up to date.
   WARNING:root:Could not read datastore data from /tmp/django_mobile-
   consulting-inc.datastore
   INFO:root:Running application mobile-consulting-inc on port 8000:
  http://localhost:8000
   DEBUG:root:Matched / to CGI dispatcher with path common/
   appenginepatch/main.py
   DEBUG:root:Executing CGI with env:
   {'APPLICATION_ID': 'mobile-consulting-inc',
    'AUTH_DOMAIN': 'gmail.com',
    'CONTENT_LENGTH': '',
    'CONTENT_TYPE': 'application/x-www-form-urlencoded',
    'CURRENT_VERSION_ID': '5.1',
    'GATEWAY_INTERFACE': 'CGI/1.1',
    'HTTP_ACCEPT': 'text/html,application/xhtml+xml,application/
   xml;q=0.9,*/*;q=0.8',
    'HTTP_ACCEPT_CHARSET': 'ISO-8859-1,utf-8;q=0.7,*;q=0.7',
    'HTTP_ACCEPT_LANGUAGE': 'en-us,en;q=0.5',
    'HTTP_CONNECTION': 'keep-alive',
    'HTTP_HOST': 'localhost:8000',
    'HTTP_KEEP_ALIVE': '300',
    'HTTP_USER_AGENT': 'Mozilla/5.0 (X11; U; Linux i686; en-US; rv:
   1.9.0.8) Gecko/2009032711 Ubuntu/8.04 (hardy) Firefox/3.0.8',
    'PATH_INFO': '/',
    'PATH_TRANSLATED': u'/home/aaron/websites/Chillenvillen.com/apps/
   google_app_engine/google_appengine/common/appenginepatch/main.py',
    'QUERY_STRING': '',
    'REMOTE_ADDR': '127.0.0.1',
    'REQUEST_METHOD': 'GET',
    'SCRIPT_NAME': '',
    'SERVER_NAME': 'localhost',
    'SERVER_PORT': '8000',
    'SERVER_PROTOCOL': 'HTTP/1.0',
    'SERVER_SOFTWARE': 'Development/1.0',
    'TZ': 'UTC',
    'USER_EMAIL': ''}
   DEBUG:root:Could not import strop: Disallowed C-extension or built-
   in module
   DEBUG:root:Could not import fcntl: Disallowed C-extension or built-
   in module
   DEBUG:root:Access to module file denied: /usr/lib/python2.5/site-
   packages/mod_python
   INFO:root:GET / HTTP/1.1 404 -
   INFO:root:Detected manual index.yaml, will not update

   On Apr 4, 1:29 pm, Aaron shyhockey...@gmail.com wrote:
   Hi, I just done a test of my app. It's a website. I just used the
   local host test.

   I got about 50 errors which all points the errors to the app engine
   python scripts.

   How could this happen?

   I will just post a few here or some of the errors:

   A problem occurred in a Python script. Here is the sequence of
   function calls leading up to the error, in the order they occurred.
    /home/aaron/websites/Chillenvillen.com/apps/google_app_engine/
   google_appengine/google/appengine/tools/dev_appserver.py in
   _HandleRequest
   (self=google.appengine.tools.dev_appserver.DevAppServerRequestHandler
   instance at 0x90443ec)
    2709                               infile,
    2710                               outfile,
   error here-  2711
   base_env_dict=env_dict)
    2712         finally:
    2713           self.module_manager.UpdateModuleFileModificationTimes
   ()
   base_env_dict undefined, env_dict = {'APPLICATION_ID': 'mobile-
   consulting-inc', 'CURRENT_VERSION_ID': '5.1', 'REMOTE_ADDR':
   '127.0.0.1', 'REQUEST_METHOD': 'GET', 'SERVER_NAME': 'localhost',
   'SERVER_PORT': '8000', 'SERVER_PROTOCOL': 'HTTP/1.0',
   'SERVER_SOFTWARE': 'Development/1.0'}
    /home/aaron/websites/Chillenvillen.com/apps/google_app_engine/
   google_appengine/google/appengine/tools/dev_appserver.py in Dispatch
   (self=google.appengine.tools.dev_appserver.MatcherDispatcher object
   at 0x8b5710c, relative_url='/', path=None, headers=mimetools.Message
   instance at 0x8b50e2c, infile=cStringIO.StringI object at
   0x8a6d200, outfile=cStringIO.StringO object at 0x8b570e0,
   base_env_dict={'APPLICATION_ID': 'mobile-consulting-inc',
   'CURRENT_VERSION_ID': '5.1', 'REMOTE_ADDR': '127.0.0.1',
   'REQUEST_METHOD': 'GET', 'SERVER_NAME': 'localhost', 'SERVER_PORT':
   '8000', 'SERVER_PROTOCOL': 'HTTP/1.0', 'SERVER_SOFTWARE': 

[google-appengine] Re: Need help. Getting many python errors on localhost test.

2009-04-04 Thread Aaron

I just need help on where my files needs to be.

I have my app in it's own folder. I had the app inside the directory
of google app engine.

the problem is when I run manage.py inside my own app folder. The
manage.py can't find the source development kit of google apps engine.

So I took the manage.py out and put it directly in the google app
engine which then can find the SDK.

Then I got the problem with finding the application which I notice
manage.py made the test server to look for the app in the static
folder.

So I moved the app to the static folder and then I got python error
messages instead of a 404.  This is where I am at.

I am not sure if the files are in the right place where it needs to be
placed.

I am getting like 50 errors. All or most of them are coming from the
app engine python scripts.

I am guessing the files are not in the proper place in order for it to
run or be found.

So I ask where does my application need to be  in order for it to run.
I think the config is in the default state.

I only changed the app.yaml to the application that I need to update.

any ideas what could be the problem? I been working on this all day.
I got an impatient ceo barking down my neck.

He never gave me a deadline but he want's it up as soon as possible.
He wants updates from day to day basis.



On Apr 4, 3:04 pm, Aaron shyhockey...@gmail.com wrote:
 ok, I just fixed the 404 error.  The test server was looking for the
 app in the static folder.

 I didn't have to app in their so I moved it in their and I get now
 python errors. Like about 50 like before.

 On Apr 4, 2:44 pm, Aaron shyhockey...@gmail.com wrote:

  ya but how would you fix it?

  I restarted the test server about 4 times. I would get a 404 once. I
  got 3  times where it gave me a python error.

  It listed all the google app engine where errors occured inthe app
  engine python scripts.

  so how can I fix this? Like I said I aint a python guru.

  On Apr 4, 1:58 pm, Xavier Mathews xavieruni...@gmail.com wrote:

   Well 404 Is A Not Found Error So That Would Be The Browser Or Test
   Connection Which Can Be A Problem In It's Self!

   On 04/04/2009, Aaron shyhockey...@gmail.com wrote:

well those are the errors I had in the brower.

Now after I restart the test server.

I get a 404 errror.

I then took a look at the terminal and this is what came after I type
the command runserver.

here are those errors:

WARNING:root:Could not read datastore data from /tmp/django_mobile-
consulting-inc.datastore
Running on app-engine-patch 1.0dev
INFO:root:Server: appengine.google.com
INFO:root:Checking for updates to the SDK.
INFO:root:The SDK is up to date.
WARNING:root:Could not read datastore data from /tmp/django_mobile-
consulting-inc.datastore
INFO:root:Running application mobile-consulting-inc on port 8000:
   http://localhost:8000
DEBUG:root:Matched / to CGI dispatcher with path common/
appenginepatch/main.py
DEBUG:root:Executing CGI with env:
{'APPLICATION_ID': 'mobile-consulting-inc',
 'AUTH_DOMAIN': 'gmail.com',
 'CONTENT_LENGTH': '',
 'CONTENT_TYPE': 'application/x-www-form-urlencoded',
 'CURRENT_VERSION_ID': '5.1',
 'GATEWAY_INTERFACE': 'CGI/1.1',
 'HTTP_ACCEPT': 'text/html,application/xhtml+xml,application/
xml;q=0.9,*/*;q=0.8',
 'HTTP_ACCEPT_CHARSET': 'ISO-8859-1,utf-8;q=0.7,*;q=0.7',
 'HTTP_ACCEPT_LANGUAGE': 'en-us,en;q=0.5',
 'HTTP_CONNECTION': 'keep-alive',
 'HTTP_HOST': 'localhost:8000',
 'HTTP_KEEP_ALIVE': '300',
 'HTTP_USER_AGENT': 'Mozilla/5.0 (X11; U; Linux i686; en-US; rv:
1.9.0.8) Gecko/2009032711 Ubuntu/8.04 (hardy) Firefox/3.0.8',
 'PATH_INFO': '/',
 'PATH_TRANSLATED': u'/home/aaron/websites/Chillenvillen.com/apps/
google_app_engine/google_appengine/common/appenginepatch/main.py',
 'QUERY_STRING': '',
 'REMOTE_ADDR': '127.0.0.1',
 'REQUEST_METHOD': 'GET',
 'SCRIPT_NAME': '',
 'SERVER_NAME': 'localhost',
 'SERVER_PORT': '8000',
 'SERVER_PROTOCOL': 'HTTP/1.0',
 'SERVER_SOFTWARE': 'Development/1.0',
 'TZ': 'UTC',
 'USER_EMAIL': ''}
DEBUG:root:Could not import strop: Disallowed C-extension or built-
in module
DEBUG:root:Could not import fcntl: Disallowed C-extension or built-
in module
DEBUG:root:Access to module file denied: /usr/lib/python2.5/site-
packages/mod_python
INFO:root:GET / HTTP/1.1 404 -
INFO:root:Detected manual index.yaml, will not update

On Apr 4, 1:29 pm, Aaron shyhockey...@gmail.com wrote:
Hi, I just done a test of my app. It's a website. I just used the
local host test.

I got about 50 errors which all points the errors to the app engine
python scripts.

How could this happen?

I will just post a few here or some of the errors:

A problem occurred in a Python script. Here is the sequence of
function calls leading up to the error, in the order they occurred.

[google-appengine] Re: SSL Socket connections

2009-04-04 Thread David Wilson

Hi Jeremy,

Since AppEngine doesn't yet support sockets of any kind, this is a non-starter.


David.

2009/4/3 jeremysomething jeremyschoenh...@gmail.com:

 Has anyone implemented a SSL/TLS client connection from their GAE app?

 There's this lib http://trevp.net/tlslite/

 Just curious if anyone has any advice or samples I could check out. I
 basically want to be able to connect to a remote SSL port with a given
 cert.. And then push a bunch of data..

 Thanks!

 //jeremy
 




-- 
It is better to be wrong than to be vague.
  — Freeman Dyson

--~--~-~--~~~---~--~~
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 
google-appengine+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/google-appengine?hl=en
-~--~~~~--~~--~--~---



[google-appengine] Sitemaps

2009-04-04 Thread Nora

Hello,
I need to develop a sitemap for my application.  I understand that it
is an xml file.  Do I add a link to this file in my website.  I keep
getting that google crawler is unable to find this sitemap.xml in my
application.  I created the file autmoatically using google tools and
just left it with the rest of the filesCould anyone please let me
know how to handle this sitemap file?

Thank you very much.
--~--~-~--~~~---~--~~
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 
google-appengine+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/google-appengine?hl=en
-~--~~~~--~~--~--~---



[google-appengine] Re: Sitemaps

2009-04-04 Thread 'Αλκης Ευλογημένος
You need to setup a handler to serve static files:
http://code.google.com/appengine/docs/python/gettingstarted/staticfiles.html

On Sat, Apr 4, 2009 at 10:01 PM, Nora noorhanab...@yahoo.co.uk wrote:


 Hello,
 I need to develop a sitemap for my application.  I understand that it
 is an xml file.  Do I add a link to this file in my website.  I keep
 getting that google crawler is unable to find this sitemap.xml in my
 application.  I created the file autmoatically using google tools and
 just left it with the rest of the filesCould anyone please let me
 know how to handle this sitemap file?

 Thank you very much.
 



-- 

Alkis

--~--~-~--~~~---~--~~
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 
google-appengine+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/google-appengine?hl=en
-~--~~~~--~~--~--~---



[google-appengine] Re: how to execute a href .... using google apps

2009-04-04 Thread djidjadji

Work trough the example it will answer a lot of your questions

[1] http://code.google.com/appengine/docs/python/gettingstarted/

--~--~-~--~~~---~--~~
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 
google-appengine+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/google-appengine?hl=en
-~--~~~~--~~--~--~---



[google-appengine] Re: Sitemaps

2009-04-04 Thread Sargis Dallakyan

Sitemap does need to be an xml file, however, you need to tell GAE
that its a static file by include a statement similar to this one in
your app.yaml

- url: /sitemap
  static_files: sitemap
  upload: sitemap

Replace sitemap with sitemap.xml, if needed.

On Apr 4, 1:01 pm, Nora noorhanab...@yahoo.co.uk wrote:
 Hello,
 I need to develop a sitemap for my application.  I understand that it
 is an xml file.  Do I add a link to this file in my website.  I keep
 getting that google crawler is unable to find this sitemap.xml in my
 application.  I created the file autmoatically using google tools and
 just left it with the rest of the filesCould anyone please let me
 know how to handle this sitemap file?

 Thank you very much.
--~--~-~--~~~---~--~~
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 
google-appengine+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/google-appengine?hl=en
-~--~~~~--~~--~--~---



[google-appengine] Re: Sitemaps

2009-04-04 Thread 'Αλκης Ευλογημένος
Sitemaps can be plain text files as well: http://sitemaps.org/protocol.php

On Sat, Apr 4, 2009 at 10:31 PM, Sargis Dallakyan food@gmail.comwrote:


 Sitemap does need to be an xml file, however, you need to tell GAE
 that its a static file by include a statement similar to this one in
 your app.yaml

 - url: /sitemap
  static_files: sitemap
  upload: sitemap

 Replace sitemap with sitemap.xml, if needed.

 On Apr 4, 1:01 pm, Nora noorhanab...@yahoo.co.uk wrote:
  Hello,
  I need to develop a sitemap for my application.  I understand that it
  is an xml file.  Do I add a link to this file in my website.  I keep
  getting that google crawler is unable to find this sitemap.xml in my
  application.  I created the file autmoatically using google tools and
  just left it with the rest of the filesCould anyone please let me
  know how to handle this sitemap file?
 
  Thank you very much.
 



-- 

Alkis

--~--~-~--~~~---~--~~
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 
google-appengine+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/google-appengine?hl=en
-~--~~~~--~~--~--~---



[google-appengine] Re: function call

2009-04-04 Thread Ronn Ross
If I use the one provided doesn't that mean the user would have to have a
google account before hand?

2009/4/3 Alkis Evlogimenos ('Αλκης Ευλογημένος) evlogime...@gmail.com

 You can use a decorator that is already provided:
 from google.appengine.ext.webapp.util import login_required

 class MyHandler(webapp.RequestHandler):
   @login_required
   def get(self):
 ...

 On Fri, Apr 3, 2009 at 8:02 PM, Ronn Ross ronn.r...@gmail.com wrote:

 How can I create a function that is run every time a page is loaded
 without adding an auth block in every method? This is so I can authenticate
 people. How would I do something like that in GAE?





 --

 Alkis

 


--~--~-~--~~~---~--~~
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 
google-appengine+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/google-appengine?hl=en
-~--~~~~--~~--~--~---



[google-appengine] Running dev_appserver.py under a mod_python

2009-04-04 Thread Khai

Before I try something crazy I want to know if someone has try it or
whether it is too crazy to try.

The problem is dev_appserver.py is single-threaded, and I need to have
multiple instances running.  I am developing an opensocial application
which make three asynchronous requests to my server.  Because
dev_appserver.py is single threaded, the last request serviced by
dev_appserver.py took more than 5 seconds and get timed out by
opensocial.  So I need to have multiple processes of dev_appserver.py
running.

I've search this group, and so far I've only found that someone run
multiple dev_appserver.py processes using different ports which is not
practical for my problem.  I've also search this group for mod_python,
but did not find any relevant result.  I want to run dev_appserver.py
as a mod_python script with Apache prefork mpm (multiple processes).

Is this possible?  What is the degree of difficulty?  I am very novice
with GAE, and I have never done anything with mod_python.  Has anyone
try this before?  Would anyone willing to try it and share it with the
group?

Any responses / advices would be greatly appreciated.

Khai
--~--~-~--~~~---~--~~
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 
google-appengine+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/google-appengine?hl=en
-~--~~~~--~~--~--~---



[google-appengine] Re: Need help. Getting many python errors on localhost test.

2009-04-04 Thread Aaron

No I can't even run the test server anymore.

I get a new error:

Traceback (most recent call last):
  File manage.py, line 4, in module
setup_env(manage_py_env=True)
  File /home/aaron/websites/Chillenvillen.com/apps/google_app_engine/
google_appengine/common/appenginepatch/aecmd.py, line 63, in
setup_env
patch_all()
  File /home/aaron/websites/Chillenvillen.com/apps/google_app_engine/
google_appengine/common/appenginepatch/appenginepatcher/patch.py,
line 21, in patch_all
patch_django()
  File /home/aaron/websites/Chillenvillen.com/apps/google_app_engine/
google_appengine/common/appenginepatch/appenginepatcher/patch.py,
line 535, in patch_django
from ragendja import template
  File /home/aaron/websites/Chillenvillen.com/apps/google_app_engine/
google_appengine/common/appenginepatch/ragendja/template.py, line 84,
in module
app_template_dirs = get_app_dirs('templates')
  File /home/aaron/websites/Chillenvillen.com/apps/google_app_engine/
google_appengine/common/appenginepatch/ragendja/apputils.py, line 38,
in get_app_dirs
for appname, module in get_app_modules().items():
  File /home/aaron/websites/Chillenvillen.com/apps/google_app_engine/
google_appengine/common/appenginepatch/ragendja/apputils.py, line 32,
in get_app_modules
if module_name in list_modules(import_module(app)):
  File /home/aaron/websites/Chillenvillen.com/apps/google_app_engine/
google_appengine/common/appenginepatch/ragendja/apputils.py, line 5,
in import_module
return __import__(module_name, {}, {}, [''])
ImportError: No module named contact
r...@demonicproductions:/home/aaron/websites/Chillenvillen.com/apps/
google_app_engine/google_appengine# python manage.py runserver
Traceback (most recent call last):
  File manage.py, line 4, in module
setup_env(manage_py_env=True)
  File /home/aaron/websites/Chillenvillen.com/apps/google_app_engine/
google_appengine/common/appenginepatch/aecmd.py, line 63, in
setup_env
patch_all()
  File /home/aaron/websites/Chillenvillen.com/apps/google_app_engine/
google_appengine/common/appenginepatch/appenginepatcher/patch.py,
line 21, in patch_all
patch_django()
  File /home/aaron/websites/Chillenvillen.com/apps/google_app_engine/
google_appengine/common/appenginepatch/appenginepatcher/patch.py,
line 535, in patch_django
from ragendja import template
  File /home/aaron/websites/Chillenvillen.com/apps/google_app_engine/
google_appengine/common/appenginepatch/ragendja/template.py, line 84,
in module
app_template_dirs = get_app_dirs('templates')
  File /home/aaron/websites/Chillenvillen.com/apps/google_app_engine/
google_appengine/common/appenginepatch/ragendja/apputils.py, line 38,
in get_app_dirs
for appname, module in get_app_modules().items():
  File /home/aaron/websites/Chillenvillen.com/apps/google_app_engine/
google_appengine/common/appenginepatch/ragendja/apputils.py, line 32,
in get_app_modules
if module_name in list_modules(import_module(app)):
  File /home/aaron/websites/Chillenvillen.com/apps/google_app_engine/
google_appengine/common/appenginepatch/ragendja/apputils.py, line 5,
in import_module
return __import__(module_name, {}, {}, [''])
ImportError: No module named contact


that's what the terminal spits out.

I am using linux ubuntu OS.

I have not changed anything. This just happended when I restarted the
test server.

On Apr 4, 3:30 pm, Aaron shyhockey...@gmail.com wrote:
 I just need help on where my files needs to be.

 I have my app in it's own folder. I had the app inside the directory
 of google app engine.

 the problem is when I run manage.py inside my own app folder. The
 manage.py can't find the source development kit of google apps engine.

 So I took the manage.py out and put it directly in the google app
 engine which then can find the SDK.

 Then I got the problem with finding the application which I notice
 manage.py made the test server to look for the app in the static
 folder.

 So I moved the app to the static folder and then I got python error
 messages instead of a 404.  This is where I am at.

 I am not sure if the files are in the right place where it needs to be
 placed.

 I am getting like 50 errors. All or most of them are coming from the
 app engine python scripts.

 I am guessing the files are not in the proper place in order for it to
 run or be found.

 So I ask where does my application need to be  in order for it to run.
 I think the config is in the default state.

 I only changed the app.yaml to the application that I need to update.

 any ideas what could be the problem? I been working on this all day.
 I got an impatient ceo barking down my neck.

 He never gave me a deadline but he want's it up as soon as possible.
 He wants updates from day to day basis.

 On Apr 4, 3:04 pm, Aaron shyhockey...@gmail.com wrote:

  ok, I just fixed the 404 error.  The test server was looking for the
  app in the static folder.

  I didn't have to app in their so I moved it in their and I get now
  python errors. 

[google-appengine] Re: Need help. Getting many python errors on localhost test.

2009-04-04 Thread Aaron

No I can't even run the test server anymore.

I get a new error:

Traceback (most recent call last):
  File manage.py, line 4, in module
setup_env(manage_py_env=True)
  File /home/aaron/websites/Chillenvillen.com/apps/google_app_engine/
google_appengine/common/appenginepatch/aecmd.py, line 63, in
setup_env
patch_all()
  File /home/aaron/websites/Chillenvillen.com/apps/google_app_engine/
google_appengine/common/appenginepatch/appenginepatcher/patch.py,
line 21, in patch_all
patch_django()
  File /home/aaron/websites/Chillenvillen.com/apps/google_app_engine/
google_appengine/common/appenginepatch/appenginepatcher/patch.py,
line 535, in patch_django
from ragendja import template
  File /home/aaron/websites/Chillenvillen.com/apps/google_app_engine/
google_appengine/common/appenginepatch/ragendja/template.py, line 84,
in module
app_template_dirs = get_app_dirs('templates')
  File /home/aaron/websites/Chillenvillen.com/apps/google_app_engine/
google_appengine/common/appenginepatch/ragendja/apputils.py, line 38,
in get_app_dirs
for appname, module in get_app_modules().items():
  File /home/aaron/websites/Chillenvillen.com/apps/google_app_engine/
google_appengine/common/appenginepatch/ragendja/apputils.py, line 32,
in get_app_modules
if module_name in list_modules(import_module(app)):
  File /home/aaron/websites/Chillenvillen.com/apps/google_app_engine/
google_appengine/common/appenginepatch/ragendja/apputils.py, line 5,
in import_module
return __import__(module_name, {}, {}, [''])
ImportError: No module named contact
r...@demonicproductions:/home/aaron/websites/Chillenvillen.com/apps/
google_app_engine/google_appengine# python manage.py runserver
Traceback (most recent call last):
  File manage.py, line 4, in module
setup_env(manage_py_env=True)
  File /home/aaron/websites/Chillenvillen.com/apps/google_app_engine/
google_appengine/common/appenginepatch/aecmd.py, line 63, in
setup_env
patch_all()
  File /home/aaron/websites/Chillenvillen.com/apps/google_app_engine/
google_appengine/common/appenginepatch/appenginepatcher/patch.py,
line 21, in patch_all
patch_django()
  File /home/aaron/websites/Chillenvillen.com/apps/google_app_engine/
google_appengine/common/appenginepatch/appenginepatcher/patch.py,
line 535, in patch_django
from ragendja import template
  File /home/aaron/websites/Chillenvillen.com/apps/google_app_engine/
google_appengine/common/appenginepatch/ragendja/template.py, line 84,
in module
app_template_dirs = get_app_dirs('templates')
  File /home/aaron/websites/Chillenvillen.com/apps/google_app_engine/
google_appengine/common/appenginepatch/ragendja/apputils.py, line 38,
in get_app_dirs
for appname, module in get_app_modules().items():
  File /home/aaron/websites/Chillenvillen.com/apps/google_app_engine/
google_appengine/common/appenginepatch/ragendja/apputils.py, line 32,
in get_app_modules
if module_name in list_modules(import_module(app)):
  File /home/aaron/websites/Chillenvillen.com/apps/google_app_engine/
google_appengine/common/appenginepatch/ragendja/apputils.py, line 5,
in import_module
return __import__(module_name, {}, {}, [''])
ImportError: No module named contact


that's what the terminal spits out.

I am using linux ubuntu OS.

I have not changed anything. This just happended when I restarted the
test server.

On Apr 4, 3:30 pm, Aaron shyhockey...@gmail.com wrote:
 I just need help on where my files needs to be.

 I have my app in it's own folder. I had the app inside the directory
 of google app engine.

 the problem is when I run manage.py inside my own app folder. The
 manage.py can't find the source development kit of google apps engine.

 So I took the manage.py out and put it directly in the google app
 engine which then can find the SDK.

 Then I got the problem with finding the application which I notice
 manage.py made the test server to look for the app in the static
 folder.

 So I moved the app to the static folder and then I got python error
 messages instead of a 404.  This is where I am at.

 I am not sure if the files are in the right place where it needs to be
 placed.

 I am getting like 50 errors. All or most of them are coming from the
 app engine python scripts.

 I am guessing the files are not in the proper place in order for it to
 run or be found.

 So I ask where does my application need to be  in order for it to run.
 I think the config is in the default state.

 I only changed the app.yaml to the application that I need to update.

 any ideas what could be the problem? I been working on this all day.
 I got an impatient ceo barking down my neck.

 He never gave me a deadline but he want's it up as soon as possible.
 He wants updates from day to day basis.

 On Apr 4, 3:04 pm, Aaron shyhockey...@gmail.com wrote:

  ok, I just fixed the 404 error.  The test server was looking for the
  app in the static folder.

  I didn't have to app in their so I moved it in their and I get now
  python errors. 

[google-appengine] dev_appserver.py and ListenBackLog directive

2009-04-04 Thread Khai

With Apache we can configure the maximum length of the queue of
pending connections using it's ListenBackLog directive (
http://httpd.apache.org/docs/2.0/mod/mpm_common.html#listenbacklog ).

Can anyone with knowledge of the SDK internals please let me know the
default maximum length of the queue of pending connections  (this
would save me some time from having to dig through the source code)?
Can we make this a configurable command-line option?

Any responses would be appreciated.

Thanks
Khai
--~--~-~--~~~---~--~~
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 
google-appengine+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/google-appengine?hl=en
-~--~~~~--~~--~--~---



[google-appengine] Re: function call

2009-04-04 Thread 'Αλκης Ευλογημένος
They will get redirected to a login screen. If they do not have an account
they can create one.
2009/4/4 Ronn Ross ronn.r...@gmail.com

 If I use the one provided doesn't that mean the user would have to have a
 google account before hand?

 2009/4/3 Alkis Evlogimenos ('Αλκης Ευλογημένος) evlogime...@gmail.com

 You can use a decorator that is already provided:
 from google.appengine.ext.webapp.util import login_required

 class MyHandler(webapp.RequestHandler):
   @login_required
   def get(self):
 ...

 On Fri, Apr 3, 2009 at 8:02 PM, Ronn Ross ronn.r...@gmail.com wrote:

 How can I create a function that is run every time a page is loaded
 without adding an auth block in every method? This is so I can authenticate
 people. How would I do something like that in GAE?





 --

 Alkis




 



-- 

Alkis

--~--~-~--~~~---~--~~
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 
google-appengine+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/google-appengine?hl=en
-~--~~~~--~~--~--~---



[google-appengine] Re: test data for my model

2009-04-04 Thread djidjadji

If you can't use the Datastore Viewer to create an entity,
create an entity when you request a special url

user = User(UserName=aa,Password=pass,FirstName=Ronn, LastName=Ross)
user.put()

2009/4/4 Ronn Ross ronn.r...@gmail.com:
 I have a simple model like so:
 class User(db.Model):
 UserName = db.StringProperty(required=True)
 Password = db.StringProperty(required=True)
 FirstName = db.StringProperty(required=True)
 LastName = db.StringProperty(required=True)
 I would like there to be at least one default user in this table while
 testing. How do I add test data to a class model?
 Dankon
 


--~--~-~--~~~---~--~~
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 
google-appengine+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/google-appengine?hl=en
-~--~~~~--~~--~--~---



[google-appengine] Re: Running dev_appserver.py under a mod_python

2009-04-04 Thread 'Αλκης Ευλογημένος
That's a very bad idea: dev_appserver is not secure, is snail slow if you
add more than a couple of thousand entities in it and it is uncertain if it
can share a datastore across multiple instances.
Why do you want to do this? What is wrong with hosting on GAE?

On Sat, Apr 4, 2009 at 11:04 PM, Khai khaitd...@gmail.com wrote:


 Before I try something crazy I want to know if someone has try it or
 whether it is too crazy to try.

 The problem is dev_appserver.py is single-threaded, and I need to have
 multiple instances running.  I am developing an opensocial application
 which make three asynchronous requests to my server.  Because
 dev_appserver.py is single threaded, the last request serviced by
 dev_appserver.py took more than 5 seconds and get timed out by
 opensocial.  So I need to have multiple processes of dev_appserver.py
 running.

 I've search this group, and so far I've only found that someone run
 multiple dev_appserver.py processes using different ports which is not
 practical for my problem.  I've also search this group for mod_python,
 but did not find any relevant result.  I want to run dev_appserver.py
 as a mod_python script with Apache prefork mpm (multiple processes).

 Is this possible?  What is the degree of difficulty?  I am very novice
 with GAE, and I have never done anything with mod_python.  Has anyone
 try this before?  Would anyone willing to try it and share it with the
 group?

 Any responses / advices would be greatly appreciated.

 Khai
 



-- 

Alkis

--~--~-~--~~~---~--~~
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 
google-appengine+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/google-appengine?hl=en
-~--~~~~--~~--~--~---



[google-appengine] Re: {% extends %} and UTF-8

2009-04-04 Thread DocDay

I just checked and it does. That does the trick.

Thanks!


On Apr 4, 6:45 am, Alkis Evlogimenos ('Αλκης Ευλογημένος)
evlogime...@gmail.com wrote:
 Maybe your editor has an option to stop writing BOMs? That will solve the
 problem. You do not need a BOM for utf-8. The encoding is endianness
 independent to begin with.
 2009/4/4 DocDay google@eoasys.com







  I did forget to mention that the BOM I am seeing is EF BB BF, which
  is correct for UTF-8, according tohttp://www.unicode.org/faq/utf_bom.html
  .

  When I see three of them, I mean I am seeing EF BB BF EF BB BF EF BB
  BF at the beginning of the entity from the server. As I convert each
  of the html files to 8-bit ansi, one of the BOMs received from the
  server drops out. After converting two of them, the server sends only
  one BOM, EF BB BF, and my problem is gone (which seems to make sense
  what with the meta containing ...charset=utf-8 ?). After converting
  all three of them, the server sends no BOM at all, continuing the
  pattern.

  It's hard for me to see how this could be my editor. BTW, I'm using
  Programmer's Notepad 2.

  On Apr 4, 4:03 am, Alkis Evlogimenos ('Αλκης Ευλογημένος)
  evlogime...@gmail.com wrote:
   On Sat, Apr 4, 2009 at 7:14 AM, DocDay google@eoasys.com wrote:
Is GAE causing this?

   I think its your editor.

   --

   Alkis

 --

 Alkis- 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 
google-appengine+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/google-appengine?hl=en
-~--~~~~--~~--~--~---



[google-appengine] Re: How to update DB record

2009-04-04 Thread djidjadji

If you don't have a primary key in your object model you should use key_names.
Don't rely on the object ID's that are given.

To update an object in the datastore you first retrieve it with a query.
Change the members of the object.
and put the object back

phrase = Phrases.get_by_id(2)
# or
phrase = Phrases.get_by_key_name('my_key_2')

phraseContent = 'typing a longer phrase'
phraseContent.put()


2009/4/4 Larkin2 michael.mer...@gmail.com:

 I've been reviewing the example provided here:
 http://code.google.com/appengine/kb/commontasks.html#update in regards
 to updating a record in my DB.

 I have the following DB model

 class Phrases(db.Model,):
  phraseContent = db.StringProperty(multiline=True)

 Assuming the following records exist

 ID | phraseContent
 ---
 1 | before a window
 2 | typing a phrase
 3 } into a computer

 How would I update #2 to read: 'typing a longer phrase'

 without creating a new record all together?


--~--~-~--~~~---~--~~
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 
google-appengine+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/google-appengine?hl=en
-~--~~~~--~~--~--~---



[google-appengine] test server won't work anymore getting errors...

2009-04-04 Thread Aaron

Now I can't even run the test server anymore.

I get a new error:

Traceback (most recent call last):
  File manage.py, line 4, in module
setup_env(manage_py_env=True)
  File /home/aaron/websites/Chillenvillen.com/apps/google_app_engine/
google_appengine/common/appenginepatch/aecmd.py, line 63, in
setup_env
patch_all()
  File /home/aaron/websites/Chillenvillen.com/apps/google_app_engine/
google_appengine/common/appenginepatch/appenginepatcher/patch.py,
line 21, in patch_all
patch_django()
  File /home/aaron/websites/Chillenvillen.com/apps/google_app_engine/
google_appengine/common/appenginepatch/appenginepatcher/patch.py,
line 535, in patch_django
from ragendja import template
  File /home/aaron/websites/Chillenvillen.com/apps/google_app_engine/
google_appengine/common/appenginepatch/ragendja/template.py, line 84,
in module
app_template_dirs = get_app_dirs('templates')
  File /home/aaron/websites/Chillenvillen.com/apps/google_app_engine/
google_appengine/common/appenginepatch/ragendja/apputils.py, line 38,
in get_app_dirs
for appname, module in get_app_modules().items():
  File /home/aaron/websites/Chillenvillen.com/apps/google_app_engine/
google_appengine/common/appenginepatch/ragendja/apputils.py, line 32,
in get_app_modules
if module_name in list_modules(import_module(app)):
  File /home/aaron/websites/Chillenvillen.com/apps/google_app_engine/
google_appengine/common/appenginepatch/ragendja/apputils.py, line 5,
in import_module
return __import__(module_name, {}, {}, [''])
ImportError: No module named contact
r...@demonicproductions:/home/aaron/websites/Chillenvillen.com/apps/
google_app_engine/google_appengine# python manage.py runserver
Traceback (most recent call last):
  File manage.py, line 4, in module
setup_env(manage_py_env=True)
  File /home/aaron/websites/Chillenvillen.com/apps/google_app_engine/
google_appengine/common/appenginepatch/aecmd.py, line 63, in
setup_env
patch_all()
  File /home/aaron/websites/Chillenvillen.com/apps/google_app_engine/
google_appengine/common/appenginepatch/appenginepatcher/patch.py,
line 21, in patch_all
patch_django()
  File /home/aaron/websites/Chillenvillen.com/apps/google_app_engine/
google_appengine/common/appenginepatch/appenginepatcher/patch.py,
line 535, in patch_django
from ragendja import template
  File /home/aaron/websites/Chillenvillen.com/apps/google_app_engine/
google_appengine/common/appenginepatch/ragendja/template.py, line 84,
in module
app_template_dirs = get_app_dirs('templates')
  File /home/aaron/websites/Chillenvillen.com/apps/google_app_engine/
google_appengine/common/appenginepatch/ragendja/apputils.py, line 38,
in get_app_dirs
for appname, module in get_app_modules().items():
  File /home/aaron/websites/Chillenvillen.com/apps/google_app_engine/
google_appengine/common/appenginepatch/ragendja/apputils.py, line 32,
in get_app_modules
if module_name in list_modules(import_module(app)):
  File /home/aaron/websites/Chillenvillen.com/apps/google_app_engine/
google_appengine/common/appenginepatch/ragendja/apputils.py, line 5,
in import_module
return __import__(module_name, {}, {}, [''])
ImportError: No module named contact

that's what the terminal spits out.

I am using linux ubuntu OS.

I have not changed anything. This just happened when I restarted the
test server.

I now got a headache urgh.  I been working on this all day today.

I work for a company and this ceo wants it up as soon as possible and
is losing patience.

How do I fix these errors.

I typed in python manage.py runserver.

then I get what I posted above.

Then it dosen't start the test server.

I was able this morning to run the test server just now for some
reason it dosen't allow me.

I didn't change anything. I just restarted the test server 4 times
today and then this happens.



--~--~-~--~~~---~--~~
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 
google-appengine+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/google-appengine?hl=en
-~--~~~~--~~--~--~---



[google-appengine] Re: Should I take my website somewhere else? - blocked in China

2009-04-04 Thread Andy Freeman

 You have
 nothing of value to contribute to the discussion except to badger the
 people who reported this problem.

On the contrary.  I've pointed out how to actually solve the problem.

  Throughout this, you've acted like Google has some obligation to make
  GAE applications visible in China.  It doesn't.

 And who are you to say it doesn't?

I'm someone who understands that obligations come from laws and
contracts.  Feel free to point to the relevant chapter and verse that
obligates Google to make GAE applications visible in China.  If
there's no such law or contract, what is the basis of the obligation
that you think exists?  (Yes, you're free to not use GAE if Google
can't solve the China access problem, but your freedom to go
elsewhere doesn't obligate Google.  After all, you're free to not use
GAE for any reason, such as not painting their buildings pink, yet no
one thinks that Google is obligated to paint its buildings pink.)

Google may choose to try to make GAE applications visible in China.
(I'm willing to give them the benefit of the doubt and assume that
they're doing what's reasonable.  Feel free to provide evidence to the
contrary.  And no, failing isn't evidence that they're not doing what
they can.)  Google may also suggest work-arounds.

However, absent a contract and/or a law, Google isn't obligated to
make GAE applications visible in China.

 I want the option to host my app in Google's China data center

Good for you.  And Google may, or may not, offer such an option.  Note
may not - they're under no obligation to do so.  (I don't presume to
know the risks and costs of offering such an option.  After all, China
can block at the edge of the data centers, impose conditions, or even
shut them down.)

  Actually, I do know about those and lots of other bandaids.  However,
  I also know how they all fail.

 You know they all fail? How?

Reread what I actually wrote.  I know HOW they all fail, that is, what
the Chinese have done to thwart such bandaids in the past.  This isn't
the first time that China has blocked stuff, so we can look at what
they've done before and see some of what they can and will do.  (I
don't assume that they're unwilling/unable to do things that they
haven't done before.)  While it's possible that this time they won't
use techniques that have worked before, I wouldn't bet that they
won't.  Of course, you're free to act as if they won't.

On Apr 3, 3:35 pm, Andy selforgani...@gmail.com wrote:
  Sure there is - unless you know how to fix the problem.  (Surely
  you're not going to argue that you're reporting an unknown problem.)
  After all, you complained about someone else's posting with This is a
  forum for people to share information on GAE and solve problems.

 Indeed this is a forum for people to share information on GAE and
 solve problems. The original poster reported a problem. You have
 nothing of value to contribute to the discussion except to badger the
 people who reported this problem. Therefore I ask you to either
 contribute or shut up.

 Just like if someone started shouting in a library I'd also ask him to
 cut it out. So in your world that's also pot and kettle huh?

  Throughout this, you've acted like Google has some obligation to make
  GAE applications visible in China.  It doesn't.

 And who are you to say it doesn't?
 I want to hear from a Google employee on their position on this. I'm
 not interested in your misguided opinion on what Google might or might
 not consider is their responsibility or your political/moral drivel.

  That's assuming that the Chinese want appengine apps to get through.
  Since they're blocking, I'm pretty sure that they want to block at
  least some app engine apps and are willing to block them all to block
  the ones that they don't want.
  What are the odds that they haven't tried that?

 Much higher than the odds that you actually know what you're talking
 about.

  SInce China is blocking app engine because it doesn't like certain app
  engine apps and those apps are the most likely to want to want to use
  such an option 

 Who are you to say which apps are most likely to want to use such an
 option?

 I want the option to host my app in Google's China data center and my
 app would have no problem getting approval.

  Actually, I do know about those and lots of other bandaids.  However,
  I also know how they all fail.

 You know they all fail? How? Have you actually tried the solutions?

 Oh wait you couldn't have actually tried them because you don't even
 work for google. You're just another Internet riffraff out to make a
 fool of himself and waste everyone else's time.
--~--~-~--~~~---~--~~
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 
google-appengine+unsubscr...@googlegroups.com
For more options, 

[google-appengine] Re: dev_appserver.py and ListenBackLog directive

2009-04-04 Thread Tim Hoffman

Hi

You really need to read up on the architecture of App Engine, remember
app engine is a long way from the server.  It is not a server like
apache in it's own right.

As far you and your application is concerned there is no such thing,
Any pending connections will be handled in googles infrastructure and
is more than likely going to end up with a new instance starting up.

What would you hope to learn from such a thing if it was available and
what could
you do with the knowledge.

Rgds

Tim


On Apr 5, 5:18 am, Khai khaitd...@gmail.com wrote:
 With Apache we can configure the maximum length of the queue of
 pending connections using it's ListenBackLog directive 
 (http://httpd.apache.org/docs/2.0/mod/mpm_common.html#listenbacklog).

 Can anyone with knowledge of the SDK internals please let me know the
 default maximum length of the queue of pending connections  (this
 would save me some time from having to dig through the source code)?
 Can we make this a configurable command-line option?

 Any responses would be appreciated.

 Thanks
 Khai
--~--~-~--~~~---~--~~
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 
google-appengine+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/google-appengine?hl=en
-~--~~~~--~~--~--~---



[google-appengine] Re: Should I take my website somewhere else? - blocked in China

2009-04-04 Thread Andy


 I'm someone who understands that obligations come from laws and
 contracts.  Feel free to point to the relevant chapter and verse that

 However, absent a contract and/or a law, Google isn't obligated to
 make GAE applications visible in China.

Feel free to hair-split the word obligation.

Does Google have the legal obligation to solve this problem? No. Just
like Google doesn't have any legal obligation to improve this service
or add any new features. Does that mean users should stop posting any
thread that's about improving GAE?

Does that mean you're going to start polluting every single thread in
this forum by posting your 'Google has no legal obligation to do this
drivel?


 Good for you.  And Google may, or may not, offer such an option.  Note
 may not - they're under no obligation to do so.  (I don't presume to
 know the risks and costs of offering such an option.  After all, China
 can block at the edge of the data centers, impose conditions, or even
 shut them down.)

Another zero-value drivel.

Yes Google may or may not offer that solution, just like they may or
may not offer any solution to any other problems raised in this forum

That's why I want to hear from a Google representative on their plan.
Your speculation on what Google may or may not do is just that,
worthless speculation that serves no purpose in this discussion.

You're right to not presume to know though, seeing how you don't
know anything in this matter.

Now just accept that fact and act accordingly.


--~--~-~--~~~---~--~~
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 
google-appengine+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/google-appengine?hl=en
-~--~~~~--~~--~--~---



[google-appengine] Re: Should I take my website somewhere else? - blocked in China

2009-04-04 Thread 秦锋

appspot.com is accessiable in China now, and I found appspot.com has a
china specific host?

Microsoft Windows XP [Version 5.1.2600]
(C) Copyright 1985-2001 Microsoft Corp.

C:\Documents and Settings\fqinping cndata4u.appspot.com

Pinging appspot-china.l.google.com [72.14.235.141] with 32 bytes of
data:

Reply from 72.14.235.141: bytes=32 time=59ms TTL=240
Reply from 72.14.235.141: bytes=32 time=61ms TTL=240
Reply from 72.14.235.141: bytes=32 time=72ms TTL=240
Reply from 72.14.235.141: bytes=32 time=61ms TTL=240

Ping statistics for 72.14.235.141:
Packets: Sent = 4, Received = 4, Lost = 0 (0% loss),
Approximate round trip times in milli-seconds:
Minimum = 59ms, Maximum = 72ms, Average = 63ms

And customize domain doesn't work yet.

On 4月3日, 下午10时04分, Andy Freeman ana...@earthlink.net wrote:
  So no, there's no pot and kettle here at all.

 Sure there is - unless you know how to fix the problem.  (Surely
 you're not going to argue that you're reporting an unknown problem.)
 After all, you complained about someone else's posting with This is a
 forum for people to share information on GAE and solve problems.

 Throughout this, you've acted like Google has some obligation to make
 GAE applications visible in China.  It doesn't.

  And no, there's no need for google to subvert the great firewall in
  order to solve this problem.

 That's assuming that the Chinese want appengine apps to get through.
 Since they're blocking, I'm pretty sure that they want to block at
 least some app engine apps and are willing to block them all to block
 the ones that they don't want.

  Google could talk to the authorities in
  China to see what can be done to get unblocked.

 What are the odds that they haven't tried that?

  It could give App Engine users the option to move their sites to google's 
  data centers
  in China.

 SInce China is blocking app engine because it doesn't like certain app
 engine apps and those apps are the most likely to want to want to use
 such an option 

  Plenty of solutions - just because you don't know about them doesn't mean 
  they
  don't exist.

 Actually, I do know about those and lots of other bandaids.  However,
 I also know how they all fail.

 The fix to the problem is China.  If you're not working on that,
 you're just flapping your gums.

 On Apr 2, 11:10 pm, Andy selforgani...@gmail.com wrote:



  I want to to hear from Google whether it has done anything to solve
  this problem or whether it has any plan to do so.

  I don't want to hear pompous speech from a self-appointed non-google
  spokesperson on his political/moral drivels and that he encourage
  me to take my business elsewhere.

  So no, there's no pot and kettle here at all.

  And no, there's no need for google to subvert the great firewall in
  order to solve this problem. Google could talk to the authorities in
  China to see what can be done to get unblocked. It could give App
  Engine users the option to move their sites to google's data centers
  in China. It could start selling static IP hosting.  Plenty of
  solutions - just because you don't know about them doesn't mean they
  don't exist.

  On Apr 3, 1:54 am, Andy Freeman ana...@earthlink.net wrote:

This is a forum for people to share information on GAE and solve

   problems.

   Pot, kettle and all that unless you know how Google can subvert the
   great firewall.

   On Apr 2, 8:48 pm, Andy selforgani...@gmail.com wrote:

No one is interested in hearing your political/moral preaching.

This is a forum for people to share information on GAE and solve
problems. If you have anything of value to add to the discussion, feel
free to add your bits. If not, you won't be missed.

So you encourage me to take my business elsewhere?

Who are you - are you the spokesperson of Google? Is that the Google
official position on this matter?

Or was that just another failed attempt of you at self-aggrandizement?

On Apr 2, 7:53 pm, Joe Bowman bowman.jos...@gmail.com wrote:

 China and the other countries block content that they deem
 unacceptable for their citizens. In order to get appengine off the
 blacklist, they would have to disallow people to create applications
 which would be deemed offensive to those countries.

 First, looking at it from the pure technical/business view, this would
 require that applications no longer post immediately, and be under
 review at each update at a minimum. This would potentially decrease
 the amount of applications served (thus decreasing revenue) while
 increasing costs to support the system.

 From the political/moral view, Google has been a staunch supporter of
 rights to speech, and it wasn't that long ago that they were chastised
 for bending their own rules to support China at all by allowing the
 filtering of search results. Further expansion of their products
 having such filtering imposed by them would lead to more 

[google-appengine] Re: How can I pass more parameters between GWT and GAE by JSON?

2009-04-04 Thread 秦锋

Thanks!
I'm just wondering how to add more parameters into JSON outside
DataTable, never mind.

On 4月4日, 下午11时56分, Arun Shanker Prasad arunshankerpra...@gmail.com
wrote:
 Hi,

 Can't you just pass the additional parameters also along in JSON
 format? If you are using the paging by key the bookmark can be pickled
 and converted to JSON format.

 I have not tested or used it with any of the below suggestions,

 1. try the normal picked object.
 if that does not work
 2.http://ajaxian.com/archives/json-pickle-serialize-your-complex-python...

 If your question was how to parse JSON in python, Django framework
 comes bundled with simplejson and its included in the GAE SDK.

 Thanks,
 Arun Shanker Prasad.

 On Apr 4, 6:55 pm, 秦锋 feng.w@gmail.com wrote:



  My site uses GAE as background Data source and GWT as front UI, which
  sends request and expects get JSON format data table back to
  Visualization Chart.
  As we known, JSON has specific format definition, thus how can I pass
  extra parameters in on JSON response? such as paging data(bookmark)?
--~--~-~--~~~---~--~~
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 
google-appengine+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/google-appengine?hl=en
-~--~~~~--~~--~--~---



[google-appengine] Re: 308K CSV file cost 20% GAE data space!

2009-04-04 Thread 秦锋

All:

Now my question is If I only use string list property as property,
never index them, is it OK with space cost?
P.S: I still got 3% space (30MB) used for 2500 records (300+KB) csv
files.

On 4月4日, 下午5时18分, Alkis Evlogimenos ('Αλκης Ευλογημένος)
evlogime...@gmail.com wrote:
 Remove the indexes from your index.yaml and run appcfg.py vaccum_indexes.





 On Fri, Apr 3, 2009 at 5:32 PM, 秦锋 feng.w@gmail.com wrote:

  My models:
  class Tag(db.Model):
   name = db.StringProperty()
   refCount = db.IntegerProperty(default = 0)

  class Record(db.Model):
   date = db.DateTimeProperty()
   dfmt = db.StringProperty()
   value = db.FloatProperty()
   unit = db.StringProperty()
   tags = db.StringListProperty()
   source = db.StringProperty()
   inputtime = db.DateTimeProperty(default = datetime.datetime.now())

  class History(db.Model):
   tags = db.StringListProperty()
   qcount = db.IntegerProperty(default = 1)
   found = db.BooleanProperty(default = True)

  And following is my index:

  indexes:

  # AUTOGENERATED

  # This index.yaml is automatically updated whenever the dev_appserver
  # detects that a new type of query is run.  If you want to manage the
  # index.yaml file manually, remove the above marker line (the line
  # saying # AUTOGENERATED).  If you want to manage some indexes
  # manually, move them above the marker line.  The index.yaml file is
  # automatically uploaded to the admin console when you next deploy
  # your application using appcfg.py.

  # Used 8 times in query history.
  - kind: History
   properties:
   - name: found
   - name: qcount

  # Unused in query history -- copied from input.
  - kind: Record
   properties:
   - name: __key__=
   - name: __key__

  # Unused in query history -- copied from input.
  - kind: Record
   properties:
   - name: date
   - name: __key__

  # Used once in query history.
  - kind: Record
   properties:
   - name: date
   - name: tags
   - name: __key__

  # Unused in query history -- copied from input.
  - kind: Record
   properties:
   - name: date
   - name: tags
   - name: tags
   - name: __key__

  # Used 6 times in query history.
  - kind: Record
   properties:
   - name: inputtime
   - name: __key__

  # Unused in query history -- copied from input.
  - kind: Record
   properties:
   - name: tags
   - name: __key__

  # Used 10 times in query history.
  - kind: Record
   properties:
   - name: tags
   - name: date

  # Used 8 times in query history.
  - kind: Record
   properties:
   - name: tags
   - name: date
   - name: __key__

  # Unused in query history -- copied from input.
  - kind: Record
   properties:
   - name: tags
   - name: tags
   - name: __key__

  # Unused in query history -- copied from input.
  - kind: Record
   properties:
   - name: tags
   - name: tags
   - name: date

  # Unused in query history -- copied from input.
  - kind: Record
   properties:
   - name: tags
   - name: tags
   - name: date
   - name: __key__

  # Used 2 times in query history.
  - kind: Record
   properties:
   - name: tags
   - name: tags
   - name: tags
   - name: date

  # Unused in query history -- copied from input.
  - kind: Record
   properties:
   - name: tags
   - name: tags
   - name: tags
   - name: tags
   - name: date

  I'm a newbie here, can I delete index as Unused in history?

  On 4月3日, 下午8时50分, Alkis Evlogimenos ('Αλκης Ευλογημένος)
  evlogime...@gmail.com wrote:
   What do your models look like?

   On Fri, Apr 3, 2009 at 2:00 PM, 秦锋 feng.w@gmail.com wrote:

My App: cndata4u.appspot.com
Now I have imported about 2500 records there, and with only THREE
entities. But I have found that these data have occurred 20% data
store, about 200M!
My original CSV files have only 308K!

Any idea?

   --

   Alkis

 --

 Alkis
--~--~-~--~~~---~--~~
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 
google-appengine+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/google-appengine?hl=en
-~--~~~~--~~--~--~---



[google-appengine] Re: Sitemaps

2009-04-04 Thread Sargis Dallakyan

 Sitemaps can be plain text files as well:http://sitemaps.org/protocol.php

Thank you for pointing this out. I meant to write that it doesn't need
to be an xml file.


 On Sat, Apr 4, 2009 at 10:31 PM, Sargis Dallakyan food@gmail.comwrote:







  Sitemap does need to be an xml file, however, you need to tell GAE
  that its a static file by include a statement similar to this one in
  your app.yaml

  - url: /sitemap
   static_files: sitemap
   upload: sitemap

  Replace sitemap with sitemap.xml, if needed.

  On Apr 4, 1:01 pm, Nora noorhanab...@yahoo.co.uk wrote:
   Hello,
   I need to develop a sitemap for my application.  I understand that it
   is an xml file.  Do I add a link to this file in my website.  I keep
   getting that google crawler is unable to find this sitemap.xml in my
   application.  I created the file autmoatically using google tools and
   just left it with the rest of the filesCould anyone please let me
   know how to handle this sitemap file?

   Thank you very much.

 --

 Alkis- 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 
google-appengine+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/google-appengine?hl=en
-~--~~~~--~~--~--~---



[google-appengine] Re: 308K CSV file cost 20% GAE data space!

2009-04-04 Thread 'Αλκης Ευλογημένος
GAE indexes properties automatically. Your best bet is to store your list of
strings as a Text or Blob with a separator and join/split when you read the
property. Text/Blob properties do not get indexed.

On Sun, Apr 5, 2009 at 3:49 AM, 秦锋 feng.w@gmail.com wrote:


 All:

 Now my question is If I only use string list property as property,
 never index them, is it OK with space cost?
 P.S: I still got 3% space (30MB) used for 2500 records (300+KB) csv
 files.

 On 4月4日, 下午5时18分, Alkis Evlogimenos ('Αλκης Ευλογημένος)
 evlogime...@gmail.com wrote:
  Remove the indexes from your index.yaml and run appcfg.py vaccum_indexes.
 
 
 
 
 
  On Fri, Apr 3, 2009 at 5:32 PM, 秦锋 feng.w@gmail.com wrote:
 
   My models:
   class Tag(db.Model):
name = db.StringProperty()
refCount = db.IntegerProperty(default = 0)
 
   class Record(db.Model):
date = db.DateTimeProperty()
dfmt = db.StringProperty()
value = db.FloatProperty()
unit = db.StringProperty()
tags = db.StringListProperty()
source = db.StringProperty()
inputtime = db.DateTimeProperty(default = datetime.datetime.now())
 
   class History(db.Model):
tags = db.StringListProperty()
qcount = db.IntegerProperty(default = 1)
found = db.BooleanProperty(default = True)
 
   And following is my index:
 
   indexes:
 
   # AUTOGENERATED
 
   # This index.yaml is automatically updated whenever the dev_appserver
   # detects that a new type of query is run.  If you want to manage the
   # index.yaml file manually, remove the above marker line (the line
   # saying # AUTOGENERATED).  If you want to manage some indexes
   # manually, move them above the marker line.  The index.yaml file is
   # automatically uploaded to the admin console when you next deploy
   # your application using appcfg.py.
 
   # Used 8 times in query history.
   - kind: History
properties:
- name: found
- name: qcount
 
   # Unused in query history -- copied from input.
   - kind: Record
properties:
- name: __key__=
- name: __key__
 
   # Unused in query history -- copied from input.
   - kind: Record
properties:
- name: date
- name: __key__
 
   # Used once in query history.
   - kind: Record
properties:
- name: date
- name: tags
- name: __key__
 
   # Unused in query history -- copied from input.
   - kind: Record
properties:
- name: date
- name: tags
- name: tags
- name: __key__
 
   # Used 6 times in query history.
   - kind: Record
properties:
- name: inputtime
- name: __key__
 
   # Unused in query history -- copied from input.
   - kind: Record
properties:
- name: tags
- name: __key__
 
   # Used 10 times in query history.
   - kind: Record
properties:
- name: tags
- name: date
 
   # Used 8 times in query history.
   - kind: Record
properties:
- name: tags
- name: date
- name: __key__
 
   # Unused in query history -- copied from input.
   - kind: Record
properties:
- name: tags
- name: tags
- name: __key__
 
   # Unused in query history -- copied from input.
   - kind: Record
properties:
- name: tags
- name: tags
- name: date
 
   # Unused in query history -- copied from input.
   - kind: Record
properties:
- name: tags
- name: tags
- name: date
- name: __key__
 
   # Used 2 times in query history.
   - kind: Record
properties:
- name: tags
- name: tags
- name: tags
- name: date
 
   # Unused in query history -- copied from input.
   - kind: Record
properties:
- name: tags
- name: tags
- name: tags
- name: tags
- name: date
 
   I'm a newbie here, can I delete index as Unused in history?
 
   On 4月3日, 下午8时50分, Alkis Evlogimenos ('Αλκης Ευλογημένος)
   evlogime...@gmail.com wrote:
What do your models look like?
 
On Fri, Apr 3, 2009 at 2:00 PM, 秦锋 feng.w@gmail.com wrote:
 
 My App: cndata4u.appspot.com
 Now I have imported about 2500 records there, and with only THREE
 entities. But I have found that these data have occurred 20% data
 store, about 200M!
 My original CSV files have only 308K!
 
 Any idea?
 
--
 
Alkis
 
  --
 
  Alkis
 



-- 

Alkis

--~--~-~--~~~---~--~~
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 
google-appengine+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/google-appengine?hl=en
-~--~~~~--~~--~--~---



[google-appengine] Re: Simultaneous Requests

2009-04-04 Thread MajorProgamming

Actually In terms of requests per second I was seeing was around 8
[didn't pay constant refresh attention]... Strangely though, the total
number of requests didn't accurately reflect the actual requests I
performed (in the dashboard -- not in the quota details page). This
may be due to some bug in the system. It doesn't really matter though
because the dashboard view seems to only be an overview, not for
accuracy...

Another thing: no matter how many threads I have there will always be
timeouts. I tried using only one thread (i.e. just running a python
for loop), there were a total of two timeouts. As the number of
threads increase, the number of timeouts increase... Additionally,
when a timeout occurs all the threads seem to fail simultaneously.
They continue to fail for a short period of time, and then they all
resume together.

Just a bit of information that I gathered from quite a bit of
debugging...

On Apr 3, 9:07 pm, Jeff S j...@google.com wrote:
 Julian brings up a good point. I was also wondering what kind of QPS
 you were seeing on your app during one of these tests. Since the
 response from the server likely comes back pretty quickly, ten threads
 could generate quite a few requests in a second.

 Thank you,

 Jeff

 On Apr 2, 8:01 pm, Julian namarojul...@gmail.com wrote:

  You might want to have a look to this App Engine video by Ken
  Ashcraft:http://www.youtube.com/watch?v=dP99fLhGwAU

  App Engine scales, but not instantaneously, so if you want to do a
  large number of requests in parallel, you need to increase the volume
  gradually.

  Julian

  On Apr 3, 4:26 am, MajorProgamming sefira...@gmail.com wrote:

   I believe I'm using python 2.5. The script I posted before is the
   entire script, so no timeouts.

   The server side is simply outputting 'a':
   self.response.out.write('a')
--~--~-~--~~~---~--~~
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 
google-appengine+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/google-appengine?hl=en
-~--~~~~--~~--~--~---