[appengine-java] Re: Can't send mail with attachment using JavaMail API

2009-11-14 Thread mably
Hi Ikai, have you been able to reproduce my Converting attachment data failed exception ? I'm still stuck on this strange bug. Thanx for your help. On 11 nov, 00:00, mably fm2...@mably.com wrote: Of course, here is below my email relay servlet class.  What I'm willing to do is to hide my

[appengine-java] Re: NullPointer on key

2009-11-14 Thread datanucleus
What state is the object in when you access its field ? (Call JDOHelper.getObjectState(obj)). Since no transaction boundaries or PM lifecycle is presented, it's hard to guess. If you leave the object to become transient then it will likely have its field values nulled when leaving the transaction/

[appengine-java] Re: Changing default encryption policy of GAE

2009-11-14 Thread vbart
I'm also missing it. I found that an issue was created regards BouncyCastle, so hopefully if BC were available, then also JCE unlimited strength could be enabled. You can vote for it: http://code.google.com/p/googleappengine/issues/detail?id=1612 Vaclav -- You received this message because you

[appengine-java] TaskEngine sample patched for GWT 2.0 MS 2

2009-11-14 Thread Stuart Moffatt
All, [excuse the cross posting to gwt/appengine] The TaskEngine sample application (http://taskengine.googlecode.com) by jaimeyap is a Google Web Toolkit application that runs on App Engine (http://taskengine.appspot.com) but is especially designed for use on iPhone. TaskEngine depends on GWT

[appengine-java] Re: How to speed up JSP compile time?

2009-11-14 Thread Steph
This happens: - running dev_appserver - with JSP files of just any size. - seems to be blocking on initializing the datastore I tried to set --jvm_flag=-Xmx1G in my dev_appserver.cmd file but it does not seem to help much (i don't use eclipse) Another other advice? On Nov 13, 12:00 pm, Toby

[appengine-java] Re: Datastore retrieve error

2009-11-14 Thread Gerd Saurer
Does anybody see a failure in the persistence code? On Oct 27, 3:29 pm, Gerd Saurer gerd.sau...@gmail.com wrote: public SyncConfigResult create(){  SyncConfigResult retVal = null;  PersistenceManager pm = PMF.get().getPersistenceManager();  try {   SyncConfiguration syncConfig = new

[appengine-java] Re: Now available: JDO/JPA preview release with inheritance support

2009-11-14 Thread Abe Parvand
Hey Max, Do you have an example for JPA using inheritance, and preferrably an abstract class being involved as well? Thanks in advance. On Oct 23, 4:07 pm, Max Ross maxr+appeng...@google.com wrote: Hi everyone, I've been plugging away at adding support for inheritance to our JDO/JPA

[appengine-java] Re: Cannot get guestbook.jsp of Guestbook app to work

2009-11-14 Thread zhiw...@gmail.com
1. make sure use jdk1.5 or 1.6 2. uninstall your jre , only let jdk in your computer. On Nov 15, 8:10 am, Martin martin.j.lebor...@gmail.com wrote: Hello - I'm trying to work through the Guestbook tutorial of Google App Engine tutorial.  (Using Eclipse), but getting stuck at the section

[appengine-java] Re: Now available: JDO/JPA preview release with inheritance support

2009-11-14 Thread Todd Vierling
On Nov 14, 4:33 pm, Abe Parvand eparv...@gmail.com wrote: Do you have an example for JPA using inheritance, and preferrably an abstract class being involved as well? Thanks in advance. If there will be only abstract superclasses for common functionality, you simply need to use the

[appengine-java] How do I swap two items in a list (owned relationship) in JDO?

2009-11-14 Thread Peter Recore
I have a TestEntity that has an ArrayList of ChildEntities. I want to get the Entity from the datastore, update an int field in the child entity, and then swap the position of the two child entities. However, as soon as I swap the entities, it appears as though the updates to the int field are

[google-appengine] Re: @login_required

2009-11-14 Thread Tim Hoffman
Hi You should probably put the @login_required on the view method that presents the form (ie the get) that the user would then post from. Rgds T On Nov 14, 3:41 pm, 风笑雪 kea...@gmail.com wrote: Hi, you can see the code in SDK: google_appengine\google\appengine\ext\webapp\util.py

[google-appengine] Re: template getting rendered incorrectly

2009-11-14 Thread GAEfan
I think you'd better check your logs. There must be some other error on the page or in the view. First view the source of the page and see if it's blank. -- You received this message because you are subscribed to the Google Groups Google App Engine group. To post to this group, send email to

[google-appengine] Re: get IST time?

2009-11-14 Thread Simo Salminen
Not really related to this, but I had following problem: how to convert local finnish time zone to utc. I could not really find solution to this. Using python time library does not work because time.tzset does not work on app engine. In the end I decided to build solution by hand, only working for

[google-appengine] Re: get IST time?

2009-11-14 Thread Simo Salminen
Forget the method first_sunday: def first_sunday(d): while 1: if d.weekday() == 6: # sunday return d d -= datetime.timedelta(days=1) On Nov 14, 7:41 pm, Simo Salminen ssalm...@gmail.com wrote: Not really related to this, but I had following problem: how to

[google-appengine] Re: pattern for getting one record and updating it...

2009-11-14 Thread deostroll
Don't understand the db.get(some_key) part...why is it possible to do such a call in the first place...? I mean wht is so special in the db model we've defined which allows us to do a db.get()...? --deostroll -- You received this message because you are subscribed to the Google Groups Google

[google-appengine] Re: get IST time?

2009-11-14 Thread deostroll
How should I determine the timedelta offset..is it based on GMT...? On Nov 14, 10:45 pm, Simo Salminen ssalm...@gmail.com wrote: Forget the method first_sunday: def first_sunday(d):     while 1:         if d.weekday() == 6: # sunday             return d         d -=

[google-appengine] When naked domain will be available again

2009-11-14 Thread dudu
Anyone knows if will naked domains be available agina on google appengine and google apps? I need short url to my app be accessable to mobile devices more easy =[ -- You received this message because you are subscribed to the Google Groups Google App Engine group. To post to this group, send

[google-appengine] Re: Low traffic site sleeps?

2009-11-14 Thread Devel63
This is a real problem for GAE. Low traffic sites are getting cycled out very aggressively, sometimes in 1-3 seconds. This creates an unacceptable user experience for low traffic sites, because almost every user sees a 3-10 second delay, and if they take a couple of seconds to read the page,

[google-appengine] Re: pattern for getting one record and updating it...

2009-11-14 Thread deostroll
If u r looking for a scenario...I have a table called WorkTracker define like this: class WorkTracker(db.Model): api_key = db.StringProperty() scriptid = db.StringProperty() status = db.StringProperty() trials = db.IntegerProperty() There is a scheduled task which

[google-appengine] Re: Low traffic site sleeps?

2009-11-14 Thread Robin B
I am using this recipe to keep a hot handler at all times, so you do not see cold boot latency on a low volume app: http://appengine-cookbook.appspot.com/recipe/hot-handler Robin On Nov 14, 2:17 pm, Devel63 danstic...@gmail.com wrote: This is a real problem for GAE. Low traffic sites are

[google-appengine] Email Message-Ids?

2009-11-14 Thread Evan Klitzke
Hi all, I would like to know if there's a way to get the Message-Id field of a sent email.[1] I would like to access the message-id because it will allow me to thread email conversations properly (and because google clearly adds them to all outbound mail). I realize that gmail will try to apply

[google-appengine] property value is not multi-line

2009-11-14 Thread Guri
Hi, I am using Beautiful soup www.crummy.com/software/BeautifulSoup to fetch title of a url and storing it in datastore as StringProperty . It works with most of them but like www.code.google.com/ it throws an exception while storing in datastore. Exception BadValueError: Property value url_title

Re: [google-appengine] Re: Only ancestor queries are allowed inside transactions

2009-11-14 Thread Will
I want to find that particular entity, change it and save it back. When one request is doing this, I don't want another request pick up the same entity and modify it again. In short, I want the 'seek-change-save' to be serialized, as one reason the GAE transaction is designed for. Finding out the

Re: [google-appengine] Re: Only ancestor queries are allowed inside transactions

2009-11-14 Thread Eli Jones
you should read the section here: http://code.google.com/appengine/docs/python/datastore/functions.html#run_in_transaction where they show an example of iterating a counter in a transaction. If you don't already know the key for the object... then you sort of need to get it to run your

Re: [google-appengine] Re: Only ancestor queries are allowed inside transactions

2009-11-14 Thread Eli Jones
Nevermind, I see what you mean. So you want a lock on the entity once you know it exists (and satisfies your where clause). ..since something might have come along and updated the p1 column from None to Something before your transaction began.. and thus the key would refer to an entity that does