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

2009-04-07 Thread David Wilson

2009/4/8 Andy :
>
> Perhaps psychiatric help would be a better option than disrupting
> Internet forum by openly acting out your Google employee fantasy.
>

Great idea, Andy! Now, how about giving all 6958 of our inboxes a
break from your ego, eh?

Thanks,


David.

>
> >
>



-- 
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] Re: Should I take my website somewhere else? - blocked in China

2009-04-07 Thread Andy


> Not to mention the threats consist of actions that were suggested as
> an alternative. That suggestion was reproached as unacceptable. So it
> is quite confusing.

The really funny thing is that the people who "reproached" the
suggestions as "unacceptable" are all non-Google employees yet acting
like some sort of representatives of Google.

I guess some people just never got over their job rejections from
Google.

Perhaps psychiatric help would be a better option than disrupting
Internet forum by openly acting out your Google employee fantasy.


--~--~-~--~~~---~--~~
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-07 Thread Andy

> When considering a plan to solve a problem, I think that it's
> reasonable to consider whether said plan will actually solve the
> problem.  Why?  Because if a plan doesn't solve the problem, the
> problem still exists.

Quite simply, whatever solution there may or may not be, it is not
your "plan" to "consider".

Do you work for Google? No?

Are you responsible for the operation of Google App Engine? No?

Then whatever Google decides to do or not to do regarding this
problem, it is none of your business.

Your posing as a self-appointed Google spokesperson proclaiming Google
"can't do this" and "If Google does that" serves no purpose other than
as yet another failed attempt at self-aggrandizement of yours.

Was that job rejection letter from Google to you that traumatic that
you still feel the need to pose as a Google spokesperson?

> And, as has been noted, a Google representative posted a solution and
> was ignored.

Indeed. I'd think that once a real Google employee surfaced that would
cut down your urge to act like a Google spokesperson.

But for whatever reason he was ignored and you keep indulging in your
Google spokesperson fantasy.
--~--~-~--~~~---~--~~
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-07 Thread Andy




> Not to mention the threats consist of actions that were suggested as
> an alternative. That suggestion was reproached as unacceptable. So it
> is quite confusing.

The funny thing is that the people who have " reproached" the
suggestions as "unacceptable" are all non-Google employees yet acting
like they were some sort of spokespersons speaking for Google.

I guess some people are just that desperate for a job at Google...

--~--~-~--~~~---~--~~
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-07 Thread Andy


> When considering a plan to solve a problem, I think that it's
> reasonable to consider whether said plan will actually solve the
> problem.  Why?  Because if a plan doesn't solve the problem, the
> problem still exists.

Quite simply, whatever solution there may or may not be, it is not
your "plan" to "consider".

Do you work for Google? No?

Are you responsible for the operation of Google App Engine? No?

Then whatever Google decides to do or not to do regarding this
problem, it is none of your business.

Your posing as a self-appointed Google spokesperson proclaiming Google
"can't do this" and "If Google does that" serves no purpose other than
as yet another failed attempt at self-aggrandizement of yours.

Was that job rejection letter from Google to you that traumatic that
you still feel the need to pose as a Google spokesperson?


--~--~-~--~~~---~--~~
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: Bulkuploader error - No implementation for kind \'%s\'' % kind

2009-04-07 Thread satish

Help, please! anyone? Thanks

On Apr 7, 7:04 am, satish  wrote:
> if main.py were not in the path, import would've failed. Import
> statement worked fine.
>
> On Apr 6, 6:52 pm, 秦锋  wrote:
>
> > main.py is in PYTHONPATH?
> > What's your command looks like?
>
> > On 4月7日, 上午6时28分, satish  wrote:
>
> > > I am trying to use bulkuploader for the first time using the procedure
> > > outlined at this page (http://code.google.com/appengine/docs/python/
> > > tools/uploadingdata.html) but I am receiving the following error. Can
> > > someone please help? Thank you.
>
> > > No implementation for kind \'%s\'' % kind
>
> > > No implementation for kind 'AliasCommand'
>
> > > AliasCommand is a entity in main.py
>
> > > -aliascommand_loader.py (Loader Class) begin --
>
> > > import datetime
> > > from google.appengine.ext import db
> > > import __main__
>
> > > class AliasCommandLoader(Loader):
> > >   def __init__(self):
> > > Loader.__init__(self, 'AliasCommand',
> > > [('alias', str),
> > >  ('command', str)
> > >  ])
> > > -aliascommand_loader.py (Loader Class) end --
>
> > > -main.py (the main module in which AliasCommand entity is
> > > defined) begin --
> > > 
> > > 
> > > class AliasCommand(db.Model):
> > > alias = db.StringProperty(required=False)
> > > command = db.StringProperty(required=False)
> > > createdate = db.DateTimeProperty(auto_now_add=True)
> > > 
> > > 
> > > -main.py (the main module in which AliasCommand entity is
> > > defined) end --
--~--~-~--~~~---~--~~
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-07 Thread Andy



> Which means that if Google allows anything to be hosted in China that
> the Chinese don't like, they'll block GAE-China (and maybe other
> properties to teach Google a lesson or because the external IPs are
> shared).  

So you're speculating that Google China is going to break the laws of
the country it is situated in? And you base this wild speculation
on...?

Hey I got an idea, while you're at spewing out wild, baseless
speculations, why don't you also speculate that "if" Google "allows"
unlawful GAE sites (warez, pirated movies, child porn, online
casino...) to be hosted in their US data center and refuse to take
down those site, what is the US government going to do? Is it going to
do something "to teach Google a lesson"?

Today, Google operates google.cn and takes down from their search
index any sites deemed objectionable by the Chinese government. Yet
according to you Google would all of a sudden refuse to follow the
same procedure when it comes to GAE in China? What's next? Google
invading China and starting WWIII?

>Since the Chinese change their minds about what's
> objectionable fairly often...

"fairly often" according to whom? You?

Clearly you have a problem with the "Chinese" and think they "change
their minds about what's objectionable fairly often".

On the other hand, Google doesn't seem to share that problem. They set
up google.cn a long time ago and have no problem working with the
"Chinese" to keep out non-compliant material from their search index
there.

Google.cn is up and running just fine, hard to believe huh since the
"Chinese" are supposed to "change their minds about what's
objectionable fairly often"...

Lesson for you: don't project your own problems onto others


> Yes, the Chinese may tell Google what applications are objectionable
> today and let Google move them.

No "may" at all.

the "Chinese" are already telling Google what sites are objectionable
and Google remove them from the search index google.cn

How else did you think google.cn is supposed to operate?

Your ignorance about China and Google is getting more and more
laughable by the minute.

--~--~-~--~~~---~--~~
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: New App Engine Java and Python forums

2009-04-07 Thread ben

Good job.

On 4月8日, 上午11时43分, "Amanda (Google)"  wrote:
> Greetings App Engine community!
>
> We've just launched Java language support on App Engine in addition to
> Python. To make it easy for language specific discussions, we have
> created new forums for each languages. The main google-appengine forum
> will continue to exist as a forum for general discussions on App
> Engine. Please subscribe to the new forums below to participate in
> language specific discussions:
>
> For App Engine for Java 
> discussion:http://groups.google.com/group/google-appengine-java
>
> For App Engine Python 
> discussionhttp://groups.google.com/group/google-appengine-python
>
> Thank you and happy coding!
>
> The App Engine Team
--~--~-~--~~~---~--~~
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: New App Engine Java and Python forums

2009-04-07 Thread Chen Jie

congratulate! (why the java sdk version is 1.2.0 :) )

On Apr 8, 11:43 am, "Amanda (Google)"  wrote:
> Greetings App Engine community!
>
> We've just launched Java language support on App Engine in addition to
> Python. To make it easy for language specific discussions, we have
> created new forums for each languages. The main google-appengine forum
> will continue to exist as a forum for general discussions on App
> Engine. Please subscribe to the new forums below to participate in
> language specific discussions:
>
> For App Engine for Java 
> discussion:http://groups.google.com/group/google-appengine-java
>
> For App Engine Python 
> discussionhttp://groups.google.com/group/google-appengine-python
>
> Thank you and happy coding!
>
> The App Engine Team
--~--~-~--~~~---~--~~
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: Does it support Ajax Java Framework? ex. GWT, ZK

2009-04-07 Thread Jason

Hi Robbie. For questions about the newly-announced SDK and runtime for
Java, please use the new Google App Engine for Java forum at
http://groups.google.com/group/google-appengine-java/topics.

I'm not familiar with ZK (I'll try to follow up on this and get back
to you), but App Engine for Java is fully compatible with GWT, yes,
and you can upload your own .jar files.

Cheers!
- Jason

On Apr 7, 9:09 pm, Robbie Cheng  wrote:
> It will be great if it supports Java Ajax frameworks, for example GWT,
> ZK, and others?
> Both of them demonstrates great ability to enrich web application.
>
> Or can we upload our own jar files?
>
> Thanks,
> Robbie
--~--~-~--~~~---~--~~
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: MySQL in the cloud?

2009-04-07 Thread Ian Lewis

Ben,

The short answer is no.

The long answer is no, MySQL doesn't scale automatically so GAE only
supports the datastore which is based on Google's scalable Big Table
implementation.

Ian

On Wed, Apr 8, 2009 at 1:26 PM, Ben  wrote:
>
> Can we run a mysql database in the engine?
>
> >
>



-- 
===
株式会社ビープラウド  イアン・ルイス
〒150-0012
東京都渋谷区広尾1-11-2アイオス広尾ビル604
email: ianmle...@beproud.jp
TEL:03-5795-2707
FAX:03-5795-2708
http://www.beproud.jp/
===

--~--~-~--~~~---~--~~
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: Does it support Ajax Java Framework? ex. GWT, ZK

2009-04-07 Thread Ian Lewis

Robbie,

Please check out the documentation. The java applications are deployed
as a java servlet container (war file et. al.)

http://code.google.com/appengine/docs/java/gettingstarted/introduction.html

GAE is server side so it has nothing to do with GWT or client side
applications but the new Google Plugin for eclipse lets you write all
your code in Java and supports GWT.

http://code.google.com/eclipse/

Ian

On Wed, Apr 8, 2009 at 1:09 PM, Robbie Cheng  wrote:
>
> It will be great if it supports Java Ajax frameworks, for example GWT,
> ZK, and others?
> Both of them demonstrates great ability to enrich web application.
>
> Or can we upload our own jar files?
>
> Thanks,
> Robbie
>
> >
>



-- 
===
株式会社ビープラウド  イアン・ルイス
〒150-0012
東京都渋谷区広尾1-11-2アイオス広尾ビル604
email: ianmle...@beproud.jp
TEL:03-5795-2707
FAX:03-5795-2708
http://www.beproud.jp/
===

--~--~-~--~~~---~--~~
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] MySQL in the cloud?

2009-04-07 Thread Ben

Can we run a mysql database in the engine?

--~--~-~--~~~---~--~~
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] Does it support Ajax Java Framework? ex. GWT, ZK

2009-04-07 Thread Robbie Cheng

It will be great if it supports Java Ajax frameworks, for example GWT,
ZK, and others?
Both of them demonstrates great ability to enrich web application.

Or can we upload our own jar files?

Thanks,
Robbie

--~--~-~--~~~---~--~~
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] New App Engine Java and Python forums

2009-04-07 Thread Amanda (Google)

Greetings App Engine community!

We've just launched Java language support on App Engine in addition to
Python. To make it easy for language specific discussions, we have
created new forums for each languages. The main google-appengine forum
will continue to exist as a forum for general discussions on App
Engine. Please subscribe to the new forums below to participate in
language specific discussions:

For App Engine for Java discussion:
http://groups.google.com/group/google-appengine-java

For App Engine Python discussion
http://groups.google.com/group/google-appengine-python

Thank you and happy coding!

The App Engine Team
--~--~-~--~~~---~--~~
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: Noobie with google app engine. Need some help.

2009-04-07 Thread Ray Malone

Does the app actually have back end dynamic code or is the whole thing
css and html?  If so, I would start from scratch and download the sdk
and run it as it describes.  I built many apps using ASP and one using
PHP over the last 10 years.  I picked up the environment quickly.  I
don't use the patch, it's way to complicated.  I've built several apps
on App Engine now and find it easy to use besides the fun limits.  App
Engine lets you create a static directory for all files.  I would
place the HTML and CSS into this directory and start from scratch with
a new project.



On Apr 7, 4:40 pm, Aaron  wrote:
> ya that is where I am at right now.   I am trying to get my computer
> to a point where I can then focus on getting the site uploaded.
>
> I am having problems getting the scripts that the previous coder made
> and also getting manage.py to see or find SDK of  google app engine.
>
> I asked the ceo to ask the old programmer about what he meant about
> path stuff.
>
> So currently I followed his directions and put manage.py in the app
> folder but when I ran it in terminal I get a Cannot find SDK  error.
>
> I mean it's frustrating. I spent about 3 weeks and I am only getting
> 75 bucks for this. It took up alot of my time just to download the kit
> and install it.
>
> and do that Django package installation. and other packages. Now after
> doing that. I took a look at the website files given to me from the
> previous programmer.
>
> I am struggling on getting the development area to have no errors so I
> can focus on the coding part. I have some experience with python and
> do know the lango.
>
> That's not the problem. I just have to look at how the pervious
> programmer stored data. I don't have problems with doing the changes
> to the site and uploading it.
>
> I am doing this will going to college full time so I am stressed out.
> The ceo even calls me at times at midnight asking how far I am on the
> project.
>
> He told me he is getting concern about the project.
>
> At the start of the job I was never told I had to use google apps that
> was unstil I was done with the website addons coded in css and html on
> my server.
>
> I then thought he had a hosting services where I just use a panel to
> upload the files. Yet I was wrong he tells me he uses google servers.
> I then was like what?
>
> I never knew google does that. I never heard anything about that. I
> ask him if he was sure it's google.  He said he was pretty sure.
>
> So I thought that google must have it and would provide a upload
> cpanel to load in the scripts.
>
> So I ask for the login and stuff and he made an account and then
> contacted the old program to get guided on what to do to make my
> account.
>
> Then he told me I had to download google apps engine. I then knew that
> this must be something big. I was thinking in my head why would a
> hosting serivce provider need to give a engine out.
>
> So then he told me out flat that I need to know python and know how to
> use google apps engine. I told I know python but never done anything
> heavy with it.
>
> I never used google apps and don't know where to go.
>
> So he said don't worry if you have questions I can ask the old
> programmer.
>
> So this is where we are at. Usally when I ask the ceo to ask something
> to the old programmer this takes time to get a reply.
>
> Cause the old programmer isn't working at this company anymore and I
> am sure he looks at his e-mail later on in the day.
>
> So this going back and forth is costing me time and the ceo is getting
> impatient.
>
> from what I know. I don't have to code anything heavily. I just have
> to make modifications and that is it.
>
> yet still have that error where manage.py dosen't find the SDK of
> google apps even though google apps is installed on my system.
>
> So looks like the manage.py dosen't know where google apps is located
> for some reason.
>
> I don't know if I have to add  a path on manage.py to point to where
> the python script of the SDK is located at?
>
> On Apr 7, 3:56 pm, dartdog1  wrote:
>
> > It is not easy.. 1st you need to get your machine set to use the
> > Google App engine SDK and development server... I put my experience
> > with that herehttp://tombrander.wordpress.com... then you need to get
> > your current version of the app running there... from other messages I
> > see you have left it seems that you have problems at that point...so
> > get those solved... If you don't have a useful development environment
> > your going to have a long road.. I've found Eclipse with Pydev to be
> > very helpful but it too has a learning curve.
>
> > I'm currently struggling with Google App engine patch and Django
> > examples but the above steps are how I got that far. FWIW, Finding the
> > files for modifying code within Django is not very easy and my guess
> > id that if you are using the app-engine patch you probably got Django
> > as well,, so looking at that doccumentation might help...
>
> > Good lu

