[google-appengine] Re: Model field value choices - can the list be generated dynamically?

2008-12-30 Thread Martynas Brijunas
Gents, I cannot thank you enough for all your help. The community here is great and makes a n00b like me feel welcome. Happy New Year! Best regards, Martin --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Google Ap

[google-appengine] Iterating through XML with django templates

2008-12-28 Thread Martynas Brijunas
Hi, I have run into difficulties when trying to access certain parts of Picasa's XML from django templates. For example, a list of tags for a photograph can be found under a "media:keywords" tag. However, when I try to parse something like {{ photo.media:group.media:keywords }} in a template, I a

[google-appengine] Re: Model field value choices - can the list be generated dynamically?

2008-12-28 Thread Martynas Brijunas
Hi Alex/David, > Alternatively, you can override the __unicode__ method of your model: > >class SizeOption(db.Model): >code = db.StringProperty(required = True) >html = db.StringProperty(required = True, multiline = True) > >def __unicode__(self): >return self.code > > You ca

[google-appengine] Re: Model field value choices - can the list be generated dynamically?

2008-12-27 Thread Martynas Brijunas
Hi Consultuning/David, > You probably want to use a ReferenceProperty to a Colour entity in > your Product model. Then, customise your form something like this: > > class ProductEntryForm(djangoforms.ModelForm): > class Meta: > model = Product > > colour = djangoforms.ModelChoiceField(Col

[google-appengine] Model field value choices - can the list be generated dynamically?

2008-12-27 Thread Martynas Brijunas
Hi, I have a couple of model classes which are in one-to-many relationship. For example, one of the classes is a Product, and another one is Colours. I know that I can list the acceptable field values in this manner: size_code = db.StringProperty(required = True, choices = ['colour1', 'colour2'

[google-appengine] [RESOLVED]: Custom HTTP 404/500 messages

2008-09-30 Thread Martynas Brijunas
Hi Alex, > The template directory is specified in the settings.py, for example: > TEMPLATE_DIRS = ( >     os.path.join(os.path.dirname(__file__), 'templates'), > ) I could not find any instructions on how to use settings.py with the plain GAE. However, I came accross one of your older posts here

[google-appengine] Re: Terrible

2008-09-30 Thread Martynas Brijunas
> I just hope a user and a unuser never actully meet, the anti-matter > explosion could destroy the earth! Colleagues are looking at me as if I am crazy, cannot stop laughing --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Goog

[google-appengine] Custom HTTP 404/500 messages

2008-09-29 Thread Martynas Brijunas
Hi Alexander, > If you are using Django under GAE, just add your 404.html and 500.html > templates to the templates folder. Django will take care of the rest. thank you for your reply. Let me slightly rephrase the question - can this be done with the built in django (I believe Google have built

[google-appengine] Custom HTTP 404/500 messages

2008-09-27 Thread Martynas Brijunas
Hi, I have read that django has the ability to define custom 404 and 500 pages. Does the same apply to the GAE? If yes, how do I go about doing this? Thank you! Martin --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups

[google-appengine] Re: High Amount CPU Quota should be removed

2008-09-27 Thread Martynas Brijunas
Hi, > Basically your understanding is correct. I conclude my experience > about tuning against the high CPU quota here: my own app gives the "high amount of CPU" error when it hits the root of the app. I can think of this: 1. py files are probably getting compiled after the app is uploaded 2. a

[google-appengine] Re: appcfg.py and 500 Server Error

2008-09-24 Thread Martynas Brijunas
Hi Marzia, > We just discovered that this is actually the same issue from last night, and > it has been fixed (a post to the downtime-notify group will be forthcoming). > > If your app added a new index on deploy, the 500 error occurred.  It has > been fixed, so all you need to do is re-upload yo

[google-appengine] Re: appcfg.py and 500 Server Error

2008-09-24 Thread Martynas Brijunas
> Can you try to vacuum the index again?  It seems that this index got stuck > in the deleting state, and I moved it to 'Error' again. Still no luck... Not a big deal, it does not do any harm to my app. I would hate to waste your time on such a trivial matter. But if you want to use this as a tro

[google-appengine] Re: appcfg.py and 500 Server Error

2008-09-24 Thread Martynas Brijunas
Hi Marzia, > I did move the indexes, I responded to your post on this > thread:http://groups.google.com/group/google-appengine/browse_thread/thread/... now that the index is in the Error state it still does not allow me to remove it - Error 500 :( Looks like this is a more general issue than a

[google-appengine] Re: appcfg.py and 500 Server Error

2008-09-24 Thread Martynas Brijunas
Hi Marzia, > I did move the indexes, I responded to your post on this > thread:http://groups.google.com/group/google-appengine/browse_thread/thread/... Thank you very much. Would you like me to try and break it once again by repeating what I think I was doing wrong (trying to upload an index fo

[google-appengine] Re: appcfg.py and 500 Server Error

2008-09-24 Thread Martynas Brijunas
Hi Marzia, > previous development. I removed the offending index, vacuumed the > indexes on the GAE, but then it got stuck in "Deleting" mode. > > My app id is gentlecolours. Have just checked the index that was stuck in "Deleting" mode and it has now changed to "Error". Is that something that w

[google-appengine] Re: appcfg.py and 500 Server Error

2008-09-24 Thread Martynas Brijunas
Hi Marzia/Jonk, > What is the app id with which you are seeing this issue? If you reply to me > with the information, I can look in to it. I saw exactly the same issue as Jonk this morning. It turned out that I was trying to upload an index that referred to a model that did not exist in the cod

[google-appengine] Re: Deleting index stuck

2008-09-24 Thread Martynas Brijunas
Hi, same here, the index is stuck on "Deleting", the app name is "gentlecolours". Thanks! --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Google App Engine" group. To post to this group, send email to google-appengin

[google-appengine] Re: Fwd: New Admin Console Released

2008-09-19 Thread Martynas Brijunas
Hi Marzia, I noticed something curious with the Applications Overview panel. It says that my application is not deployed despite it working properly. Is it because I was on version 0.19 prior to the upgrade? Does it not like the zero version numbers? The app is called gentlecolours. I can still g

[google-appengine] Re: Programmatic login with encrypted password?

2008-08-29 Thread Martynas Brijunas
=photo&authkey={AUTHKEY} Best regards, Martin On 28 Aug, 18:00, Martynas Brijunas <[EMAIL PROTECTED]> wrote: > Hmm, the link says that "AuthSub proxy authentication is used by web > applications which need to authenticate their users to Google > accounts". > &g

[google-appengine] Re: Programmatic login with encrypted password?

2008-08-28 Thread Martynas Brijunas
web/developers_guide_python.html#Au... > > On Thu, Aug 28, 2008 at 5:55 AM, Martynas Brijunas <[EMAIL PROTECTED]>wrote: > > > > > Hi, > > > I am looking for a way to implement Programmatic Login from my app to > > be able to retrieve private albums from Pic

[google-appengine] Re: doubt

2008-08-28 Thread Martynas Brijunas
According to this link, there is no way to do that yet: http://code.google.com/appengine/docs/gettingstarted/uploading.html On Aug 28, 11:48 am, amshuhu <[EMAIL PROTECTED]> wrote: > i create an application (jai-sample) ,this is not usefull for me can i > able to delete this application ,i tried

[google-appengine] Programmatic login with encrypted password?

2008-08-28 Thread Martynas Brijunas
Hi, I am looking for a way to implement Programmatic Login from my app to be able to retrieve private albums from Picasa. As they are private, the app would have to sign in. GData offers the ProgrammaticLogin() method which expects the password to be in clear text. The application would then ask