[google-appengine] Re: app.yalm static dir's url arguments?

2009-04-07 Thread Lee Olayvar
Ah, that was a problem with my example, not my code. My real problem, was
with not using static_files.

Thanks!

2009/4/7 Alkis Evlogimenos ('Αλκης Ευλογημένος) 

> http://example.com/static/dynamic_dir_one/css/style.css ==
> /static/dynamic_dir_one/html/css/style.css- url:
>
> /static/(.+)/html/(.*)
>   static_dir: /static/\1/html/\2
>
> Your regexp rule does not match your path. Also the rule you want is
> static_files not static_dir:
> /static/(.+)/*css*/(.*)
>   static_*files*: /static/\1/*css*/\2
>
>
> On Tue, Apr 7, 2009 at 3:31 PM, Lee Olayvar  wrote:
>
>> I'm having a bit of trouble matching a url argument, perhaps someone can
>> tell me what im doing wrong?
>>
>> The example i am roughly following is:
>>
>> handlers:
>>
>>
>> - url: /item-(.*?)/category-(.*)
>>   static_files: archives/\2/items/\1
>>
>>
>> So the problem is i have a directory where there is a "dynamic" in the
>> middle of static directories, which means i need to use a url argument of
>> sorts. Some examples of what this looks like, with the url on the left and
>> directory on the right, would be:
>>
>> http://example.com/static/dynamic_dir_one/css/style.css ==
>> /static/dynamic_dir_one/html/css/style.css
>>  http://example.com/static/dynamic_dir_two/css/style.css ==
>> /static/dynamic_dir_two/html/css/style.css
>>
>> Now its that dynamic dir in the middle causing problems.
>>
>> Here is the app.yaml code i am attempting to use to solve this:
>>
>> - url: /static/(.+)/html/(.*)
>>   static_dir: /static/\1/html/\2
>>
>> What is wrong with that? Now i havent used regex in atleast 3 or 4 years,
>> so im having a hell of a time figuring it out again, but doesn't that equate
>> to:
>>
>> /static/(any character except linebreaks up to "/")/html/(anything else)
>>
>> Any ideas? I'd appreciate a hint at what im doing wrong.
>>
>> Thanks,
>> Lee
>>
>>
>>
>
>
> --
>
> Alkis
>
> >
>


-- 
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: clientlogin on localhost

2009-04-07 Thread Jeff S

Hi!

Sounds like a useful combination, and I'd need to know a bit more.
When you are requesting the client login token, what are the
parameters you are sending (minus email and password)? Also, when
sending the token, what server are you making the request to, is it
appengine.google.com, yourapp.appspot.com, or one of the Google Data
APIs?

Thank you,

Jeff

On Apr 6, 8:13 am, "c_greger...@mac.com"  wrote:
> Hi there,
>
> Using Eclipse on GAE and debugging a clientlogin from an iPhone.
>
> I can login on the appspot server but when working on the local server
> with localhost I get the login screen and therefore not able to use
> clientlogin.
>
> appspot.com procedure
> 1) get token
> 2) get cookie
> 3) call the method with token
>
> but on local host?
>
> Any idea?
> Thanks in advance!
--~--~-~--~~~---~--~~
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: Date Range GQL not working.

2009-04-07 Thread niklas

10 days history from now should be
startdatetime = datetime.now() - timedelta (days = 10)
or gql with integer form and datetime
where pubdate < DATETIME(2009,3,2) and pubdate > DATETIME(2009,3,1)
order by pubdate desc
2 more date range query discussions + the python datetime manual have
more examples
http://groups.google.com/group/google-appengine/browse_thread/thread/45d460da135597dc/f386d5f7cbcacbf0?hl=en&q=#f386d5f7cbcacbf0
http://code.google.com/appengine/articles/paging.html
Datastore errors in dataview can occur if entities are removed and
references didn't update.
best regards
Niklas
On Apr 8, 6:00 am, Benjamin Ortuzar  wrote:
> Hi Niclas,
>
> I tried your remomendations.
>
>   data = myData.all().filter("mytype=", type)
> is returning all the correct that. as soon as i add:
>
>  .filter("pubdate >", startDate)
>
> it starts going wrong.
>
> I also changed:
>
>   endDate = datetime.datetime.today()  //so it is a datetime instead
> of date
>
> It seems that the date filter is not working very well.
>
> I checked all the data in dataviewer, and its fine. For some reason i
> get errors randomly when queriing in dataviewer,even if the syntaxis
> is correct.
>
> When I execute this query:
> SELECT * FROM myData WHERE type = '1' ORDER BY pubdate DESC
>
> I dont see the date after going trough all the pages in dataViewer.
>
> But if I search for this:
>
> SELECT * FROM myData WHERE type = '1'
>
> I see the result for the missing date in the first page of dataViewer.
>
> I went inside the entity that was missing, clicked on Save Entity, and
> now its appearing under my filtered searches.
>
> What do you suggest? My data was uploaded using the google bulkload
> python script, and it run successfully with no errors.
>
> Thanks,
> ben
>
> On Apr 7, 4:18 pm, niklas  wrote:
>
> > On 6 Apr, 20:47, Benjamin Ortuzar  wrote:
>
> > > Hi gents,
>
> > > Im trying to search for some codes within a date range, but some dates
> > > that exist in the database are not being returned by the query. Here
> > > is an extract of the code in using.
>
> > >             deltaDays = timedelta(days= 10)
> > >             endDate = datetime.date.today()
> > >             startDate = endDate - deltaDays
>
> > >             result = db.GqlQuery(
> > >                 "SELECT * FROM myData WHERE mytype = :1 AND pubdate>= :2 
> > > and pubdate <= :3", type, startDate, endDate
>
> > >                     )
>
> > > class myData(db.Model):
> > >     mytype = db.StringProperty(required=True)
> > >     value =  db.FloatProperty(required=True)
> > >     pubdate = db.DateTimeProperty(required=True)
>
> > > The script returns :
>
> > >  2009-03-18 00:00:00
> > > (missing date in results: 2009-03-20 data exists in database)
> > >  2009-03-23 00:00:00
> > >  2009-03-24 00:00:00
> > >  2009-03-25 00:00:00
> > >  2009-03-26 00:00:00
> > > (missing date in results: 2009-03-27 data exists in database)
> > >  2009-03-30 00:00:00
> > > (missing date in results: 2009-03-31. data exists in database)
> > >  2009-04-01 00:00:00
> > >  2009-04-02 00:00:00
> > >  2009-04-03 00:00:00
> > >  2009-04-06 00:00:00
>
> > > Any help is appreciated. thanks.
>
> > Hi Benjamin
> > Try fetch the range in other ways with filter or DATETIME wrapper
> > data = myData.all().filter("mytype=", type).filter("pubdate >",
> > startDate)
> > or
> > result = db.GqlQuery("SELECT * FROM myData WHERE mytype = :1 AND
> > pubdate >= DATETIME(2009,03,18)", type)
> > or use dataviewer directly to see differences between rows.
> > Regards
> > Niklas
--~--~-~--~~~---~--~~
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: Noobie with google app engine. Need some help.

2009-04-07 Thread dartdog1

If you will stop trying to shortcut the process,, try just getting the
sdk running with the supplied tutorial,, the environment is very
unlike the "normal" one shortcuts don't work. The whole model is
different, and the same applies to uploading a modified site...again
look at my stuff I think I'm just a bit ahead..!! not much but at
least have one app up and running at http://tombrander.appspot.com The
basic tutorial of how I did it is on the wordpress site.

On Apr 7, 3:40 pm, Aaron  wrote:
> ya that is where I am at right now.   I am trying to get my computer
> to a point where I can then focus on getting the site uploaded.
>
> I am having problems getting the scripts that the previous coder made
> and also getting manage.py to see or find SDK of  google app engine.
>
> I asked the ceo to ask the old programmer about what he meant about
> path stuff.
>
> So currently I followed his directions and put manage.py in the app
> folder but when I ran it in terminal I get a Cannot find SDK  error.
>
> I mean it's frustrating. I spent about 3 weeks and I am only getting
> 75 bucks for this. It took up alot of my time just to download the kit
> and install it.
>
> and do that Django package installation. and other packages. Now after
> doing that. I took a look at the website files given to me from the
> previous programmer.
>
> I am struggling on getting the development area to have no errors so I
> can focus on the coding part. I have some experience with python and
> do know the lango.
>
> That's not the problem. I just have to look at how the pervious
> programmer stored data. I don't have problems with doing the changes
> to the site and uploading it.
>
> I am doing this will going to college full time so I am stressed out.
> The ceo even calls me at times at midnight asking how far I am on the
> project.
>
> He told me he is getting concern about the project.
>
> At the start of the job I was never told I had to use google apps that
> was unstil I was done with the website addons coded in css and html on
> my server.
>
> I then thought he had a hosting services where I just use a panel to
> upload the files. Yet I was wrong he tells me he uses google servers.
> I then was like what?
>
> I never knew google does that. I never heard anything about that. I
> ask him if he was sure it's google.  He said he was pretty sure.
>
> So I thought that google must have it and would provide a upload
> cpanel to load in the scripts.
>
> So I ask for the login and stuff and he made an account and then
> contacted the old program to get guided on what to do to make my
> account.
>
> Then he told me I had to download google apps engine. I then knew that
> this must be something big. I was thinking in my head why would a
> hosting serivce provider need to give a engine out.
>
> So then he told me out flat that I need to know python and know how to
> use google apps engine. I told I know python but never done anything
> heavy with it.
>
> I never used google apps and don't know where to go.
>
> So he said don't worry if you have questions I can ask the old
> programmer.
>
> So this is where we are at. Usally when I ask the ceo to ask something
> to the old programmer this takes time to get a reply.
>
> Cause the old programmer isn't working at this company anymore and I
> am sure he looks at his e-mail later on in the day.
>
> So this going back and forth is costing me time and the ceo is getting
> impatient.
>
> from what I know. I don't have to code anything heavily. I just have
> to make modifications and that is it.
>
> yet still have that error where manage.py dosen't find the SDK of
> google apps even though google apps is installed on my system.
>
> So looks like the manage.py dosen't know where google apps is located
> for some reason.
>
> I don't know if I have to add  a path on manage.py to point to where
> the python script of the SDK is located at?
>
> On Apr 7, 3:56 pm, dartdog1  wrote:
>
>
>
> > It is not easy.. 1st you need to get your machine set to use the
> > Google App engine SDK and development server... I put my experience
> > with that herehttp://tombrander.wordpress.com... then you need to get
> > your current version of the app running there... from other messages I
> > see you have left it seems that you have problems at that point...so
> > get those solved... If you don't have a useful development environment
> > your going to have a long road.. I've found Eclipse with Pydev to be
> > very helpful but it too has a learning curve.
>
> > I'm currently struggling with Google App engine patch and Django
> > examples but the above steps are how I got that far. FWIW, Finding the
> > files for modifying code within Django is not very easy and my guess
> > id that if you are using the app-engine patch you probably got Django
> > as well,, so looking at that doccumentation might help...
>
> > Good luck, you may have bitten off too much ??
>
> > As I said I'm still struggling... but keeping at it as there se

[google-appengine] Re: Server Error (500) updating indexes

2009-04-07 Thread Jeff S

Are you seeing the 500 error when you make a request to the app, or
during the appcfg update? If you'd like, I can look into more
specifics if you email me your app id.

There is a limit to the number of index entries for a single entity,
so the problem could be an "exploding index" as described here:

http://code.google.com/appengine/docs/python/datastore/queriesandindexes.html#Big_Entities_and_Exploding_Indexes

Thank you,

Jeff

On Apr 6, 10:17 pm, ten_foot_ninja  wrote:
> I've tried vacuuming the index list and updating it, but i keep
> getting Server Error(500) with no more detail.
>
> My index.yaml file seems to work fine from the dev server, any ideas?
>
> Also, are there any limits to the number of indexes I can have?
--~--~-~--~~~---~--~~
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: Questions regarding google apps domains consuming an app...

2009-04-07 Thread andyburke

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

On Apr 6, 2:41 pm, Jeff S  wrote:
> Hi andy,
>
> I think this is a great idea, though it is not currently supported.
> Would you mind filing a feature request in the issue tracker?:
>
> http://code.google.com/p/googleappengine/issues/
>
> Thank you,
>
> Jeff
>
> On Apr 3, 6:43 pm, andyburke  wrote:
>
> > Hi,
>
> > I am working on developing an issue tracker using the appengine and
> > I'd like for people who set up google apps for their domain to be able
> > to add it as one of their services.
>
> > However, I can't seem to find any information about how I should
> > support this.  I had hoped that separate google apps domains would
> > support having their own datastore.  It seems like that's not the
> > case.  I think it would be nice to support that for the following
> > reasons:
>
> > 1) It makes designing my app easier, I don't need to track which
> > google app domain data in the datastore belongs to.
> > 2) It means I don't have access to their data, which might be nice
> > from their point of view.
>
> > Is this kind of thing supported?  Have I totally missed this in my
> > searches?
>
> > Is anyone else interested in this model for storing the data for an
> > app engine app?
>
> > andy

--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
"Google App Engine" group.
To post to this group, send email to google-appengine@googlegroups.com
To unsubscribe from this group, send email to 
google-appengine+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/google-appengine?hl=en
-~--~~~~--~~--~--~---



[google-appengine] Re: Using ReportLab with ZipImport

2009-04-07 Thread Jeff S

Hello Arun Shanker Prasad,

I'm not familiar with ReportLab, but from reading a tiny bit of their
documentation it seems like they are interested in making their
software usable from within App Engine.

(They mention App Engine on this page 
http://www.reportlab.org/downloads.html#reportlab
)

Have you tried contacting the ReportLab developers? It looks this the
issue is related to secure runtime restrictions and are triggered by
the module loader during the import. It would be great if this library
worked on App Engine, so I'm hoping that we collectively will figure
this out. I'm not sure if I'll have time to dig in to this issue, as
much as I'd like to.

Thank you,

Jeff

On Apr 6, 10:23 pm, Arun Shanker Prasad 
wrote:
> Hi,
>
> Anyone got any work-around for my situation? I am stuck at this
> point...
>
> Thanks,
> Arun Shanker Prasad.
>
> On Apr 6, 5:12 pm, Arun Shanker Prasad 
> wrote:
>
> > Hi,
>
> > I have a requirement to generate dynamic PDFs from HTML source. I
> > included the Pisa, html5lib and the reportlab packages for this.
> > Everything works fine in the local environment as long I keep all the
> > packages in the initial source ie I do not zip it.
>
> > Keeping the whole ReportLab package (204 files) might take me way
> > close to the allowed file limit. I tried to convert the ReportLab
> > package into a zip and use zipimport to use it. This causes the
> > following error,
>
> > AttributeError: 'HardenedModulesHook' object has no attribute '_files'
>
> > My source where the imports are called,
> > import sys
> > sys.path.insert(0, 'ho.zip')
> > sys.path.insert(0, 'html5lib.zip')
> > sys.path.insert(0, 'sx.zip')
> > sys.path.insert(0, 'reportlab.zip')
> > import ho.pisa as pisa
>
> > Googled a bit for the solution found another mention of this in issue
> > tracker,http://code.google.com/p/googleappengine/issues/detail?id=1085.
>
> > Can anyone help me get around this problem? I have seen many use
> > reportlab in Google App Engine how do you guys get around this issue??
>
> > Any help will be greatly appreciated.
>
> > Thanks,
> > Arun Shanker Prasad.
--~--~-~--~~~---~--~~
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: index.yaml is not source control friendly

2009-04-07 Thread Jarek Zgoda

I noticed this and I share your pain. I just set a policy to "don't
merge, just update" but this does not make much sense. On the other
way, not having this in repository would make deployment too fragile
process (what if we miss some test and deploy index.yaml without some
index?!).

On 7 Kwi, 19:04, Mahmoud  wrote:
> So it seems that dev_appserver.py keeps updating the comments in
> app.yaml mostly with usage counters. I keep having to diff and revert
> it before making commits, unless the changes were legit additions of
> new autogenerated indices.
>
> I can probably take a look at dev_appserver.py and disable this
> behavior. Any one else noticed this? Do you have any suggestions?
>
> -Mahmoud
--~--~-~--~~~---~--~~
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 a good Google App Engine speak er for Øredev 09

2009-04-07 Thread Magnus Mårtensson

Hey!

I have to admit I know nothing of Google App Engline. Neither will
most of the attendees at Øredev http://oredev.org either.

That's why I need help and we need a good speaker to come to Øredev
this year and help us out! How do I get in touch with the Google
people that develop App Engine? Who is a good community developer on
App Engine that is also a good technical speaker?

I need some help, please!

Get in touch with me here or here: http://blog.noop.se

Cheers

M.

--~--~-~--~~~---~--~~
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: Noobie with google app engine. Need some help.

2009-04-07 Thread Aaron

ya that is where I am at right now.   I am trying to get my computer
to a point where I can then focus on getting the site uploaded.

I am having problems getting the scripts that the previous coder made
and also getting manage.py to see or find SDK of  google app engine.

I asked the ceo to ask the old programmer about what he meant about
path stuff.

So currently I followed his directions and put manage.py in the app
folder but when I ran it in terminal I get a Cannot find SDK  error.

I mean it's frustrating. I spent about 3 weeks and I am only getting
75 bucks for this. It took up alot of my time just to download the kit
and install it.

and do that Django package installation. and other packages. Now after
doing that. I took a look at the website files given to me from the
previous programmer.

I am struggling on getting the development area to have no errors so I
can focus on the coding part. I have some experience with python and
do know the lango.

That's not the problem. I just have to look at how the pervious
programmer stored data. I don't have problems with doing the changes
to the site and uploading it.

I am doing this will going to college full time so I am stressed out.
The ceo even calls me at times at midnight asking how far I am on the
project.

He told me he is getting concern about the project.

At the start of the job I was never told I had to use google apps that
was unstil I was done with the website addons coded in css and html on
my server.

I then thought he had a hosting services where I just use a panel to
upload the files. Yet I was wrong he tells me he uses google servers.
I then was like what?

I never knew google does that. I never heard anything about that. I
ask him if he was sure it's google.  He said he was pretty sure.

So I thought that google must have it and would provide a upload
cpanel to load in the scripts.

So I ask for the login and stuff and he made an account and then
contacted the old program to get guided on what to do to make my
account.

Then he told me I had to download google apps engine. I then knew that
this must be something big. I was thinking in my head why would a
hosting serivce provider need to give a engine out.

So then he told me out flat that I need to know python and know how to
use google apps engine. I told I know python but never done anything
heavy with it.

I never used google apps and don't know where to go.

So he said don't worry if you have questions I can ask the old
programmer.

So this is where we are at. Usally when I ask the ceo to ask something
to the old programmer this takes time to get a reply.

Cause the old programmer isn't working at this company anymore and I
am sure he looks at his e-mail later on in the day.

So this going back and forth is costing me time and the ceo is getting
impatient.

from what I know. I don't have to code anything heavily. I just have
to make modifications and that is it.

yet still have that error where manage.py dosen't find the SDK of
google apps even though google apps is installed on my system.

So looks like the manage.py dosen't know where google apps is located
for some reason.

I don't know if I have to add  a path on manage.py to point to where
the python script of the SDK is located at?

On Apr 7, 3:56 pm, dartdog1  wrote:
> It is not easy.. 1st you need to get your machine set to use the
> Google App engine SDK and development server... I put my experience
> with that herehttp://tombrander.wordpress.com... then you need to get
> your current version of the app running there... from other messages I
> see you have left it seems that you have problems at that point...so
> get those solved... If you don't have a useful development environment
> your going to have a long road.. I've found Eclipse with Pydev to be
> very helpful but it too has a learning curve.
>
> I'm currently struggling with Google App engine patch and Django
> examples but the above steps are how I got that far. FWIW, Finding the
> files for modifying code within Django is not very easy and my guess
> id that if you are using the app-engine patch you probably got Django
> as well,, so looking at that doccumentation might help...
>
> Good luck, you may have bitten off too much ??
>
> As I said I'm still struggling... but keeping at it as there seems to
> be some gold at the end of the rainbow!
>
> On Apr 7, 1:50 pm, Aaron  wrote:
>
> > Is their any instant chat room that can help me with google apps
> > engine?
>
> > On Apr 7, 2:29 pm, Aaron  wrote:
>
> > > I don't think  he means updating.
>
> > > I was given the website application files. I need to modify and also
> > > import my html and css code into this folder on my computer.
>
> > > The problem is when manage.py is in that app folder and when I run it
> > > in terminal I get a error sayin g can't find SDK.
>
> > > yet when I move that manage.py file to the google app engine folder It
> > > finds the SDK  and runs fine well I get also a error saying module
> 

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

2009-04-07 Thread WallyDD

Google is deliberately blocking Cuba, Iran, Sudan and Syria. It is not
these countries doing the blocking. Google is doing the blocking.

The strangest thing is that google.com can be accessed most of the
time from these countries. Adwords/adsense can also be seen.
Is there ANY chance of ANY comment from Google on this?

I am shifting full blame to google on this one.

On Apr 7, 3:27 pm, Joe Bowman  wrote:
> Not to mention the threats consist of actions that were suggested as
> an alternative. That suggestion was reproached as unacceptable. So it
> is quite confusing.
>
> On Apr 7, 2:16 pm, Andy Freeman  wrote:
>
>
>
> > > Some user reported a problem and wanted to know if Google had any plan
> > > to solve it. That equates to wanting a "guarantee" in your world?  Some
> > > kind of twisted world you live in there.
>
> > When considering a plan to solve a problem, I think that it's
> > reasonable to consider whether said plan will actually solve the
> > problem.  Why?  Because if a plan doesn't solve the problem, the
> > problem still exists.
>
> > I am willing to assume that Google is doing what it can reasonably do
> > about this.  The continued complaints suggest that the results of
> > those efforts are inadequate.  And, we've seen "threats" regarding
> > what will happen if Google doesn't come through.  Maybe those people
> > will be satisfied by something short of a guarantee, but 
>
> > And, as has been noted, a Google representative posted a solution and
> > was ignored.
>
> > On Apr 6, 11:33 pm, Andy  wrote:
>
> > > > Yes, I do.
>
> > > I'm glad you finally learn the word "obligation". Too bad you didn't
> > > learn it earlier when you spewed your nonsense that obligation can
> > > only come from "laws and contracts".
>
> > > Feel free to consult a dictionary first next time when you find
> > > yourself once again tempted to use a big word you don't understand.
>
> > > > I'm not angry.
>
> > > Good for you. Definitely worth reporting back to your anger management
> > > counselor
>
> > > > I'm merely pointing out that Google's
> > > > capabilities in this area are limited, that they need to take their
> > > > complaints elsewhere if they want guarantees.
>
> > > Who's talking about "guarantees"?
>
> > > Some user reported a problem and wanted to know if Google had any plan
> > > to solve it. That equates to wanting a "guarantee" in your world? Some
> > > kind of twisted world you live in there.
>
> > > In fact the only person who even brought up the word "guarantee" is
> > > you.
>
> > > Do you always argue against your own strawman like that?
>
> > > > Do you really believe that Google can honor a promise that a given
> > > > site won't be blocked if the Chinese govt wants to block said site?
> > > > (Feel free to assume that the site is hosted in China.)
>
> > > Who's talking about "promise that a given site won't be blocked" other
> > > than you?
>
> > > Once again you're the only person to use words like "guarantees" and
> > > "promise"
>
> > > You must be really busy arguing with your own strawman like that...
>
> > > > I merely pointed out that Google can't do as they ask
>
> > > And you're the spokesperson of Google? self-appointed?
>
> > > This is what the OP asked: "Does Google have a plan for dealing with
> > > this?"
> > > No different than any other threads that are also about reporting
> > > problems and asking for solutions.
>
> > > For whatever reason such a simple question bothers you tremendously.
> > > To such a degree that you felt compelled to spew nonsense such as
> > > "Google can't do as they ask", when in fact you have
> > > no standing to speak for Google on what they can or cannot do.
>
> > > So the real question is why does the simple question "Does Google have
> > > a plan for dealing with this?" bother you so 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: Can not update db

2009-04-07 Thread djidjadji

You must first execute the query before you can access the objects
You can use get() or fetch()

dests = db.GqlQuery( "SELECT * FROM Dj_User WHERE UserID = '4'" )
dests.fetch(1000)
dests[0].UserName = "aaa"# it seems something wrong here
db.put( dests )

[1] http://code.google.com/appengine/docs/python/datastore/gqlqueryclass.html

2009/4/7 saintthor :
>
> dests = db.GqlQuery( "SELECT * FROM Dj_User WHERE UserID = '4'" )
> dests[0].UserName = "aaa"        # it seems something wrong here
> db.put( dests )
>
> print dests[0].UserName
>
> the codes prints "tom", still the old value.
>
> What is wrong with it?
>
> >
>

--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
"Google App Engine" group.
To post to this group, send email to google-appengine@googlegroups.com
To unsubscribe from this group, send email to 
google-appengine+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/google-appengine?hl=en
-~--~~~~--~~--~--~---



[google-appengine] Re: Noobie with google app engine. Need some help.

2009-04-07 Thread dartdog1

It is not easy.. 1st you need to get your machine set to use the
Google App engine SDK and development server... I put my experience
with that here http://tombrander.wordpress.com... then you need to get
your current version of the app running there... from other messages I
see you have left it seems that you have problems at that point...so
get those solved... If you don't have a useful development environment
your going to have a long road.. I've found Eclipse with Pydev to be
very helpful but it too has a learning curve.

I'm currently struggling with Google App engine patch and Django
examples but the above steps are how I got that far. FWIW, Finding the
files for modifying code within Django is not very easy and my guess
id that if you are using the app-engine patch you probably got Django
as well,, so looking at that doccumentation might help...

Good luck, you may have bitten off too much ??

As I said I'm still struggling... but keeping at it as there seems to
be some gold at the end of the rainbow!

On Apr 7, 1:50 pm, Aaron  wrote:
> Is their any instant chat room that can help me with google apps
> engine?
>
> On Apr 7, 2:29 pm, Aaron  wrote:
>
>
>
> > I don't think  he means updating.
>
> > I was given the website application files. I need to modify and also
> > import my html and css code into this folder on my computer.
>
> > The problem is when manage.py is in that app folder and when I run it
> > in terminal I get a error sayin g can't find SDK.
>
> > yet when I move that manage.py file to the google app engine folder It
> > finds the SDK  and runs fine well I get also a error saying module
> > contact is missing.
>
> > So I told the programmer that problem. He told me it needs to stay in
> > that app folder.
>
> > Then to fix the cannot find SDK error I have to use that path stuff.
>
> > I wasn't sure if  he means  to add that as code to manage.py  or to
> > type that in the terminal.
>
> > Or if it was a example of where the path should be.
>
> > I am not totally sure.   I just have to figure this all out quickly.
> > The ceo is very ticked off and really wants it done really soon.
>
> > He is now asking me when I will be done with making my changes to the
> > site. He already got another project for me.
>
> > I am not making big bucks but I need some experience on my resume
> > because alot of jobs turned me down because I didn't have industry
> > experience.
>
> > So this is the only reason I am doing this. I am just getting paid 75
> > bucks for the first modifications.
>
> > So I really do need a faster way to understand how to use google
> > engine.
>
> > I have experience in html, css, php, apache, mysql, microsoft access.
> > I do have experience with python.
>
> > I don't hever experience with google apps engine. I am not even well
> > experienced with python to work on big software apps.
>
> > So if you do know php and what I basicly know. I would like someone to
> > explain it in terms what I know saying for like php mysql
>
> > you would use code like this for python/google apps etc.
>
> > I wish I had more time where I can look at the guides and take my time
> > learning and experiencing google apps but I don't.
>
> > the ceo knows I don't have experience with google.
>
> > I am also the only one doing it cheap for him. Others asked him for
> > 1,500 bucks.
>
> > SO currently I am stressing out. He wants me to say a deadline but yet
> > I can't really say when I will be finished unless I have control and
> > understand the structure of the google app engine so I would know what
> > to do and work on it quickly.
>
> > Last night I didn't get to go to bed cause while I am trying to learn
> > this stuff I was also studying for exams for college classes and also
> > had to do a tax problem.
>
> > So I  hope you understand my stress level. I wish I had more time but
> > I don't I normally don't ask alot of questions but since I have
> > limited time I need to know what links I would need so I don't waste
> > any time looking at something that I wouldn't need at all to learn.
>
> > On Apr 7, 11:18 am, Ray Malone  wrote:
>
> > > Take a look at the documentation for uploading an app 
> > > herehttp://code.google.com/appengine/docs/python/tools/uploadinganapp.html
>
> > > However, I think you are using the app engine patch and may need this
> > > instead.  http://code.google.com/p/app-engine-patch/wiki/GettingStarted
>
> > > I don't use the path and don't have experience setting it up, but this
> > > should help.
>
> > > On Apr 7, 10:52 am, Aaron  wrote:
>
> > > > HI, I am very confused on how to use google app engine. I have a job
> > > > as a vp of technlology. I was a website developer.
>
> > > > I only know html,css, php, python.  I never heavily used python so I
> > > > am rusty with it.
>
> > > > I only had experience with using apache and mysql.
>
> > > > I am new to google application and have been doing research on it. I
> > > > found it uses a different database system.
>
> >

[google-appengine] Re: Date Range GQL not working.

2009-04-07 Thread Benjamin Ortuzar

Hi Niclas,

I tried your remomendations.

  data = myData.all().filter("mytype=", type)
is returning all the correct that. as soon as i add:

 .filter("pubdate >", startDate)

it starts going wrong.

I also changed:

  endDate = datetime.datetime.today()  //so it is a datetime instead
of date

It seems that the date filter is not working very well.

I checked all the data in dataviewer, and its fine. For some reason i
get errors randomly when queriing in dataviewer,even if the syntaxis
is correct.

When I execute this query:
SELECT * FROM myData WHERE type = '1' ORDER BY pubdate DESC

I dont see the date after going trough all the pages in dataViewer.

But if I search for this:

SELECT * FROM myData WHERE type = '1'

I see the result for the missing date in the first page of dataViewer.

I went inside the entity that was missing, clicked on Save Entity, and
now its appearing under my filtered searches.

What do you suggest? My data was uploaded using the google bulkload
python script, and it run successfully with no errors.

Thanks,
ben

On Apr 7, 4:18 pm, niklas  wrote:
> On 6 Apr, 20:47, Benjamin Ortuzar  wrote:
>
>
>
> > Hi gents,
>
> > Im trying to search for some codes within a date range, but some dates
> > that exist in the database are not being returned by the query. Here
> > is an extract of the code in using.
>
> >             deltaDays = timedelta(days= 10)
> >             endDate = datetime.date.today()
> >             startDate = endDate - deltaDays
>
> >             result = db.GqlQuery(
> >                 "SELECT * FROM myData WHERE mytype = :1 AND pubdate>= :2 
> > and pubdate <= :3", type, startDate, endDate
>
> >                     )
>
> > class myData(db.Model):
> >     mytype = db.StringProperty(required=True)
> >     value =  db.FloatProperty(required=True)
> >     pubdate = db.DateTimeProperty(required=True)
>
> > The script returns :
>
> >  2009-03-18 00:00:00
> > (missing date in results: 2009-03-20 data exists in database)
> >  2009-03-23 00:00:00
> >  2009-03-24 00:00:00
> >  2009-03-25 00:00:00
> >  2009-03-26 00:00:00
> > (missing date in results: 2009-03-27 data exists in database)
> >  2009-03-30 00:00:00
> > (missing date in results: 2009-03-31. data exists in database)
> >  2009-04-01 00:00:00
> >  2009-04-02 00:00:00
> >  2009-04-03 00:00:00
> >  2009-04-06 00:00:00
>
> > Any help is appreciated. thanks.
>
> Hi Benjamin
> Try fetch the range in other ways with filter or DATETIME wrapper
> data = myData.all().filter("mytype=", type).filter("pubdate >",
> startDate)
> or
> result = db.GqlQuery("SELECT * FROM myData WHERE mytype = :1 AND
> pubdate >= DATETIME(2009,03,18)", type)
> or use dataviewer directly to see differences between rows.
> Regards
> Niklas

--~--~-~--~~~---~--~~
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: index.yaml is not source control friendly

2009-04-07 Thread Mahmoud

I meant "index.yaml" in the post body.

On Apr 7, 1:04 pm, Mahmoud  wrote:
> So it seems that dev_appserver.py keeps updating the comments in
> app.yaml mostly with usage counters. I keep having to diff and revert
> it before making commits, unless the changes were legit additions of
> new autogenerated indices.
>
> I can probably take a look at dev_appserver.py and disable this
> behavior. Any one else noticed this? Do you have any suggestions?
>
> -Mahmoud
--~--~-~--~~~---~--~~
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-07 Thread Joe Bowman

Not to mention the threats consist of actions that were suggested as
an alternative. That suggestion was reproached as unacceptable. So it
is quite confusing.

On Apr 7, 2:16 pm, Andy Freeman  wrote:
> > Some user reported a problem and wanted to know if Google had any plan
> > to solve it. That equates to wanting a "guarantee" in your world?  Some
> > kind of twisted world you live in there.
>
> When considering a plan to solve a problem, I think that it's
> reasonable to consider whether said plan will actually solve the
> problem.  Why?  Because if a plan doesn't solve the problem, the
> problem still exists.
>
> I am willing to assume that Google is doing what it can reasonably do
> about this.  The continued complaints suggest that the results of
> those efforts are inadequate.  And, we've seen "threats" regarding
> what will happen if Google doesn't come through.  Maybe those people
> will be satisfied by something short of a guarantee, but 
>
> And, as has been noted, a Google representative posted a solution and
> was ignored.
>
> On Apr 6, 11:33 pm, Andy  wrote:
>
> > > Yes, I do.
>
> > I'm glad you finally learn the word "obligation". Too bad you didn't
> > learn it earlier when you spewed your nonsense that obligation can
> > only come from "laws and contracts".
>
> > Feel free to consult a dictionary first next time when you find
> > yourself once again tempted to use a big word you don't understand.
>
> > > I'm not angry.
>
> > Good for you. Definitely worth reporting back to your anger management
> > counselor
>
> > > I'm merely pointing out that Google's
> > > capabilities in this area are limited, that they need to take their
> > > complaints elsewhere if they want guarantees.
>
> > Who's talking about "guarantees"?
>
> > Some user reported a problem and wanted to know if Google had any plan
> > to solve it. That equates to wanting a "guarantee" in your world? Some
> > kind of twisted world you live in there.
>
> > In fact the only person who even brought up the word "guarantee" is
> > you.
>
> > Do you always argue against your own strawman like that?
>
> > > Do you really believe that Google can honor a promise that a given
> > > site won't be blocked if the Chinese govt wants to block said site?
> > > (Feel free to assume that the site is hosted in China.)
>
> > Who's talking about "promise that a given site won't be blocked" other
> > than you?
>
> > Once again you're the only person to use words like "guarantees" and
> > "promise"
>
> > You must be really busy arguing with your own strawman like that...
>
> > > I merely pointed out that Google can't do as they ask
>
> > And you're the spokesperson of Google? self-appointed?
>
> > This is what the OP asked: "Does Google have a plan for dealing with
> > this?"
> > No different than any other threads that are also about reporting
> > problems and asking for solutions.
>
> > For whatever reason such a simple question bothers you tremendously.
> > To such a degree that you felt compelled to spew nonsense such as
> > "Google can't do as they ask", when in fact you have
> > no standing to speak for Google on what they can or cannot do.
>
> > So the real question is why does the simple question "Does Google have
> > a plan for dealing with this?" bother you so 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] May I increase a size of single call to API of 1Mb?

2009-04-07 Thread Dimedrol

Hello!
I need to upload several pictures at once and save them in a
datastore.

But API is not allow me to do that, due to total images size.
For example I cannot upload from my form 2 images of 700kb size
(2x700kb=1.4mb > 1mb)

Can I increase this size for a money?

Or, maybe there are some workarounds for that?

--~--~-~--~~~---~--~~
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: Support for a new runtime language

2009-04-07 Thread dafire

I guess there will be huge announcements in may

http://code.google.com/intl/de-DE/events/io/
--~--~-~--~~~---~--~~
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: app.yalm static dir's url arguments?

2009-04-07 Thread 'Αλκης Ευλογημένος
http://example.com/static/dynamic_dir_one/css/style.css ==
/static/dynamic_dir_one/html/css/style.css- url:

/static/(.+)/html/(.*)
  static_dir: /static/\1/html/\2

Your regexp rule does not match your path. Also the rule you want is
static_files not static_dir:
/static/(.+)/*css*/(.*)
  static_*files*: /static/\1/*css*/\2


On Tue, Apr 7, 2009 at 3:31 PM, Lee Olayvar  wrote:

> I'm having a bit of trouble matching a url argument, perhaps someone can
> tell me what im doing wrong?
>
> The example i am roughly following is:
>
> handlers:
>
>
> - url: /item-(.*?)/category-(.*)
>   static_files: archives/\2/items/\1
>
>
> So the problem is i have a directory where there is a "dynamic" in the
> middle of static directories, which means i need to use a url argument of
> sorts. Some examples of what this looks like, with the url on the left and
> directory on the right, would be:
>
> http://example.com/static/dynamic_dir_one/css/style.css ==
> /static/dynamic_dir_one/html/css/style.css
>  http://example.com/static/dynamic_dir_two/css/style.css ==
> /static/dynamic_dir_two/html/css/style.css
>
> Now its that dynamic dir in the middle causing problems.
>
> Here is the app.yaml code i am attempting to use to solve this:
>
> - url: /static/(.+)/html/(.*)
>   static_dir: /static/\1/html/\2
>
> What is wrong with that? Now i havent used regex in atleast 3 or 4 years,
> so im having a hell of a time figuring it out again, but doesn't that equate
> to:
>
> /static/(any character except linebreaks up to "/")/html/(anything else)
>
> Any ideas? I'd appreciate a hint at what im doing wrong.
>
> Thanks,
> Lee
>
> >
>


-- 

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: app.yalm static dir's url arguments?

2009-04-07 Thread 'Αλκης Ευλογημένος
http://example.com/static/dynamic_dir_one/css/style.css ==
/static/dynamic_dir_one/html/css/style.css- url:

/static/(.+)/html/(.*)
  static_dir: /static/\1/html/\2

Your regexp rule does not match your path. Also the rule you want is
static_files not static_dir:
/static/(.+)/*css*/(.*)
  static_*files*: /static/\1/*css*/\2


On Tue, Apr 7, 2009 at 3:31 PM, Lee Olayvar  wrote:

> I'm having a bit of trouble matching a url argument, perhaps someone can
> tell me what im doing wrong?
>
> The example i am roughly following is:
>
> handlers:
>
>
> - url: /item-(.*?)/category-(.*)
>   static_files: archives/\2/items/\1
>
>
> So the problem is i have a directory where there is a "dynamic" in the
> middle of static directories, which means i need to use a url argument of
> sorts. Some examples of what this looks like, with the url on the left and
> directory on the right, would be:
>
> http://example.com/static/dynamic_dir_one/css/style.css ==
> /static/dynamic_dir_one/html/css/style.css
>  http://example.com/static/dynamic_dir_two/css/style.css ==
> /static/dynamic_dir_two/html/css/style.css
>
> Now its that dynamic dir in the middle causing problems.
>
> Here is the app.yaml code i am attempting to use to solve this:
>
> - url: /static/(.+)/html/(.*)
>   static_dir: /static/\1/html/\2
>
> What is wrong with that? Now i havent used regex in atleast 3 or 4 years,
> so im having a hell of a time figuring it out again, but doesn't that equate
> to:
>
> /static/(any character except linebreaks up to "/")/html/(anything else)
>
> Any ideas? I'd appreciate a hint at what im doing wrong.
>
> Thanks,
> Lee
>
> >
>


-- 

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: Templating Logic

2009-04-07 Thread johntray

The reason for using the os.path.join() method is that it is platform-
independent. I think, however, that python on windows is now smart
enough to understand the forward slash delimiter, so your version will
work ok on a windows machine. Also, for what it's worth, it is
customary to specify each path component separately, that is:

  path = os.path.join(os.path.dirname
(__file__),'Templates','mytemplate2.html')

where 'Templates' and "mytemplate2.html' are separate function
arguments.

The reason for using the os.path.dirname(__file__) is to specify the
path relative to the current file, instead of the current working
directory (which is the case in your code). It is customary
programming practice not to rely on the current working directory
being set, but again in your example, it should work fine.



On Apr 6, 10:38 pm, GenghisOne  wrote:
> A stupid question about templating...
>
> Do I really need to use the whole os.path.join monstrosity to tell
> Python where my template lives?
>
> I commented it out and replaced it with a simple path...it seems to
> work fine.
>
> What am I missing here? Why are others using this os.path.join
> pattern?
>
> #path = os.path.join(os.path.dirname(__file__), 'Templates/
> mytemplate2.html' )
>     path = 'Templates/mytemplate2.html'
>     self.response.out.write(template.render(path, template_values))
>
> Thx.
--~--~-~--~~~---~--~~
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: Support for a new runtime language

2009-04-07 Thread WallyDD

Nothing has been reported by Google. There is a lot of speculation
around the web.

http://www.informationweek.com/blog/main/archives/2009/03/is_java_on_deck.html

Or maybe this was it ... but probably not.
http://googleappengine.blogspot.com/2009/04/brand-new-language-on-google-app-engine.html

On Apr 7, 8:51 am, Marcel Overdijk  wrote:
> On the GAE program roadmap page (http://code.google.com/intl/nl/
> appengine/docs/roadmap.html) it's noted that in the first half of 2009
> GAE will have support for a new runtime language.
>
> I'm wondering what the status is about this.
>
> Will there be announcement soon? Will it be realy available in Q2 2009
> or will it just be announced in Q2 and perhaps only delivered in in
> 2010?
>
> Google has always been very quit about this. But to make decissions on
> using or not using GAE has to with future directions of the platform.
> I think it's important to shed some light on this.
--~--~-~--~~~---~--~~
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: Dictionary attributes on a Model instance inconsistent

2009-04-07 Thread 'Αλκης Ευλογημένος
If it is not a property type it doesn't persist in the datastore.
Also the members you are defining are class level variables. That explains
what you are seeing in the your tests.

On Tue, Apr 7, 2009 at 1:47 PM, ray  wrote:

>
> Hi,
> Is it possible to use a dict type  as a Model instance attribute?
> I can't seem to make it work correctly.Using strings as a model
> instance attribute seems to be fine, but when I assign values to an
> element of a model's arbitrary dict attribute, I can't seem to
> reference the correct Model instance.
>
> See below (you can try this in your console)
> ---
> from google.appengine.api import users
> from google.appengine.ext import webapp, db
>
> # Say hello to the current user
> class A(db.Model):
>  someProp = db.StringProperty()
>  someStrVar = ''
>  someDictVar = {}
>
> db.delete( A.all() )
> A(someProp='Hello Me').put()
> A(someProp='Hello You').put()
>
> results = A.all().fetch(10)
> #print len(results)
> i=0
>
> print 'As expected: \n'
> for i in [0,1]:
>  results[i].someStrVar = 'someStrVar=' + str(i)
>  results[i].someDictVar['x'] = 'someDictVar=' +str(i)
>
>  print results[i].someProp
>  print results[i].someStrVar
>  print results[i].someDictVar['x']
>  print ''
>
> print '\nRather unexpected results:\n'
> for i in [0,1]:
>  print results[i].someProp
>  print results[i].someStrVar
>  print results[i].someDictVar['x']
>
> ---
> Produces the results:
>
> As expected:
>
> Hello Me
> someStrVar=0
> someDictVar=0
>
> Hello You
> someStrVar=1
> someDictVar=1
>
>
> Rather unexpected results:
>
> Hello Me
> someStrVar=0
> someDictVar=1   ##Here's the error.  THIS SHOULD BE: someDictVar=0 ##
> Hello You
> someStrVar=1
> someDictVar=1
>
> ---
> Notice that the property and string att are correct in both
> iterations. But the dict attribute isn't.
> Would appreicate any help at all.
>
> Thanks,
> Ray
>
> >
>


-- 

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: Noobie with google app engine. Need some help.

2009-04-07 Thread Aaron

I don't think  he means updating.

I was given the website application files. I need to modify and also
import my html and css code into this folder on my computer.

The problem is when manage.py is in that app folder and when I run it
in terminal I get a error sayin g can't find SDK.

yet when I move that manage.py file to the google app engine folder It
finds the SDK  and runs fine well I get also a error saying module
contact is missing.

So I told the programmer that problem. He told me it needs to stay in
that app folder.

Then to fix the cannot find SDK error I have to use that path stuff.

I wasn't sure if  he means  to add that as code to manage.py  or to
type that in the terminal.

Or if it was a example of where the path should be.

I am not totally sure.   I just have to figure this all out quickly.
The ceo is very ticked off and really wants it done really soon.

He is now asking me when I will be done with making my changes to the
site. He already got another project for me.

I am not making big bucks but I need some experience on my resume
because alot of jobs turned me down because I didn't have industry
experience.

So this is the only reason I am doing this. I am just getting paid 75
bucks for the first modifications.

So I really do need a faster way to understand how to use google
engine.

I have experience in html, css, php, apache, mysql, microsoft access.
I do have experience with python.

I don't hever experience with google apps engine. I am not even well
experienced with python to work on big software apps.

So if you do know php and what I basicly know. I would like someone to
explain it in terms what I know saying for like php mysql

you would use code like this for python/google apps etc.

I wish I had more time where I can look at the guides and take my time
learning and experiencing google apps but I don't.

the ceo knows I don't have experience with google.

I am also the only one doing it cheap for him. Others asked him for
1,500 bucks.

SO currently I am stressing out. He wants me to say a deadline but yet
I can't really say when I will be finished unless I have control and
understand the structure of the google app engine so I would know what
to do and work on it quickly.

Last night I didn't get to go to bed cause while I am trying to learn
this stuff I was also studying for exams for college classes and also
had to do a tax problem.

So I  hope you understand my stress level. I wish I had more time but
I don't I normally don't ask alot of questions but since I have
limited time I need to know what links I would need so I don't waste
any time looking at something that I wouldn't need at all to learn.



On Apr 7, 11:18 am, Ray Malone  wrote:
> Take a look at the documentation for uploading an app 
> herehttp://code.google.com/appengine/docs/python/tools/uploadinganapp.html
>
> However, I think you are using the app engine patch and may need this
> instead.  http://code.google.com/p/app-engine-patch/wiki/GettingStarted
>
> I don't use the path and don't have experience setting it up, but this
> should help.
>
> On Apr 7, 10:52 am, Aaron  wrote:
>
> > HI, I am very confused on how to use google app engine. I have a job
> > as a vp of technlology. I was a website developer.
>
> > I only know html,css, php, python.  I never heavily used python so I
> > am rusty with it.
>
> > I only had experience with using apache and mysql.
>
> > I am new to google application and have been doing research on it. I
> > found it uses a different database system.
>
> > I already made the website for the company now I need to upload it to
> > google apps and also make modifications in python scripts to add some
> > server sided functionalities.
>
> > So far it's been about 4 weeks. My ceo is really upset. He never gave
> > a deadline but he wanted it to be done as soon as possible. He is now
> > breathing down my neck. I am stressed out .
>
> > So to make matters worst I need to learn how google apps engine works
> > and how I can use it in a quick manner.
>
> > The ceo has been talking to the previous VP of technology.
>
> > He is the one the made the website. I just added onto it. So He gave
> > me the original website files meaningthe python and the folder.
>
> > He told me I have to use manage.py  to update or test run the app
> > meaning the website.
>
> > Currently I tried the manage.py which was inthe apps folder  and this
> > folder was in googles engine folder.
>
> > I been getting a error saying can't find SDK.
>
> > So I moved the manage.py to googles app engine folder and it worked.
> > Yet when I tried updating It showed 96 files trying to be updated to
> > googles server then I got a limit error.
>
> > I e-mailed the ceo which e-mailed the previous programmer. He told me
> > that the manage.py needs to stay in the app folder not the google
> > engine folder.
>
> > He told me I need to use  PATH=$PATH:/path/to/google_
>
> > I don't understand what he ment by that.   I am guessing 

[google-appengine] Re: Noobie with google app engine. Need some help.

2009-04-07 Thread Aaron

Is their any instant chat room that can help me with google apps
engine?

On Apr 7, 2:29 pm, Aaron  wrote:
> I don't think  he means updating.
>
> I was given the website application files. I need to modify and also
> import my html and css code into this folder on my computer.
>
> The problem is when manage.py is in that app folder and when I run it
> in terminal I get a error sayin g can't find SDK.
>
> yet when I move that manage.py file to the google app engine folder It
> finds the SDK  and runs fine well I get also a error saying module
> contact is missing.
>
> So I told the programmer that problem. He told me it needs to stay in
> that app folder.
>
> Then to fix the cannot find SDK error I have to use that path stuff.
>
> I wasn't sure if  he means  to add that as code to manage.py  or to
> type that in the terminal.
>
> Or if it was a example of where the path should be.
>
> I am not totally sure.   I just have to figure this all out quickly.
> The ceo is very ticked off and really wants it done really soon.
>
> He is now asking me when I will be done with making my changes to the
> site. He already got another project for me.
>
> I am not making big bucks but I need some experience on my resume
> because alot of jobs turned me down because I didn't have industry
> experience.
>
> So this is the only reason I am doing this. I am just getting paid 75
> bucks for the first modifications.
>
> So I really do need a faster way to understand how to use google
> engine.
>
> I have experience in html, css, php, apache, mysql, microsoft access.
> I do have experience with python.
>
> I don't hever experience with google apps engine. I am not even well
> experienced with python to work on big software apps.
>
> So if you do know php and what I basicly know. I would like someone to
> explain it in terms what I know saying for like php mysql
>
> you would use code like this for python/google apps etc.
>
> I wish I had more time where I can look at the guides and take my time
> learning and experiencing google apps but I don't.
>
> the ceo knows I don't have experience with google.
>
> I am also the only one doing it cheap for him. Others asked him for
> 1,500 bucks.
>
> SO currently I am stressing out. He wants me to say a deadline but yet
> I can't really say when I will be finished unless I have control and
> understand the structure of the google app engine so I would know what
> to do and work on it quickly.
>
> Last night I didn't get to go to bed cause while I am trying to learn
> this stuff I was also studying for exams for college classes and also
> had to do a tax problem.
>
> So I  hope you understand my stress level. I wish I had more time but
> I don't I normally don't ask alot of questions but since I have
> limited time I need to know what links I would need so I don't waste
> any time looking at something that I wouldn't need at all to learn.
>
> On Apr 7, 11:18 am, Ray Malone  wrote:
>
> > Take a look at the documentation for uploading an app 
> > herehttp://code.google.com/appengine/docs/python/tools/uploadinganapp.html
>
> > However, I think you are using the app engine patch and may need this
> > instead.  http://code.google.com/p/app-engine-patch/wiki/GettingStarted
>
> > I don't use the path and don't have experience setting it up, but this
> > should help.
>
> > On Apr 7, 10:52 am, Aaron  wrote:
>
> > > HI, I am very confused on how to use google app engine. I have a job
> > > as a vp of technlology. I was a website developer.
>
> > > I only know html,css, php, python.  I never heavily used python so I
> > > am rusty with it.
>
> > > I only had experience with using apache and mysql.
>
> > > I am new to google application and have been doing research on it. I
> > > found it uses a different database system.
>
> > > I already made the website for the company now I need to upload it to
> > > google apps and also make modifications in python scripts to add some
> > > server sided functionalities.
>
> > > So far it's been about 4 weeks. My ceo is really upset. He never gave
> > > a deadline but he wanted it to be done as soon as possible. He is now
> > > breathing down my neck. I am stressed out .
>
> > > So to make matters worst I need to learn how google apps engine works
> > > and how I can use it in a quick manner.
>
> > > The ceo has been talking to the previous VP of technology.
>
> > > He is the one the made the website. I just added onto it. So He gave
> > > me the original website files meaningthe python and the folder.
>
> > > He told me I have to use manage.py  to update or test run the app
> > > meaning the website.
>
> > > Currently I tried the manage.py which was inthe apps folder  and this
> > > folder was in googles engine folder.
>
> > > I been getting a error saying can't find SDK.
>
> > > So I moved the manage.py to googles app engine folder and it worked.
> > > Yet when I tried updating It showed 96 files trying to be updated to
> > > googles server then I got a limit e

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

2009-04-07 Thread Andy Freeman

> Some user reported a problem and wanted to know if Google had any plan
> to solve it. That equates to wanting a "guarantee" in your world?  Some
> kind of twisted world you live in there.

When considering a plan to solve a problem, I think that it's
reasonable to consider whether said plan will actually solve the
problem.  Why?  Because if a plan doesn't solve the problem, the
problem still exists.

I am willing to assume that Google is doing what it can reasonably do
about this.  The continued complaints suggest that the results of
those efforts are inadequate.  And, we've seen "threats" regarding
what will happen if Google doesn't come through.  Maybe those people
will be satisfied by something short of a guarantee, but 

And, as has been noted, a Google representative posted a solution and
was ignored.


On Apr 6, 11:33 pm, Andy  wrote:
> > Yes, I do.
>
> I'm glad you finally learn the word "obligation". Too bad you didn't
> learn it earlier when you spewed your nonsense that obligation can
> only come from "laws and contracts".
>
> Feel free to consult a dictionary first next time when you find
> yourself once again tempted to use a big word you don't understand.
>
> > I'm not angry.
>
> Good for you. Definitely worth reporting back to your anger management
> counselor
>
> > I'm merely pointing out that Google's
> > capabilities in this area are limited, that they need to take their
> > complaints elsewhere if they want guarantees.
>
> Who's talking about "guarantees"?
>
> Some user reported a problem and wanted to know if Google had any plan
> to solve it. That equates to wanting a "guarantee" in your world? Some
> kind of twisted world you live in there.
>
> In fact the only person who even brought up the word "guarantee" is
> you.
>
> Do you always argue against your own strawman like that?
>
> > Do you really believe that Google can honor a promise that a given
> > site won't be blocked if the Chinese govt wants to block said site?
> > (Feel free to assume that the site is hosted in China.)
>
> Who's talking about "promise that a given site won't be blocked" other
> than you?
>
> Once again you're the only person to use words like "guarantees" and
> "promise"
>
> You must be really busy arguing with your own strawman like that...
>
> > I merely pointed out that Google can't do as they ask
>
> And you're the spokesperson of Google? self-appointed?
>
> This is what the OP asked: "Does Google have a plan for dealing with
> this?"
> No different than any other threads that are also about reporting
> problems and asking for solutions.
>
> For whatever reason such a simple question bothers you tremendously.
> To such a degree that you felt compelled to spew nonsense such as
> "Google can't do as they ask", when in fact you have
> no standing to speak for Google on what they can or cannot do.
>
> So the real question is why does the simple question "Does Google have
> a plan for dealing with this?" bother you so 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] listmist.com requires media selector similar to facebook media selector

2009-04-07 Thread drthink

Hi,

I have built a list sharing website at www.listmist.com which allows
users to create lists and share them publicly.

When adding items to the list you can store embedded html but I would
like to add a more intuitive user friendly media selector popup which
will more easily allow users to add media from various commonly used
wesites, such as youtube and flickr.  I envisage its functionality
working similar to the share link functionality in facebook.

Does anyone hae any ideas on how to do this? or suggestions or
recommendations?  or want to collaborate on this functionality?

Cheers
DrT

--~--~-~--~~~---~--~~
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-07 Thread Andy Freeman

> > (I thought that it
> > was common knowledge that China imposed controls on in-China sites.)
>
> So you really have no idea what you are talking about...

Umm, unless you're claiming that China doesn't impose controls on in-
China sites, it's pretty clear that I do know what I'm talking about.

> The direct outcome: sites that do not violate government standards
> will be accessible to Chinese users.

Which means that if Google allows anything to be hosted in China that
the Chinese don't like, they'll block GAE-China (and maybe other
properties to teach Google a lesson or because the external IPs are
shared).  Since the Chinese change their minds about what's
objectionable fairly often...

Yes, the Chinese may tell Google what applications are objectionable
today and let Google move them.

Yup - absolutely no hassle for Google.  I too demand that they do so
immediately.  And give everyone ponies.

Of course, Google can try to make it easier for China to block on an
application-specific basis (perhaps only for certain applications),
but they can do that for any datacenter.


On Apr 6, 10:25 pm, Andy  wrote:
> On Apr 6, 10:16 am, Andy Freeman  wrote:
>
> > > One of them is to offer hosting at Google's data center in China.
>
> > Since China can block sites hosted in China  (I thought that it
> > was common knowledge that China imposed controls on in-China sites.)
>
> So you really have no idea what you are talking about...
>
> Yes genius, China can take down sites hosted in China, and that's the
> whole point. By hosting sites in China, only sites that do not violate
> government standards will be allowed to stay up, all other sites will
> by law have to be taken down.
>
> The direct outcome: sites that do not violate government standards
> will be accessible to Chinese users. Contrast that with the current
> situation, where China cannot order the take down of sites that
> violate their government standards and as a result has to resort to
> blanket blocking of all GAE sites.
>
> I thought that was painfully obvious...
--~--~-~--~~~---~--~~
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 delete an app?

2009-04-07 Thread Wooble

no.

On Apr 7, 1:16 pm, ajaxer  wrote:
> is it possible now to delete an app instead of just disable an app?
--~--~-~--~~~---~--~~
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-07 Thread Andy Freeman

Your application probably isn't written to be multi-threaded and any
effort to make it so is wasted because it won't be executed as multi-
threaded in production.

You could get around application threading issues by forking but then
you'll discover that the dev server's datastore is a pile of code with
some file handles and can't handle concurrent access.

You could write a proxy that distributed requests across multiple
instances of the dev server, but they'd have separate and independent
datastores.

On Apr 6, 4:59 pm, Khai  wrote:
> Perhaps I didn't explain my problem clearly.  This problem applies
> only to the development server (dev_appserver.py or SDK).  The problem
> is it is single threaded, so when multiple requests arrived at the
> same time, they have to be served serially (one after the other), so
> one of the request got timed out by the opensocial agent.  What can I
> do to service multiple requests concurrently in the development
> environment?
>
> On Apr 4, 2:28 pm, Alkis Evlogimenos ('Αλκης Ευλογημένος)
>
>
>
>  wrote:
> > 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  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- 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: Local Google App Engine stopped work

2009-04-07 Thread Mahmoud

What version of Python are you using?

On Apr 6, 8:15 am, Leonardo Luiz  wrote:
> Hi,
>
> Today, my local app engine server simply stopped work. I think it's
> because last auto update, once It worked fine yesterday.
>
> It's the log:
>
> C:\Program Files\Google\google_appengine\google\appengine\tools
> \appcfg.py:40: DeprecationWarning: the sha module is deprecated; use
> the hashlib module instead
>   import sha
>
> INFO     2009-04-06 12:01:23,015 appengine_rpc.py] Server:
> appengine.google.com
> INFO     2009-04-06 12:01:23,030 appcfg.py] Checking for updates to
> the SDK.
> INFO     2009-04-06 12:01:23,453 appcfg.py] The SDK is up to date.
>
> > ERROR    2009-04-06 12:01:28,858 dev_appserver_main.py]  > 'exceptions.EOFError'>:
>
> I am using Eclipse with Pydev
>
> Can someone help-me please?
--~--~-~--~~~---~--~~
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] how to delete an app?

2009-04-07 Thread ajaxer

is it possible now to delete an app instead of just disable an app?
--~--~-~--~~~---~--~~
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: Templating Logic

2009-04-07 Thread Mahmoud

>     path = 'Templates/mytemplate2.html'
>     self.response.out.write(template.render(path, template_values))

Does that also work in production? If so, then you're good to go.
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
"Google App Engine" group.
To post to this group, send email to google-appengine@googlegroups.com
To unsubscribe from this group, send email to 
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-07 Thread Wooble

Interestingly, issue 1144, the same thing, was marked "Fixed" on March
16.

On Apr 7, 12:31 pm, Joe Bowman  wrote:
> http://code.google.com/p/googleappengine/issues/detail?id=1072
>
> On Apr 7, 11:39 am, WallyDD  wrote:
>
> > Just to add some irony to this.
>
> > Google is doing some developer days in Beijing and they are going to
> > talk about appengine.
> > And just to really demonstrate how aware Google is of this entire
> > issue they have advertised this on blogspot.com, which is also blocked
> > in 
> > China.http://google-code-updates.blogspot.com/2009/04/google-developer-days...
>
> > To answer Andys question.
> > Does Google have a plan for dealing with this? I don't think so.
>
> > On Apr 6, 10:23 pm, WallyDD  wrote:
>
> > > Thanks for the answer Joe.
>
> > > I have to agree it is not a turnkey solution and from the look of
> > > things people are probably better off giving up on GAE and finding an
> > > alternate host. The general feeling I find on the web is that Amazons
> > > service is better suited for the international market.
>
> > > On Apr 6, 3:59 pm, Joe Bowman  wrote:
>
> > > > Get a server and IP that is available in China, but outside of the
> > > > chinese firewall. Configure it to proxy you appspot.com domain. It
> > > > gets tricky handling cookies and session state and such doing this
> > > > though. Not a turnkey solution. Basically all requests to your
> > > > appengine application coming from users using the proxy, will be seen
> > > > as the proxy machine not the individual client machines. There are
> > > > some proxy passthroughs you can do depending on the software you
> > > > choose to handle this.
>
> > > > Of course you'll have to pay for the bandwidth usage going through the
> > > > proxy as well.
>
> > > > On Apr 6, 12:35 pm, WallyDD  wrote:
>
> > > > > The internet is indeed a funny place.
> > > > > I did respond with a question on how to set this up but have received
> > > > > no answer?
>
> > > > > Any ideas anyone?
>
> > > > > On Apr 6, 3:03 am, Paddy Foran  wrote:
>
> > > > > > I'd just like to point out how funny it is that people keep banging 
> > > > > > on
> > > > > > for Google to respond, and in their banging on for Google to 
> > > > > > respond,
> > > > > > they missed Google's actual response.
>
> > > > > > >> Is there any google staff who is responsible for GAE promotion 
> > > > > > >> and
> > > > > > >> technology to say something here?
>
> > > > > > >> How can I access to my Google Apps via my own domain directly, 
> > > > > > >> e.g.
> > > > > > >> how can access via mail.my_domain.com instead of 
> > > > > > >> mail.google.com/a/
> > > > > > >> my_domain.com?
>
> > > > > > >One way to address this is to run a proxy server elsewhere, which 
> > > > > > >will
> > > > > > >allow your site to have it's own unique IP, rather than the shared 
> > > > > > >IPs
> > > > > > >of Google.
>
> > > > > > >-Brett
> > > > > > >App Engine Team
>
> > > > > > Please note the "App Engine Team" signature. That means Brett (at
> > > > > > least claims he) is from Google.
>
> > > > > > Poor Brett was ignored, as people clamoured for Brett to comment.
>
> > > > > > This is why I love the internet. It amuses me to no end.
>
> > > > > > On Apr 6, 12:48 am, Andy Freeman  wrote:
>
> > > > > > > > No company is willing to be a pawn in the game of politics 
> > > > > > > > between
> > > > > > > > Google and China.
>
> > > > > > > That sounds reasonable, but what can Google do to stop the Chinese
> > > > > > > govt from blocking?
>
> > > > > > > (1) Google can't tell the Chinese govt what to do.
>
> > > > > > > (2) The Chinese govt appears to be technically competent and 
> > > > > > > controls
> > > > > > > the relevant connections, both from the outside and from internal
> > > > > > > datacenters.
>
> > > > > > > (3) Google can propose agreements, but China is a soverign entity 
> > > > > > > and
> > > > > > > and can do what it pleases wrt internal matters.  (Other posters 
> > > > > > > have
> > > > > > > suggested that buying dinner for the appropriate official would 
> > > > > > > cause
> > > > > > > the blocking to go away.  I don't see why the Chinese govt would 
> > > > > > > find
> > > > > > > such an agreement binding.)
>
> > > > > > > Yes, one can argue that Google "needs" the Chinese govt to not 
> > > > > > > block,
> > > > > > > but that doesn't imply that Google can do anything to stop the 
> > > > > > > Chinese
> > > > > > > govt from blocking.  Google's needs do not obligate the Chinese 
> > > > > > > govt.
>
> > > > > > > On Apr 5, 3:16 pm, WallyDD  wrote:
>
> > > > > > > > Google is more or less obligated to solve this issue.
>
> > > > > > > > No company is willing to be a pawn in the game of politics 
> > > > > > > > between
> > > > > > > > Google and China.
> > > > > > > > Name a single company (that has any international presence) who 
> > > > > > > > would
> > > > > > > > be willing to use GAE knowing full well that it is blocked in 
> > > > > > > > its

[google-appengine] index.yaml is not source control friendly

2009-04-07 Thread Mahmoud

So it seems that dev_appserver.py keeps updating the comments in
app.yaml mostly with usage counters. I keep having to diff and revert
it before making commits, unless the changes were legit additions of
new autogenerated indices.

I can probably take a look at dev_appserver.py and disable this
behavior. Any one else noticed this? Do you have any suggestions?

-Mahmoud
--~--~-~--~~~---~--~~
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: GQL "join" question

2009-04-07 Thread Ben Nevile

Hi Marcel,

the SQL join world saves you the hassle of thinking about all of this
stuff at write-time, but would not scale beyond a few thousand users.
if you implement everything in SQL and then end up with a very busy
site, you end up re-implementing all of your data access to work in
the BigTable way.

one nice thing about BigTable is that when you do a db.put(entities)
where entities is an array/list, it sends them away to write in
multiple threads.  so the access time is not linear with len
(entities).

sharded counter = awesome

Ben


On Apr 7, 2:48 am, Marcel Overdijk  wrote:
> This would mean really a lot of updates.
>
> E.g.
> - User1, 1 jan 2009, 1000
> - User1, 1 feb 2009, 1100
>
> This would mean craeting an avarage usage of 100 for jan 2009.
>
> Now next time the user enters a meter reading is e.g. 1 jan 2010 with
> value 2300.
> This would mean in this case createing avaerage use valuues for feb,
> mar, apr, may, jun, jul, aug, sep, okt, nov and dec 2009.
>
> And als updating average usage of all users.
> In a SQL join this would be less dificult and error prone to
> implement.
>
> I'm wondering if my use case fits the BigTable principles and thus
> GAE, or that I would be better of with a realtional database.
> But this would mean I can't use GAE and have to go for another cloud
> solution like mor.ph
>
> On 7 apr, 06:36, GregF  wrote:
>
>
>
> > On Apr 7, 6:53 am, Marcel Overdijk  wrote:
>
> > > - User1, 1 jan 2009, 1000
> > > - User1, 1 feb 2009, 1100
> > > - User1, 1 mar 2009, 1200
> > > The avarage will be 1100 ***
>
> > > But maybe the user misses registering the meter reading on 1 feb:
> > > - User1, 1 jan 2009, 1000
> > > - User1, 1 mar 2009, 1200
> > > The average will still be 1100 ***
> > > I guess the answer will be to store average values when creating (and
> > > updaing existing) meter reading records.
> > > But how should this be implemented?
>
> > *** Corrected.
>
> > Yes, calculate averages when you update the table. If you don't need
> > to search for particular readings, you might want to store the meter
> > readings in a db.ListProperty(int), with an associated db.ListProperty
> > (int) of timestamps.
>
> > I need to count various things in my app, so I define a model and
> > helper functions like this:
>
> > class Counter(db.Model):
> >   count=db.IntegerProperty(required=True,default=0)
>
> > # Increment a counter
> > # NB: These are functions, not class members
> > def _incrementCounter(counterId,amount):
> >         counter=Counter.get_by_id(counterId)
> >         counter.count+=amount
> >         counter.put()
> > def incrementCounter(counterId,amount=1):
> >         db.run_in_transaction(_incrementCounter,counterId,amount)
>
> > I'm sure you can do something similar for your averages.
--~--~-~--~~~---~--~~
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 post to a blog using gdata blogger api in python on app engine

2009-04-07 Thread Jillian

Ooops. I guess there was just some delay.

anyway I figured out the second part of my question too. The scope
doesn't have to be the feed url itself, it could be the top level
directory like http://www.blogger.com/feeds/, in which case, all
operations within this directory such as reading and posting of feed
entries would apply, and you would only need to grant the permission
once.


On Apr 7, 11:59 am, Jillian  wrote:
> Nevermind. I was trying to use the same scape url in
> GenerateAuthSubURL for both the get and post requests. That obviously
> wouldn't work ... this makes me wonder though. Does this mean even
> though I don't have to authentication multiple times as a user, but if
> i want to do two different interactions with the blog through the api
> like getting a list of blogs, and creating new entries, I'd have to
> grant access separately for all these actions? Seems a bit tedious and
> not so user friendly. I mean if I'm giving the application blogger
> access I want to just do it once. Why should I have to grant
> permission for every unique url I want to access through the blogger
> api?
>
> Jillian
>
> On Apr 7, 11:08 am, Jillian  wrote:
>
> > Hi All,
> >    I can so far using AuthSub to get the token and then upgrade the
> > token and then fetch a list of blogs from the logged in user
> > successfully, however I get the following error when I try to create a
> > new blog entry to one of the logged in user's blogs:
>
> > "User does not have permission to create new post"
>
> > I'm running on app engine. Has anyone had similar problems? What's the
> > solution? I'm logged in to the application and have granted permission
> > to the application.
>
> > Jillian
--~--~-~--~~~---~--~~
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-07 Thread Joe Bowman

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

On Apr 7, 11:39 am, WallyDD  wrote:
> Just to add some irony to this.
>
> Google is doing some developer days in Beijing and they are going to
> talk about appengine.
> And just to really demonstrate how aware Google is of this entire
> issue they have advertised this on blogspot.com, which is also blocked
> in 
> China.http://google-code-updates.blogspot.com/2009/04/google-developer-days...
>
> To answer Andys question.
> Does Google have a plan for dealing with this? I don't think so.
>
> On Apr 6, 10:23 pm, WallyDD  wrote:
>
> > Thanks for the answer Joe.
>
> > I have to agree it is not a turnkey solution and from the look of
> > things people are probably better off giving up on GAE and finding an
> > alternate host. The general feeling I find on the web is that Amazons
> > service is better suited for the international market.
>
> > On Apr 6, 3:59 pm, Joe Bowman  wrote:
>
> > > Get a server and IP that is available in China, but outside of the
> > > chinese firewall. Configure it to proxy you appspot.com domain. It
> > > gets tricky handling cookies and session state and such doing this
> > > though. Not a turnkey solution. Basically all requests to your
> > > appengine application coming from users using the proxy, will be seen
> > > as the proxy machine not the individual client machines. There are
> > > some proxy passthroughs you can do depending on the software you
> > > choose to handle this.
>
> > > Of course you'll have to pay for the bandwidth usage going through the
> > > proxy as well.
>
> > > On Apr 6, 12:35 pm, WallyDD  wrote:
>
> > > > The internet is indeed a funny place.
> > > > I did respond with a question on how to set this up but have received
> > > > no answer?
>
> > > > Any ideas anyone?
>
> > > > On Apr 6, 3:03 am, Paddy Foran  wrote:
>
> > > > > I'd just like to point out how funny it is that people keep banging on
> > > > > for Google to respond, and in their banging on for Google to respond,
> > > > > they missed Google's actual response.
>
> > > > > >> Is there any google staff who is responsible for GAE promotion and
> > > > > >> technology to say something here?
>
> > > > > >> How can I access to my Google Apps via my own domain directly, e.g.
> > > > > >> how can access via mail.my_domain.com instead of mail.google.com/a/
> > > > > >> my_domain.com?
>
> > > > > >One way to address this is to run a proxy server elsewhere, which 
> > > > > >will
> > > > > >allow your site to have it's own unique IP, rather than the shared 
> > > > > >IPs
> > > > > >of Google.
>
> > > > > >-Brett
> > > > > >App Engine Team
>
> > > > > Please note the "App Engine Team" signature. That means Brett (at
> > > > > least claims he) is from Google.
>
> > > > > Poor Brett was ignored, as people clamoured for Brett to comment.
>
> > > > > This is why I love the internet. It amuses me to no end.
>
> > > > > On Apr 6, 12:48 am, Andy Freeman  wrote:
>
> > > > > > > No company is willing to be a pawn in the game of politics between
> > > > > > > Google and China.
>
> > > > > > That sounds reasonable, but what can Google do to stop the Chinese
> > > > > > govt from blocking?
>
> > > > > > (1) Google can't tell the Chinese govt what to do.
>
> > > > > > (2) The Chinese govt appears to be technically competent and 
> > > > > > controls
> > > > > > the relevant connections, both from the outside and from internal
> > > > > > datacenters.
>
> > > > > > (3) Google can propose agreements, but China is a soverign entity 
> > > > > > and
> > > > > > and can do what it pleases wrt internal matters.  (Other posters 
> > > > > > have
> > > > > > suggested that buying dinner for the appropriate official would 
> > > > > > cause
> > > > > > the blocking to go away.  I don't see why the Chinese govt would 
> > > > > > find
> > > > > > such an agreement binding.)
>
> > > > > > Yes, one can argue that Google "needs" the Chinese govt to not 
> > > > > > block,
> > > > > > but that doesn't imply that Google can do anything to stop the 
> > > > > > Chinese
> > > > > > govt from blocking.  Google's needs do not obligate the Chinese 
> > > > > > govt.
>
> > > > > > On Apr 5, 3:16 pm, WallyDD  wrote:
>
> > > > > > > Google is more or less obligated to solve this issue.
>
> > > > > > > No company is willing to be a pawn in the game of politics between
> > > > > > > Google and China.
> > > > > > > Name a single company (that has any international presence) who 
> > > > > > > would
> > > > > > > be willing to use GAE knowing full well that it is blocked in its
> > > > > > > current form?
> > > > > > > This issue has nothing to do with the Chinese government and 
> > > > > > > there is
> > > > > > > no way Google will point the finger at them.
>
> > > > > > > Perhaps google can also take on all the other countries that are
> > > > > > > blocking GAE and while they are at it they can point fingers at
> > > > > > > corporate america and their firewalls?
> > > > > > > Y

[google-appengine] Re: Can't post to a blog using gdata blogger api in python on app engine

2009-04-07 Thread Jillian

testing

On Apr 7, 11:08 am, Jillian  wrote:
> Hi All,
>    I can so far using AuthSub to get the token and then upgrade the
> token and then fetch a list of blogs from the logged in user
> successfully, however I get the following error when I try to create a
> new blog entry to one of the logged in user's blogs:
>
> "User does not have permission to create new post"
>
> I'm running on app engine. Has anyone had similar problems? What's the
> solution? I'm logged in to the application and have granted permission
> to the application.
>
> Jillian
--~--~-~--~~~---~--~~
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 post to a blog using gdata blogger api in python on app engine

2009-04-07 Thread Jillian



On Apr 7, 11:08 am, Jillian  wrote:
> Hi All,
>    I can so far using AuthSub to get the token and then upgrade the
> token and then fetch a list of blogs from the logged in user
> successfully, however I get the following error when I try to create a
> new blog entry to one of the logged in user's blogs:
>
> "User does not have permission to create new post"
>
> I'm running on app engine. Has anyone had similar problems? What's the
> solution? I'm logged in to the application and have granted permission
> to the application.
>
> Jillian
--~--~-~--~~~---~--~~
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 post to a blog using gdata blogger api in python on app engine

2009-04-07 Thread Jillian

Nevermind. I was trying to use the same scape url in
GenerateAuthSubURL for both the get and post requests. That obviously
wouldn't work ... this makes me wonder though. Does this mean even
though I don't have to authentication multiple times as a user, but if
i want to do two different interactions with the blog through the api
like getting a list of blogs, and creating new entries, I'd have to
grant access separately for all these actions? Seems a bit tedious and
not so user friendly. I mean if I'm giving the application blogger
access I want to just do it once. Why should I have to grant
permission for every unique url I want to access through the blogger
api?

Jillian

On Apr 7, 11:08 am, Jillian  wrote:
> Hi All,
>    I can so far using AuthSub to get the token and then upgrade the
> token and then fetch a list of blogs from the logged in user
> successfully, however I get the following error when I try to create a
> new blog entry to one of the logged in user's blogs:
>
> "User does not have permission to create new post"
>
> I'm running on app engine. Has anyone had similar problems? What's the
> solution? I'm logged in to the application and have granted permission
> to the application.
>
> Jillian
--~--~-~--~~~---~--~~
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 post to a blog using gdata blogger api in python on app engine

2009-04-07 Thread Jillian

testing

On Apr 7, 11:08 am, Jillian  wrote:
> Hi All,
>    I can so far using AuthSub to get the token and then upgrade the
> token and then fetch a list of blogs from the logged in user
> successfully, however I get the following error when I try to create a
> new blog entry to one of the logged in user's blogs:
>
> "User does not have permission to create new post"
>
> I'm running on app engine. Has anyone had similar problems? What's the
> solution? I'm logged in to the application and have granted permission
> to the application.
>
> Jillian
--~--~-~--~~~---~--~~
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] Is the message board broken? I can't reply to my own post.

2009-04-07 Thread Jillian

I just wanted to add some new info to my question.
--~--~-~--~~~---~--~~
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: dynamic properties

2009-04-07 Thread Barry Hunter

have you looked at
http://code.google.com/appengine/docs/python/datastore/expandoclass.html



On 07/04/2009, GTako  wrote:
>
>  i want to create entities by name(kind) and with APE properties type.
>
>  the code bellow solved only 1 part of the problem:
>  e = datastore.Entity(kind='test')
>  e['name'] = 'My Test Entity'
>  datastore.Put([e])
>
>  i want 'name' to be a 'StringProrperty()'..
>  is it possible?
>
>  >
>


-- 
Barry

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

--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
"Google App Engine" group.
To post to this group, send email to google-appengine@googlegroups.com
To unsubscribe from this group, send email to 
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 i upload files less than 10M but larger than 1M now?

2009-04-07 Thread Barry Hunter

Have a look at flash based uploaders...

http://www.google.com/search?q=flash+uploader

On 07/04/2009, wenxin.ren  wrote:
>
>  thank you jason,
>  will it be possible to add a progressing infomation hint on how many
>  bytes has been transferred and how many bytes remained?
>  or something like this.
>
>
>
>  On 4月7日, 上午5时06分, Jason  wrote:
>  > Yes, that's right.
>  >
>  > Cheers!
>  > - Jason
>  >
>  > On Apr 3, 11:23 pm, ajaxer  wrote:
>  >
>  > > thank you
>  >
>


-- 
Barry

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

--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
"Google App Engine" group.
To post to this group, send email to google-appengine@googlegroups.com
To unsubscribe from this group, send email to 
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-07 Thread WallyDD

Just to add some irony to this.

Google is doing some developer days in Beijing and they are going to
talk about appengine.
And just to really demonstrate how aware Google is of this entire
issue they have advertised this on blogspot.com, which is also blocked
in China.
http://google-code-updates.blogspot.com/2009/04/google-developer-days-2009-first-three.html

To answer Andys question.
Does Google have a plan for dealing with this? I don't think so.

On Apr 6, 10:23 pm, WallyDD  wrote:
> Thanks for the answer Joe.
>
> I have to agree it is not a turnkey solution and from the look of
> things people are probably better off giving up on GAE and finding an
> alternate host. The general feeling I find on the web is that Amazons
> service is better suited for the international market.
>
> On Apr 6, 3:59 pm, Joe Bowman  wrote:
>
>
>
> > Get a server and IP that is available in China, but outside of the
> > chinese firewall. Configure it to proxy you appspot.com domain. It
> > gets tricky handling cookies and session state and such doing this
> > though. Not a turnkey solution. Basically all requests to your
> > appengine application coming from users using the proxy, will be seen
> > as the proxy machine not the individual client machines. There are
> > some proxy passthroughs you can do depending on the software you
> > choose to handle this.
>
> > Of course you'll have to pay for the bandwidth usage going through the
> > proxy as well.
>
> > On Apr 6, 12:35 pm, WallyDD  wrote:
>
> > > The internet is indeed a funny place.
> > > I did respond with a question on how to set this up but have received
> > > no answer?
>
> > > Any ideas anyone?
>
> > > On Apr 6, 3:03 am, Paddy Foran  wrote:
>
> > > > I'd just like to point out how funny it is that people keep banging on
> > > > for Google to respond, and in their banging on for Google to respond,
> > > > they missed Google's actual response.
>
> > > > >> Is there any google staff who is responsible for GAE promotion and
> > > > >> technology to say something here?
>
> > > > >> How can I access to my Google Apps via my own domain directly, e.g.
> > > > >> how can access via mail.my_domain.com instead of mail.google.com/a/
> > > > >> my_domain.com?
>
> > > > >One way to address this is to run a proxy server elsewhere, which will
> > > > >allow your site to have it's own unique IP, rather than the shared IPs
> > > > >of Google.
>
> > > > >-Brett
> > > > >App Engine Team
>
> > > > Please note the "App Engine Team" signature. That means Brett (at
> > > > least claims he) is from Google.
>
> > > > Poor Brett was ignored, as people clamoured for Brett to comment.
>
> > > > This is why I love the internet. It amuses me to no end.
>
> > > > On Apr 6, 12:48 am, Andy Freeman  wrote:
>
> > > > > > No company is willing to be a pawn in the game of politics between
> > > > > > Google and China.
>
> > > > > That sounds reasonable, but what can Google do to stop the Chinese
> > > > > govt from blocking?
>
> > > > > (1) Google can't tell the Chinese govt what to do.
>
> > > > > (2) The Chinese govt appears to be technically competent and controls
> > > > > the relevant connections, both from the outside and from internal
> > > > > datacenters.
>
> > > > > (3) Google can propose agreements, but China is a soverign entity and
> > > > > and can do what it pleases wrt internal matters.  (Other posters have
> > > > > suggested that buying dinner for the appropriate official would cause
> > > > > the blocking to go away.  I don't see why the Chinese govt would find
> > > > > such an agreement binding.)
>
> > > > > Yes, one can argue that Google "needs" the Chinese govt to not block,
> > > > > but that doesn't imply that Google can do anything to stop the Chinese
> > > > > govt from blocking.  Google's needs do not obligate the Chinese govt.
>
> > > > > On Apr 5, 3:16 pm, WallyDD  wrote:
>
> > > > > > Google is more or less obligated to solve this issue.
>
> > > > > > No company is willing to be a pawn in the game of politics between
> > > > > > Google and China.
> > > > > > Name a single company (that has any international presence) who 
> > > > > > would
> > > > > > be willing to use GAE knowing full well that it is blocked in its
> > > > > > current form?
> > > > > > This issue has nothing to do with the Chinese government and there 
> > > > > > is
> > > > > > no way Google will point the finger at them.
>
> > > > > > Perhaps google can also take on all the other countries that are
> > > > > > blocking GAE and while they are at it they can point fingers at
> > > > > > corporate america and their firewalls?
> > > > > > You have to remember that at the moment this is a "preview release".
>
> > > > > > I don't really understand why you persist with this argument. You 
> > > > > > have
> > > > > > raised some valid points which should be looked at and considered in
> > > > > > the scheme of things but most of the diatribe you present here seems
> > > > > > aimed at China/Chinese Governmen

[google-appengine] Re: can i upload files less than 10M but larger than 1M now?

2009-04-07 Thread wenxin.ren

thank you jason,
will it be possible to add a progressing infomation hint on how many
bytes has been transferred and how many bytes remained?
or something like this.


On 4月7日, 上午5时06分, Jason  wrote:
> Yes, that's right.
>
> Cheers!
> - Jason
>
> On Apr 3, 11:23 pm, ajaxer  wrote:
>
> > 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: Remixing RSS/ATOM feeds

2009-04-07 Thread niklas



On 7 Apr, 11:15, Ivan Zuzak  wrote:
> Hi all,
>
> I'm developing an AppEngine service that will fetch an RSS/ATOM,
> change something in it (add/remove/change some elements) and then
> output the modified feed.
>
> I'm using urlfetch to fetch the feed and feedparser to parse it into
> memory. And now I need a way of modifying the feedparser memory
> structure and generating an output feed. As I understand, feedparser
> was not created with this purpose and doesn't support this.
>
> So, is there any other library that might help me with this? I'm not
> generating a feed from scratch, I'm just remixing an existing feed.
> Using minidom to do low-level xml handling is something I'd like to
> avoid since the task is very closely related to RSS/ATOM feeds. But if
> anyone has done something similar with minidom - please let me know.
>
> Any other ideas on implementing this service?
>
> Thanks,
> Ivan
Hi Ivan
You may want to download and modify GAE REST, an atom feed generator
that also can combine with feedburner
http://github.com/fczuardi/gae-rest/tree/master
Regards
Niklas
--~--~-~--~~~---~--~~
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] dynamic properties

2009-04-07 Thread GTako

i want to create entities by name(kind) and with APE properties type.

the code bellow solved only 1 part of the problem:
e = datastore.Entity(kind='test')
e['name'] = 'My Test Entity'
datastore.Put([e])

i want 'name' to be a 'StringProrperty()'..
is it possible?

--~--~-~--~~~---~--~~
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: Date Range GQL not working.

2009-04-07 Thread niklas



On 6 Apr, 20:47, Benjamin Ortuzar  wrote:
> Hi gents,
>
> Im trying to search for some codes within a date range, but some dates
> that exist in the database are not being returned by the query. Here
> is an extract of the code in using.
>
>             deltaDays = timedelta(days= 10)
>             endDate = datetime.date.today()
>             startDate = endDate - deltaDays
>
>             result = db.GqlQuery(
>                 "SELECT * FROM myData WHERE mytype = :1 AND pubdate>= :2 and 
> pubdate <= :3", type, startDate, endDate
>
>                     )
>
> class myData(db.Model):
>     mytype = db.StringProperty(required=True)
>     value =  db.FloatProperty(required=True)
>     pubdate = db.DateTimeProperty(required=True)
>
> The script returns :
>
>  2009-03-18 00:00:00
> (missing date in results: 2009-03-20 data exists in database)
>  2009-03-23 00:00:00
>  2009-03-24 00:00:00
>  2009-03-25 00:00:00
>  2009-03-26 00:00:00
> (missing date in results: 2009-03-27 data exists in database)
>  2009-03-30 00:00:00
> (missing date in results: 2009-03-31. data exists in database)
>  2009-04-01 00:00:00
>  2009-04-02 00:00:00
>  2009-04-03 00:00:00
>  2009-04-06 00:00:00
>
> Any help is appreciated. thanks.
Hi Benjamin
Try fetch the range in other ways with filter or DATETIME wrapper
data = myData.all().filter("mytype=", type).filter("pubdate >",
startDate)
or
result = db.GqlQuery("SELECT * FROM myData WHERE mytype = :1 AND
pubdate >= DATETIME(2009,03,18)", type)
or use dataviewer directly to see differences between rows.
Regards
Niklas

--~--~-~--~~~---~--~~
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: Noobie with google app engine. Need some help.

2009-04-07 Thread Ray Malone

Take a look at the documentation for uploading an app here
http://code.google.com/appengine/docs/python/tools/uploadinganapp.html

However, I think you are using the app engine patch and may need this
instead.  http://code.google.com/p/app-engine-patch/wiki/GettingStarted

I don't use the path and don't have experience setting it up, but this
should help.



On Apr 7, 10:52 am, Aaron  wrote:
> HI, I am very confused on how to use google app engine. I have a job
> as a vp of technlology. I was a website developer.
>
> I only know html,css, php, python.  I never heavily used python so I
> am rusty with it.
>
> I only had experience with using apache and mysql.
>
> I am new to google application and have been doing research on it. I
> found it uses a different database system.
>
> I already made the website for the company now I need to upload it to
> google apps and also make modifications in python scripts to add some
> server sided functionalities.
>
> So far it's been about 4 weeks. My ceo is really upset. He never gave
> a deadline but he wanted it to be done as soon as possible. He is now
> breathing down my neck. I am stressed out .
>
> So to make matters worst I need to learn how google apps engine works
> and how I can use it in a quick manner.
>
> The ceo has been talking to the previous VP of technology.
>
> He is the one the made the website. I just added onto it. So He gave
> me the original website files meaningthe python and the folder.
>
> He told me I have to use manage.py  to update or test run the app
> meaning the website.
>
> Currently I tried the manage.py which was inthe apps folder  and this
> folder was in googles engine folder.
>
> I been getting a error saying can't find SDK.
>
> So I moved the manage.py to googles app engine folder and it worked.
> Yet when I tried updating It showed 96 files trying to be updated to
> googles server then I got a limit error.
>
> I e-mailed the ceo which e-mailed the previous programmer. He told me
> that the manage.py needs to stay in the app folder not the google
> engine folder.
>
> He told me I need to use  PATH=$PATH:/path/to/google_
>
> I don't understand what he ment by that.   I am guessing  I had to add
> that to manage.py?
>
> Not sure I might e-mail them back.
>
> So currently I need to just update a website which is a web app on
> google app engine.
>
> So I need to learn the structure of how to use  google apps engine.
>
> I need a tutorial that would explain  me the structure  from a php/
> mysql apache user point of view.
>
> Meaning I need a explanation  what's used with php and what is used in
> google that relates to php in the server sided way.
>
> I thiink that would be the quickest way i can learn this else I might
> get fired. I do really need to keep this job.
>
> I told the ceo that I am not experienced in google nor python. I  did
> some coding in python but it wasn't that much to make any app.
--~--~-~--~~~---~--~~
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] Can't post to a blog using gdata blogger api in python on app engine

2009-04-07 Thread Jillian

Hi All,
   I can so far using AuthSub to get the token and then upgrade the
token and then fetch a list of blogs from the logged in user
successfully, however I get the following error when I try to create a
new blog entry to one of the logged in user's blogs:

"User does not have permission to create new post"

I'm running on app engine. Has anyone had similar problems? What's the
solution? I'm logged in to the application and have granted permission
to the application.


Jillian
--~--~-~--~~~---~--~~
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] Can not update db

2009-04-07 Thread saintthor

dests = db.GqlQuery( "SELECT * FROM Dj_User WHERE UserID = '4'" )
dests[0].UserName = "aaa"# it seems something wrong here
db.put( dests )

print dests[0].UserName

the codes prints "tom", still the old value.

What is wrong with it?

--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
"Google App Engine" group.
To post to this group, send email to google-appengine@googlegroups.com
To unsubscribe from this group, send email to 
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 use the data of StringProperty as strings?

2009-04-07 Thread saintthor

thanks for reply. this is the error info when using str()

Traceback (most recent call last):
  File "D:\Program Files\Google\google_appengine\google\appengine\ext
\webapp\__init__.py", line 499, in __call__
handler.get(*groups)
  File "e:\gae\2.py", line 24, in get
for un in DjUser.ShowUsers():
  File "e:\gae\DjUser.py", line 110, in ShowUsers
return [str( user.UserName ) for user in Dj_User.all()]
UnicodeEncodeError: 'ascii' codec can't encode characters in position
3-5: ordinal not in range(128)


for using as string,  code as:

return [user.UserName + "" for user in Dj_User.all()]

there is no error now. i can not decide what is changed before it
turns fine.

--~--~-~--~~~---~--~~
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] Dictionary attributes on a Model instance inconsistent

2009-04-07 Thread ray

Hi,
Is it possible to use a dict type  as a Model instance attribute?
I can't seem to make it work correctly.Using strings as a model
instance attribute seems to be fine, but when I assign values to an
element of a model's arbitrary dict attribute, I can't seem to
reference the correct Model instance.

See below (you can try this in your console)
---
from google.appengine.api import users
from google.appengine.ext import webapp, db

# Say hello to the current user
class A(db.Model):
  someProp = db.StringProperty()
  someStrVar = ''
  someDictVar = {}

db.delete( A.all() )
A(someProp='Hello Me').put()
A(someProp='Hello You').put()

results = A.all().fetch(10)
#print len(results)
i=0

print 'As expected: \n'
for i in [0,1]:
  results[i].someStrVar = 'someStrVar=' + str(i)
  results[i].someDictVar['x'] = 'someDictVar=' +str(i)

  print results[i].someProp
  print results[i].someStrVar
  print results[i].someDictVar['x']
  print ''

print '\nRather unexpected results:\n'
for i in [0,1]:
  print results[i].someProp
  print results[i].someStrVar
  print results[i].someDictVar['x']

---
Produces the results:

As expected:

Hello Me
someStrVar=0
someDictVar=0

Hello You
someStrVar=1
someDictVar=1


Rather unexpected results:

Hello Me
someStrVar=0
someDictVar=1   ##Here's the error.  THIS SHOULD BE: someDictVar=0 ##
Hello You
someStrVar=1
someDictVar=1

---
Notice that the property and string att are correct in both
iterations. But the dict attribute isn't.
Would appreicate any help at all.

Thanks,
Ray

--~--~-~--~~~---~--~~
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] Remixing RSS/ATOM feeds

2009-04-07 Thread Ivan Zuzak

Hi all,

I'm developing an AppEngine service that will fetch an RSS/ATOM,
change something in it (add/remove/change some elements) and then
output the modified feed.

I'm using urlfetch to fetch the feed and feedparser to parse it into
memory. And now I need a way of modifying the feedparser memory
structure and generating an output feed. As I understand, feedparser
was not created with this purpose and doesn't support this.

So, is there any other library that might help me with this? I'm not
generating a feed from scratch, I'm just remixing an existing feed.
Using minidom to do low-level xml handling is something I'd like to
avoid since the task is very closely related to RSS/ATOM feeds. But if
anyone has done something similar with minidom - please let me know.

Any other ideas on implementing this service?

Thanks,
Ivan

--~--~-~--~~~---~--~~
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: SMS via Email

2009-04-07 Thread Paul Kinlan
Just to poke something in here,

I am developing an XMPP -> SMS gateway that can be used to send any XMPP
message to a mobile phone.

We use Wadja.com to send the messages (they are a free but advertising
supported) and from what I know are not accepting new "free" accounts.  We
got one because we developed twe2.com (twitter to SMS).  The XMPP -> SMS
gateway currently supports Wadja.

Until XMPP is available on the app engine, I could open a http endpoint on
www.twe2.im for you to send your message a mobile phone.  All messages would
be from "twe2", let me know if you or anyone is interested and I will check
with that we are ok to proxy some of the SMS's

Paul

2009/4/7 Ray Malone 

>
> I agree.  I'm using a gateway as well.  I wouldn't recommend the email
> method.   Jim, I am curious on who you are using for .03 a text.
>
> On Apr 7, 10:30 am, Jim  wrote:
> > I've had problems with that approach in the past including:
> >
> > -- the email to text gateways operated by the cell carriers can be
> > very slow
> > -- I've found that the gateways often mess up the formatting of the
> > message, depending on the gateway it might wind up in the SMS with
> > things like "SUBJ:" and "BODY" and junk like that cluttering up your
> > message.
> > -- determining the correct email gateway to use from the cellphone
> > number is no longer reliable.  It used to be you could look up with
> > the area code and exchange and determine which carrier issued the
> > number and then know which email gateway to use.  Well, actually you
> > can still do that but with cellphone number portability, you don't
> > know which carrier currently services the number, you just know which
> > carrier issued the number.   So you wind up having to ask your
> > customer to provide their phone number and specify which carrier they
> > use.
> >
> > I recently did an integration to a SMS gateway.  They have a variety
> > of APIs including HTTPS, XML, SOAP, etc.  They have a callback
> > mechanism so your app gets status updates on the delivery status of
> > each message.  Only draw back is it cost $0.03 per message.  There may
> > be cheaper ones out there, I'm not sure as I got tired of looking
> > around and three cents was reasonable for my usage.
> >
> > It just depends on if you're willing to live with the limitations,
> > then the email approach is fine.  If you need something cleaner and
> > more reliable, then I suggest subscribing to a sms gateway service.
> >
> > On Apr 7, 1:21 am, MajorProgamming  wrote:
> >
> > > I am currently developing an app that will send text message
> > > reminders. I was thinking of using each carrier's email gateway to
> > > handle the messages. Are there any potential scaling problems with
> > > this method?
> >
> > > (I plan on sending the text messages via the GAE Email system)
> >
> > > 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] Noobie with google app engine. Need some help.

2009-04-07 Thread Aaron

HI, I am very confused on how to use google app engine. I have a job
as a vp of technlology. I was a website developer.

I only know html,css, php, python.  I never heavily used python so I
am rusty with it.

I only had experience with using apache and mysql.

I am new to google application and have been doing research on it. I
found it uses a different database system.

I already made the website for the company now I need to upload it to
google apps and also make modifications in python scripts to add some
server sided functionalities.

So far it's been about 4 weeks. My ceo is really upset. He never gave
a deadline but he wanted it to be done as soon as possible. He is now
breathing down my neck. I am stressed out .

So to make matters worst I need to learn how google apps engine works
and how I can use it in a quick manner.


The ceo has been talking to the previous VP of technology.

He is the one the made the website. I just added onto it. So He gave
me the original website files meaningthe python and the folder.

He told me I have to use manage.py  to update or test run the app
meaning the website.

Currently I tried the manage.py which was inthe apps folder  and this
folder was in googles engine folder.

I been getting a error saying can't find SDK.

So I moved the manage.py to googles app engine folder and it worked.
Yet when I tried updating It showed 96 files trying to be updated to
googles server then I got a limit error.

I e-mailed the ceo which e-mailed the previous programmer. He told me
that the manage.py needs to stay in the app folder not the google
engine folder.

He told me I need to use  PATH=$PATH:/path/to/google_

I don't understand what he ment by that.   I am guessing  I had to add
that to manage.py?

Not sure I might e-mail them back.

So currently I need to just update a website which is a web app on
google app engine.

So I need to learn the structure of how to use  google apps engine.

I need a tutorial that would explain  me the structure  from a php/
mysql apache user point of view.

Meaning I need a explanation  what's used with php and what is used in
google that relates to php in the server sided way.

I thiink that would be the quickest way i can learn this else I might
get fired. I do really need to keep this job.

I told the ceo that I am not experienced in google nor python. I  did
some coding in python but it wasn't that much to make any app.
--~--~-~--~~~---~--~~
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] A better datastore viewer?

2009-04-07 Thread Ray Malone

Does anyone know a better datastore viewer then the one that comes by
default.
--~--~-~--~~~---~--~~
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: SMS via Email

2009-04-07 Thread Ray Malone

I agree.  I'm using a gateway as well.  I wouldn't recommend the email
method.   Jim, I am curious on who you are using for .03 a text.

On Apr 7, 10:30 am, Jim  wrote:
> I've had problems with that approach in the past including:
>
> -- the email to text gateways operated by the cell carriers can be
> very slow
> -- I've found that the gateways often mess up the formatting of the
> message, depending on the gateway it might wind up in the SMS with
> things like "SUBJ:" and "BODY" and junk like that cluttering up your
> message.
> -- determining the correct email gateway to use from the cellphone
> number is no longer reliable.  It used to be you could look up with
> the area code and exchange and determine which carrier issued the
> number and then know which email gateway to use.  Well, actually you
> can still do that but with cellphone number portability, you don't
> know which carrier currently services the number, you just know which
> carrier issued the number.   So you wind up having to ask your
> customer to provide their phone number and specify which carrier they
> use.
>
> I recently did an integration to a SMS gateway.  They have a variety
> of APIs including HTTPS, XML, SOAP, etc.  They have a callback
> mechanism so your app gets status updates on the delivery status of
> each message.  Only draw back is it cost $0.03 per message.  There may
> be cheaper ones out there, I'm not sure as I got tired of looking
> around and three cents was reasonable for my usage.
>
> It just depends on if you're willing to live with the limitations,
> then the email approach is fine.  If you need something cleaner and
> more reliable, then I suggest subscribing to a sms gateway service.
>
> On Apr 7, 1:21 am, MajorProgamming  wrote:
>
> > I am currently developing an app that will send text message
> > reminders. I was thinking of using each carrier's email gateway to
> > handle the messages. Are there any potential scaling problems with
> > this method?
>
> > (I plan on sending the text messages via the GAE Email system)
>
> > 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] how to make db.Model work with django serializers

2009-04-07 Thread Coonay

Sir, i need your help, so i have to put it here too,i need a simple
and effective module to make django work on
app engine effective.

http://groups.google.com/group/django-users/browse_thread/thread/f0a80a8d466ba121


--~--~-~--~~~---~--~~
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: SMS via Email

2009-04-07 Thread Jim

I've had problems with that approach in the past including:

-- the email to text gateways operated by the cell carriers can be
very slow
-- I've found that the gateways often mess up the formatting of the
message, depending on the gateway it might wind up in the SMS with
things like "SUBJ:" and "BODY" and junk like that cluttering up your
message.
-- determining the correct email gateway to use from the cellphone
number is no longer reliable.  It used to be you could look up with
the area code and exchange and determine which carrier issued the
number and then know which email gateway to use.  Well, actually you
can still do that but with cellphone number portability, you don't
know which carrier currently services the number, you just know which
carrier issued the number.   So you wind up having to ask your
customer to provide their phone number and specify which carrier they
use.

I recently did an integration to a SMS gateway.  They have a variety
of APIs including HTTPS, XML, SOAP, etc.  They have a callback
mechanism so your app gets status updates on the delivery status of
each message.  Only draw back is it cost $0.03 per message.  There may
be cheaper ones out there, I'm not sure as I got tired of looking
around and three cents was reasonable for my usage.

It just depends on if you're willing to live with the limitations,
then the email approach is fine.  If you need something cleaner and
more reliable, then I suggest subscribing to a sms gateway service.



On Apr 7, 1:21 am, MajorProgamming  wrote:
> I am currently developing an app that will send text message
> reminders. I was thinking of using each carrier's email gateway to
> handle the messages. Are there any potential scaling problems with
> this method?
>
> (I plan on sending the text messages via the GAE Email system)
>
> 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: Bulkuploader error - No implementation for kind \'%s\'' % kind

2009-04-07 Thread satish

if main.py were not in the path, import would've failed. Import
statement worked fine.

On Apr 6, 6:52 pm, 秦锋  wrote:
> main.py is in PYTHONPATH?
> What's your command looks like?
>
> On 4月7日, 上午6时28分, satish  wrote:
>
> > I am trying to use bulkuploader for the first time using the procedure
> > outlined at this page (http://code.google.com/appengine/docs/python/
> > tools/uploadingdata.html) but I am receiving the following error. Can
> > someone please help? Thank you.
>
> > No implementation for kind \'%s\'' % kind
>
> > No implementation for kind 'AliasCommand'
>
> > AliasCommand is a entity in main.py
>
> > -aliascommand_loader.py (Loader Class) begin --
>
> > import datetime
> > from google.appengine.ext import db
> > import __main__
>
> > class AliasCommandLoader(Loader):
> >   def __init__(self):
> > Loader.__init__(self, 'AliasCommand',
> > [('alias', str),
> >  ('command', str)
> >  ])
> > -aliascommand_loader.py (Loader Class) end --
>
> > -main.py (the main module in which AliasCommand entity is
> > defined) begin --
> > 
> > 
> > class AliasCommand(db.Model):
> > alias = db.StringProperty(required=False)
> > command = db.StringProperty(required=False)
> > createdate = db.DateTimeProperty(auto_now_add=True)
> > 
> > 
> > -main.py (the main module in which AliasCommand entity is
> > defined) end --
--~--~-~--~~~---~--~~
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] app.yalm static dir's url arguments?

2009-04-07 Thread Lee Olayvar
I'm having a bit of trouble matching a url argument, perhaps someone can
tell me what im doing wrong?

The example i am roughly following is:

handlers:

- url: /item-(.*?)/category-(.*)
  static_files: archives/\2/items/\1


So the problem is i have a directory where there is a "dynamic" in the
middle of static directories, which means i need to use a url argument of
sorts. Some examples of what this looks like, with the url on the left and
directory on the right, would be:

http://example.com/static/dynamic_dir_one/css/style.css ==
/static/dynamic_dir_one/html/css/style.css
 http://example.com/static/dynamic_dir_two/css/style.css ==
/static/dynamic_dir_two/html/css/style.css

Now its that dynamic dir in the middle causing problems.

Here is the app.yaml code i am attempting to use to solve this:

- url: /static/(.+)/html/(.*)
  static_dir: /static/\1/html/\2

What is wrong with that? Now i havent used regex in atleast 3 or 4 years, so
im having a hell of a time figuring it out again, but doesn't that equate
to:

/static/(any character except linebreaks up to "/")/html/(anything else)

Any ideas? I'd appreciate a hint at what im doing wrong.

Thanks,
Lee

--~--~-~--~~~---~--~~
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] Support for a new runtime language

2009-04-07 Thread Marcel Overdijk

On the GAE program roadmap page (http://code.google.com/intl/nl/
appengine/docs/roadmap.html) it's noted that in the first half of 2009
GAE will have support for a new runtime language.

I'm wondering what the status is about this.

Will there be announcement soon? Will it be realy available in Q2 2009
or will it just be announced in Q2 and perhaps only delivered in in
2010?

Google has always been very quit about this. But to make decissions on
using or not using GAE has to with future directions of the platform.
I think it's important to shed some light on this.
--~--~-~--~~~---~--~~
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: dev_appserver.py and ListenBackLog directive

2009-04-07 Thread Tim Hoffman

Hi

Whilst python has listen, you won't get to use it in gae,

all outbound calls will use urlfetch (a feature of the google sdk)
and you will never have access to the inbound connection.

Rgds

T

On Apr 7, 9:10 am, Khai  wrote:
> This is regarding the development server (dev_appserver.py or SDK).  I
> am inquiring on this because I am developing an opensocial application
> which makes three asynchronous requests, but one of them fail
> (randomly).  I know that the development server is single-threaded.
> I've started another discussion on how to run the development server
> as a mod_python script (but haven't got enough discussion yet).
>
> I am a novice python user.  I've look python documentation on socket
> programming.  It uses the listen().  I've look up the manual page for
> listen() with "man 2 listen", and it signature is:
>
> int listen(int sockfd, int backlog);
>
> I've grep the development SDK source for 'listen(' but did not find
> it.  I am confused.  Is the listen() system call being used at all?  I
> am running dev_appserver.py on Linux.  Please guide me in the right
> direction.
>
> Thanks
> Khai
>
> On Apr 4, 4:40 pm, Tim Hoffman  wrote:
>
> > 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 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: GQL "join" question

2009-04-07 Thread Marcel Overdijk

This would mean really a lot of updates.

E.g.
- User1, 1 jan 2009, 1000
- User1, 1 feb 2009, 1100

This would mean craeting an avarage usage of 100 for jan 2009.

Now next time the user enters a meter reading is e.g. 1 jan 2010 with
value 2300.
This would mean in this case createing avaerage use valuues for feb,
mar, apr, may, jun, jul, aug, sep, okt, nov and dec 2009.

And als updating average usage of all users.
In a SQL join this would be less dificult and error prone to
implement.

I'm wondering if my use case fits the BigTable principles and thus
GAE, or that I would be better of with a realtional database.
But this would mean I can't use GAE and have to go for another cloud
solution like mor.ph



On 7 apr, 06:36, GregF  wrote:
> On Apr 7, 6:53 am, Marcel Overdijk  wrote:
>
> > - User1, 1 jan 2009, 1000
> > - User1, 1 feb 2009, 1100
> > - User1, 1 mar 2009, 1200
> > The avarage will be 1100 ***
>
> > But maybe the user misses registering the meter reading on 1 feb:
> > - User1, 1 jan 2009, 1000
> > - User1, 1 mar 2009, 1200
> > The average will still be 1100 ***
> > I guess the answer will be to store average values when creating (and
> > updaing existing) meter reading records.
> > But how should this be implemented?
>
> *** Corrected.
>
> Yes, calculate averages when you update the table. If you don't need
> to search for particular readings, you might want to store the meter
> readings in a db.ListProperty(int), with an associated db.ListProperty
> (int) of timestamps.
>
> I need to count various things in my app, so I define a model and
> helper functions like this:
>
> class Counter(db.Model):
>   count=db.IntegerProperty(required=True,default=0)
>
> # Increment a counter
> # NB: These are functions, not class members
> def _incrementCounter(counterId,amount):
>         counter=Counter.get_by_id(counterId)
>         counter.count+=amount
>         counter.put()
> def incrementCounter(counterId,amount=1):
>         db.run_in_transaction(_incrementCounter,counterId,amount)
>
> I'm sure you can do something similar for your averages.
--~--~-~--~~~---~--~~
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: GQL "join" question

2009-04-07 Thread Marcel Overdijk

The average is maybe not the correct description, better is to call it
usage.

On 6 apr, 22:46, Alkis Evlogimenos ('Αλκης Ευλογημένος)
 wrote:
> On Mon, Apr 6, 2009 at 8:53 PM, Marcel Overdijk 
> wrote:
>
> > (1) Now what I want to collect is the average value per month.
> > E.g
> > - User1, 1 jan 2009, 1000
> > - User1, 1 feb 2009, 1100
> > - User1, 1 mar 2009, 1200
> > The avarage will be 100
>
> > But maybe the user misses registering the meter reading on 1 feb:
> > - User1, 1 jan 2009, 1000
> > - User1, 1 mar 2009, 1200
> > The average will still be 1200
>
> The average is 1200? Or 100?
>
> --
>
> 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
-~--~~~~--~~--~--~---