[google-appengine] Accessing Trees from within GAE
Hi there, I have built a tree view using Yahoo User Interface and am trying to access this tree from the GAE code. Now, if the user chooses a certain leaf node in my treehow will my cgi know which node is clicked? If someone can kindly provide a simple code sample that covers this bit, I would be very grateful. Thank you very much, Nora. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Google App Engine" group. To post to this group, send email to google-appengine@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/google-appengine?hl=en -~--~~~~--~~--~--~---
[google-appengine] Frames
Hello, I know my question sounds stupid but I am unable to move on with my work until this problem is sorted out. I need to create 2 frames in my web page. I used the frameset tag. I can display the google appengine website but am unable to display my website in the frame. I need to display utf-8 data. I tried the empty web page first but it didn't work http://www.w3.org/TR/xhtml4/DTD/xhtml4-frameset.dtd";> Hello Hello Any suggestions on what is the problem? Thank you very much, Nora --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Google App Engine" group. To post to this group, send email to google-appengine@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/google-appengine?hl=en -~--~~~~--~~--~--~---
[google-appengine] Loading new pages not in the frames present in the previous page!
Hello all, I am sure this is really a simple and silly question but I am stuck in it! I have a page that contains two frames. In one of the frames, I need to include a url to a totally new page. The problem is, the new page gets rendered in the frame that cotains the url instead of being rendered in a new page of its own. Please Help, 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 [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/google-appengine?hl=en -~--~~~~--~~--~--~---
[google-appengine] Setting the Status bars
Hello, I know my problem is a bit strange, but I wonder if anyone has managed to set the status bar to any text? How is that done? I have used: window.defaultStatus="Hello" But it didn;t work! I can't find any other way of setting the status bar? Please Help... Thank you very much. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Google App Engine" group. To post to this group, send email to google-appengine@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/google-appengine?hl=en -~--~~~~--~~--~--~---
[google-appengine] File permission ....
Hello, I am working on windows. I had some code developed in python in a directory called 'python25'. I have copied this code to a new folder on the google_appengine folder . So, now I have all my updated files on : c:\program files\googles\google_appengine\myFolder The problem is, whenever I want to copy any file in 'myFolder' to the any other folder, the system copies the original file saved in 'python25', not the updated file on google_appengine folder. I don't know why this is happening and whether google_appengine SDK sets certain file permissions when it is installed or what? Please, suggest any clues as this is crucial for my website to be published, otherwise, I won't be able to copy my website files to google server (as the very old version saved on python25 directory will be used!!) Thank you very much. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Google App Engine" group. To post to this group, send email to google-appengine@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/google-appengine?hl=en -~--~~~~--~~--~--~---
[google-appengine] Re: File permission ....
Hello, Well. I have a c:\python25 folder where the python run time is installed. I will give a more precise example, may be this will help. Say I have a file called 'nora.py' saved in the folder c:\python25... so now my file is located in c:\python25\nora.py I started to develope a website, so I created a new folder for my website under c:\program files\google\google_appengine. and named it NoraWebSite. Now I have c:\program files\google\google_appengine \NoraWebSite\ I copied nora.py to c:\program files\google\google_appengine \NoraWebSite\ I will definitly need to do some modifications to nora.py. Now, I have two nora.py files in two different locations and theortically speaking, they contain different data to some extent. The problem is: if I try to copy the modified nora.py to another location, I end up having the first nora.py! It seems that there is an inheritance somehowif I try to copy the child, I end up with the parent file. I hope this is clearer now. Thank you very much. On Nov 28, 4:02 pm, "Jesaja Everling" <[EMAIL PROTECTED]> wrote: > Hello Nora, > > to be honest, I don't really understand your problem. > Did you rename the folder "python25" to "myFolder"? > I don't understand what you mean by "the system copies the original > file saved in 'python25'.? > Is the folder python25 still around? > What files are inside this folder? > Maybe you have still referenced the folder in your app.yaml? > I wouldn't name any folder "python25", because that's the folder where > your python runtime is stored, at least if you have python 2.5 > installed (c:\python25). > This doesn't have to lead to problems, but it can, because this folder > will be in your path... > > Best Regards, > > Jesaja Everling > > > > On Fri, Nov 28, 2008 at 4:04 PM, Nora <[EMAIL PROTECTED]> wrote: > > > Hello, > > I am working on windows. I had some code developed in python in a > > directory called 'python25'. I have copied this code to a new folder > > on the google_appengine folder . So, now I have all my updated files > > on : > > > c:\program files\googles\google_appengine\myFolder > > > The problem is, whenever I want to copy any file in 'myFolder' to the > > any other folder, the system copies the original file saved in > > 'python25', not the updated file on google_appengine folder. > > > I don't know why this is happening and whether google_appengine SDK > > sets certain file permissions when it is installed or what? > > > Please, suggest any clues as this is crucial for my website to be > > published, otherwise, I won't be able to copy my website files to > > google server (as the very old version saved on python25 directory > > will be used!!) > > > Thank you very much.- Hide quoted text - > > - Show quoted text - --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Google App Engine" group. To post to this group, send email to google-appengine@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/google-appengine?hl=en -~--~~~~--~~--~--~---
[google-appengine] Re: File permission ....
Hi Jesaja, I have tried what you proposed but it didn't work. Now, I have done some more expermenting and found the following: If I copy c:\python25\nora.py to a temporary folder on the c:\, for example c:\MyWork\nora.py and modify c:\MyWork\nora.py ...then if you copy it anywhere, there is no problem. The problem occurs only if you tend to copy a file from c:\python25 straight to google_appengine. Any clues? Thanks a lot. On Nov 28, 5:16 pm, "Jesaja Everling" <[EMAIL PROTECTED]> wrote: > Hi Nora, > > the nora.py in c:\python25 will always be used, because it is in your > path, and will get imported before your modified file. > ("import sys; sys.path"). > I would suggest to just move the file c:\python25\nora.py out of the > way, into another folder which is not in your PATH. > > > > On Fri, Nov 28, 2008 at 5:39 PM, Nora <[EMAIL PROTECTED]> wrote: > > > Hello, > > Well. I have a c:\python25 folder where the python run time is > > installed. I will give a more precise example, may be this will help. > > Say I have a file called 'nora.py' saved in the folder c:\python25... > > so now my file is located in c:\python25\nora.py > > > I started to develope a website, so I created a new folder for my > > website under c:\program files\google\google_appengine. and named it > > NoraWebSite. Now I have c:\program files\google\google_appengine > > \NoraWebSite\ > > > I copied nora.py to c:\program files\google\google_appengine > > \NoraWebSite\ > > > I will definitly need to do some modifications to nora.py. Now, I > > have two nora.py files in two different locations and theortically > > speaking, they contain different data to some extent. > > > The problem is: if I try to copy the modified nora.py to another > > location, I end up having the first nora.py! > > It seems that there is an inheritance somehowif I try to copy the > > child, I end up with the parent file. > > > I hope this is clearer now. > > > Thank you very much. > > > On Nov 28, 4:02 pm, "Jesaja Everling" <[EMAIL PROTECTED]> wrote: > >> Hello Nora, > > >> to be honest, I don't really understand your problem. > >> Did you rename the folder "python25" to "myFolder"? > >> I don't understand what you mean by "the system copies the original > >> file saved in 'python25'.? > >> Is the folder python25 still around? > >> What files are inside this folder? > >> Maybe you have still referenced the folder in your app.yaml? > >> I wouldn't name any folder "python25", because that's the folder where > >> your python runtime is stored, at least if you have python 2.5 > >> installed (c:\python25). > >> This doesn't have to lead to problems, but it can, because this folder > >> will be in your path... > > >> Best Regards, > > >> Jesaja Everling > > >> On Fri, Nov 28, 2008 at 4:04 PM, Nora <[EMAIL PROTECTED]> wrote: > > >> > Hello, > >> > I am working on windows. I had some code developed in python in a > >> > directory called 'python25'. I have copied this code to a new folder > >> > on the google_appengine folder . So, now I have all my updated files > >> > on : > > >> > c:\program files\googles\google_appengine\myFolder > > >> > The problem is, whenever I want to copy any file in 'myFolder' to the > >> > any other folder, the system copies the original file saved in > >> > 'python25', not the updated file on google_appengine folder. > > >> > I don't know why this is happening and whether google_appengine SDK > >> > sets certain file permissions when it is installed or what? > > >> > Please, suggest any clues as this is crucial for my website to be > >> > published, otherwise, I won't be able to copy my website files to > >> > google server (as the very old version saved on python25 directory > >> > will be used!!) > > >> > Thank you very much.- Hide quoted text - > > >> - Show quoted text -- Hide quoted text - > > - Show quoted text - --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Google App Engine" group. To post to this group, send email to google-appengine@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/google-appengine?hl=en -~--~~~~--~~--~--~---
[google-appengine] File permission again
Hello, I have created a directory on my pc for google appengine and underneath a directory for my website files. For some reason, Whenever I try to copy any of my website files to another place, I don't get the updated file, I get an old version of the file before the last updates!! I don't know why? Any clues? did anyone encountered a similar problem before? Thank you very much. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Google App Engine" group. To post to this group, send email to google-appengine@googlegroups.com To unsubscribe from this group, send email to google-appengine+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/google-appengine?hl=en -~--~~~~--~~--~--~---
[google-appengine] 'Contact us' form
Hello, I am trying to add a contact us form to my website that will run on GAE server. My code simply checks the email address correctness of the person contacting me, and sends the email to me. http://www.w3.org/TR/xhtml4/DTD/xhtml4-frameset.dtd";> Contact us Message Subject : Your Email : Please enter your message : For some reason, the email is not sent though the posting gives me http-1.0 200 signal(successful post) Any idea where is the problem? Thank you very much Thank you very much --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Google App Engine" group. To post to this group, send email to google-appengine@googlegroups.com To unsubscribe from this group, send email to google-appengine+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/google-appengine?hl=en -~--~~~~--~~--~--~---
[google-appengine] smtp mail
Hello, I am trying to send an email from my application. I am testing it using smtp option dev_appserver.py --smtp_host=smtp.mail.yahoo.com --smtp_port=25 -- smtp_user=noorhanabbas --smtp_password=blabla myapp I get an smtpauthentication error Any clues what am I doing wrong? Thank you very much. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Google App Engine" group. To post to this group, send email to google-appengine@googlegroups.com To unsubscribe from this group, send email to google-appengine+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/google-appengine?hl=en -~--~~~~--~~--~--~---
[google-appengine] Re: Unicode problem with GAE datastore
Hello, may be you need to enclose your text in unicode() As I am developing a website for arabic unicode, I do the following: p = unicode('نورا') Try thatit might work Good luck Nora On Dec 17, 7:42 am, Lacrima wrote: > My English is not very good, so sorry if my post is not clear. > > I use Django to develop my GAE application. > The problem is I can't put my unicode data to datastore. Here is a bit > of my view.py: > > # -*- coding: utf8 -*- > from myproject.myapp.models import * > c = Clients() > c.Name = "Иванов" #Here is some text in Russian > c. put() > > This code calls an exception: 'ascii' codec can't decode byte 0xd0 in > position 0: ordinal not in range(128) > Why is it so? > The first string # -*- coding: utf8 -*- allows me to use unicode > symbols in my code, but this doesn't allow me to put data to the > datastore. > > Also I use google.appengine.ext.db.djangoforms and django.forms to > represent my datastore at my site. And the very interesting thing is > that if I put unicode data through the site it works, but if I put > unicode data pragrammatically it doesn't work! > > Please help me! --~--~-~--~~~---~--~~ 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] sendmail program
Hello, I am using GAE sdk on windows, can anyone please advise me on how to get the sendmail program work with GAE? Thanks. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Google App Engine" group. To post to this group, send email to google-appengine@googlegroups.com To unsubscribe from this group, send email to google-appengine+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/google-appengine?hl=en -~--~~~~--~~--~--~---
[google-appengine] Understanding how the mail api works.
Hello, I have developed a 'Contact us' form that collects the contact information of the visitors and should send this information to the administrator of the website. I used the EmailMessage function from the Mail api. Now, how can I get real email messages. When I publish my website, how can people send me their contact details in an email message? Thank you very much. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Google App Engine" group. To post to this group, send email to google-appengine@googlegroups.com To unsubscribe from this group, send email to google-appengine+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/google-appengine?hl=en -~--~~~~--~~--~--~---
[google-appengine] Uploading an applicaiton
Hello, I have uploaded my applicaiton an hour ago but don't know where to go from there. Tried to search for it on the web, but couldn't find it.my application is called quranytopics Any clues on what is going wrong or do I have to wait for more time before trying to access it? Thank you very much, Nora --~--~-~--~~~---~--~~ 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] Error after uploading my application.
Hello, I uploaded my application, then when I tried to access it, I got this message on my messages log : Traceback (most recent call last): File "/base/data/home/apps/quranytopics/1.332072605143586857/ qurany.py", line 3798, in QChapter.LoadAllChapters() File "/base/data/home/apps/quranytopics/1.332072605143586857/ EnglishQuranChapters.py", line 116, in LoadAllChapters self.LoadedStemTokChapterDict[ChapterIndex] = self.__LoadEnglishStemTokChapter(g, self.VersesCount[count]) File "/base/data/home/apps/quranytopics/1.332072605143586857/ EnglishQuranChapters.py", line 96, in __LoadEnglishStemTokChapter VerseNo= re.split('\s', line[4:]) File "/base/python_dist/lib/python2.5/re.py", line 165, in split return _compile(pattern, 0).split(string, maxsplit) I run this application on my computer and never had this problem beforeis there a problem in using string.split() function? Thank you very much. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Google App Engine" group. To post to this group, send email to google-appengine@googlegroups.com To unsubscribe from this group, send email to google-appengine+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/google-appengine?hl=en -~--~~~~--~~--~--~---
[google-appengine] Re: Error after uploading my application.
I am running python 2.52 Thank you very much. On Mar 15, 8:59 am, Nora wrote: > Hello, > I uploaded my application, then when I tried to access it, I got this > message on my messages log > > : > Traceback (most recent call last): > File "/base/data/home/apps/quranytopics/1.332072605143586857/ > qurany.py", line 3798, in > QChapter.LoadAllChapters() > File "/base/data/home/apps/quranytopics/1.332072605143586857/ > EnglishQuranChapters.py", line 116, in LoadAllChapters > self.LoadedStemTokChapterDict[ChapterIndex] = > self.__LoadEnglishStemTokChapter(g, self.VersesCount[count]) > File "/base/data/home/apps/quranytopics/1.332072605143586857/ > EnglishQuranChapters.py", line 96, in __LoadEnglishStemTokChapter > VerseNo= re.split('\s', line[4:]) > File "/base/python_dist/lib/python2.5/re.py", line 165, in split > return _compile(pattern, 0).split(string, maxsplit) > > I run this application on my computer and never had this problem > beforeis there a problem in using string.split() function? > > Thank you very much. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Google App Engine" group. To post to this group, send email to google-appengine@googlegroups.com To unsubscribe from this group, send email to google-appengine+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/google-appengine?hl=en -~--~~~~--~~--~--~---
[google-appengine] After uploading
Hello, I developed an application and it was working fine on my computing. When I uploaded it, it didn't work and gave exception error Memory Error I open many files but I do close them, I can't find a reason for that... Any clues? Thanks a lot --~--~-~--~~~---~--~~ 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] Exception...Memory Error
Hello, I have developed an applicaiton that reads some information from text files and stores them into dictionaries. During the loading of information into my dictionaries, I get an exception error for 'Memory Error'. I understand that this means over use of cpu time. I have no clues on how to sort this problem Any ideas, I am really stuck and don't know how to sort the problem out! Thank you very much, Nora --~--~-~--~~~---~--~~ 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] Request time limit
Hello, My application needs much time to load some text files into dictionaries in memory. I am unable to load all the data because of the request time limitation. Is there another way of getting around this? Thank you very much. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Google App Engine" group. To post to this group, send email to google-appengine@googlegroups.com To unsubscribe from this group, send email to google-appengine+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/google-appengine?hl=en -~--~~~~--~~--~--~---
[google-appengine] Re: Request time limit
Thank you for your reply. Well, to make myself clearer My application has to load a massive amount of information from text files when it first loads... Now, I am interested in your second option but could you make it clearer please. Thank you again. On Mar 17, 1:40 pm, Tim Hoffman wrote: > Why do you need to load that much data into memory on eachrequest > if you are creating a dictionary you could > > 1. create model entities for each dictionary > and load them as required by their key > > 2. preprocess the text files into dictionary code and import them > > T > > On Mar 17, 9:59 pm, Nora wrote: > > > > > Hello, > > My application needs muchtimeto load some text files into > > dictionaries in memory. I am unable to load all the data because of > > therequesttimelimitation. Is there another way of getting around > > this? > > > Thank you very much.- 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: Request time limit
My application is a keyword search query tool that uses the Quran. I am loading 2 copies of the English Quran(where every verse has eight parallel english translations) and two Arabic copies of the Quran. The Quran has 114 chapters and the longest chapter has 285 versesjust to give you an idea of the size of the data that needs to be loaded. Does that help at allI am really stuck into this as the application worked fine on my computer before uploading it to the server but now it is not!! very disappointing and I have little background about databases and datastores and how to search these structures Thank you very much for your great help, Nora On Mar 17, 2:14 pm, Tim Hoffman wrote: > for instance you could preparse these text files and generate python > code > which you would just import > > What sort of data do you have in your text file and how do you plan > to use it ? > How many records (dictionary keys and values) are in these text > file ? > > That would help me formulate a clearer example. > > However do you really need all of that data in memory for every > request? > > T > > On Mar 17, 11:01 pm, Nora wrote: > > > > > Thank you for your reply. > > > Well, to make myself clearer > > My application has to load a massive amount of information from text > > files when it first loads... > > Now, I am interested in your second option but could you make it > > clearer please. > > > Thank you again. > > > On Mar 17, 1:40 pm, Tim Hoffman wrote: > > > > Why do you need to load that much data into memory on eachrequest > > > if you are creating a dictionary you could > > > > 1. create model entities for each dictionary > > > and load them as required by their key > > > > 2. preprocess the text files into dictionary code and import them > > > > T > > > > On Mar 17, 9:59 pm, Nora wrote: > > > > > Hello, > > > > My application needs muchtimeto load some text files into > > > > dictionaries in memory. I am unable to load all the data because of > > > > therequesttimelimitation. Is there another way of getting around > > > > this? > > > > > Thank you very much.- Hide quoted text - > > > > - Show quoted text -- 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: Request time limit
Thank you very much for your helpmuch appreciated. One last thing, could you please point me on to where to find information about model objects creation...is that the datastore thing? On Mar 17, 2:45 pm, Tim Hoffman wrote: > Hi > > Ok, that better much more info ;-) > > Really you should create model objects which representing > chapters, verses and parallel translation of each verse, along > with appropriate metadata or references that will allow you to find > the > appropriate translation. > > Whilst you example might have worked in dev (thats because dev doesn't > enforce transaction/request limits) > you really have no chance of getting this application to scale. > > There is another way, (but gae is really designed for what I described > earlier) > You could preparse all the chapters and verses in to the dictionaries > as you are currently doing > offline, (ie not even under the dev server) then write those > dictionaries as strings to files so that the output is something like > as follows > > for instance. file mybook.py contains the following > > book = {'chapter1': {'verse1':'some text'}} > (I have left out lots of data ;-) > > Then in your code you could import mybook e.g. > > import mybook > mybook.book['chapter1']['verse1'] > > But really you should learn all about models ;-) > > See ya > > T > > Then you could import the module > > On Mar 17, 11:34 pm, Nora wrote: > > > > > My application is a keyword search query tool that uses the > > Quran. I am loading 2 copies of the English Quran(where every verse > > has eight parallel english translations) and two Arabic copies of the > > Quran. The Quran has 114 chapters and the longest chapter has 285 > > versesjust to give you an idea of the size of the data that needs > > to be loaded. > > > Does that help at allI am really stuck into this as the > > application worked fine on my computer before uploading it to the > > server but now it is not!! very disappointing and I have little > > background about databases and datastores and how to search these > > structures > > > Thank you very much for your great help, > > > Nora > > > On Mar 17, 2:14 pm, Tim Hoffman wrote: > > > > for instance you could preparse these text files and generate python > > > code > > > which you would just import > > > > What sort of data do you have in your text file and how do you plan > > > to use it ? > > > How many records (dictionary keys and values) are in these text > > > file ? > > > > That would help me formulate a clearer example. > > > > However do you really need all of that data in memory for every > > > request? > > > > T > > > > On Mar 17, 11:01 pm, Nora wrote: > > > > > Thank you for your reply. > > > > > Well, to make myself clearer > > > > My application has to load a massive amount of information from text > > > > files when it first loads... > > > > Now, I am interested in your second option but could you make it > > > > clearer please. > > > > > Thank you again. > > > > > On Mar 17, 1:40 pm, Tim Hoffman wrote: > > > > > > Why do you need to load that much data into memory on eachrequest > > > > > if you are creating a dictionary you could > > > > > > 1. create model entities for each dictionary > > > > > and load them as required by their key > > > > > > 2. preprocess the text files into dictionary code and import them > > > > > > T > > > > > > On Mar 17, 9:59 pm, Nora wrote: > > > > > > > Hello, > > > > > > My application needs muchtimeto load some text files into > > > > > > dictionaries in memory. I am unable to load all the data because of > > > > > > therequesttimelimitation. Is there another way of getting around > > > > > > this? > > > > > > > Thank you very much.- Hide quoted text - > > > > > > - Show quoted text -- Hide quoted text - > > > > - Show quoted text -- 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: Request time limit
I need to use the nltk on the input from the user (things like stemming the word, tokenizing it) and then use the stemmedTokenized word to search my Quran database.Do you think this will post a problem? Thank you very muchyou have been very very helpful to me. On Mar 17, 3:20 pm, Tim Hoffman wrote: > I noticed you posted the same question to nltk group, > if you are planning on using nltk I think what i said earlier won't > work > if you are planning on using nltk to process the text, > > you may need to do some rethinking on your approach > > T > > On Mar 17, 11:52 pm, Nora wrote: > > > > > Thank you very much for your helpmuch appreciated. > > > One last thing, could you please point me on to where to find > > information about model objects creation...is that the datastore > > thing? > > > On Mar 17, 2:45 pm, Tim Hoffman wrote: > > > > Hi > > > > Ok, that better much more info ;-) > > > > Really you should create model objects which representing > > > chapters, verses and parallel translation of each verse, along > > > with appropriate metadata or references that will allow you to find > > > the > > > appropriate translation. > > > > Whilst you example might have worked in dev (thats because dev doesn't > > > enforce transaction/request limits) > > > you really have no chance of getting this application to scale. > > > > There is another way, (but gae is really designed for what I described > > > earlier) > > > You could preparse all the chapters and verses in to the dictionaries > > > as you are currently doing > > > offline, (ie not even under the dev server) then write those > > > dictionaries as strings to files so that the output is something like > > > as follows > > > > for instance. file mybook.py contains the following > > > > book = {'chapter1': {'verse1':'some text'}} > > > (I have left out lots of data ;-) > > > > Then in your code you could import mybook e.g. > > > > import mybook > > > mybook.book['chapter1']['verse1'] > > > > But really you should learn all about models ;-) > > > > See ya > > > > T > > > > Then you could import the module > > > > On Mar 17, 11:34 pm, Nora wrote: > > > > > My application is a keyword search query tool that uses the > > > > Quran. I am loading 2 copies of the English Quran(where every verse > > > > has eight parallel english translations) and two Arabic copies of the > > > > Quran. The Quran has 114 chapters and the longest chapter has 285 > > > > versesjust to give you an idea of the size of the data that needs > > > > to be loaded. > > > > > Does that help at allI am really stuck into this as the > > > > application worked fine on my computer before uploading it to the > > > > server but now it is not!! very disappointing and I have little > > > > background about databases and datastores and how to search these > > > > structures > > > > > Thank you very much for your great help, > > > > > Nora > > > > > On Mar 17, 2:14 pm, Tim Hoffman wrote: > > > > > > for instance you could preparse these text files and generate python > > > > > code > > > > > which you would just import > > > > > > What sort of data do you have in your text file and how do you plan > > > > > to use it ? > > > > > How many records (dictionary keys and values) are in these text > > > > > file ? > > > > > > That would help me formulate a clearer example. > > > > > > However do you really need all of that data in memory for every > > > > > request? > > > > > > T > > > > > > On Mar 17, 11:01 pm, Nora wrote: > > > > > > > Thank you for your reply. > > > > > > > Well, to make myself clearer > > > > > > My application has to load a massive amount of information from text > > > > > > files when it first loads... > > > > > > Now, I am interested in your second option but could you make it > > > > > > clearer please. > > > > > > > Thank you again. > > > > > > > On Mar 17, 1:40 pm, Tim Hoffman wrote: > > > > > > > > Why do you need to load that much data into memory on eachrequest &g
[google-appengine] Mail api
Hello, In my application, I have a 'Contact Us' page for my users to fill in if they want to send any feedback to me. It requiers the user to fill in a number of fields and to provide his/her email address. A button 'Send' is used to send the user's filled form to me. I am using the mail api to perform this task. The 'Send' button sends data using AJAX techniques to the server. The server then sends an email to me. The problem is: my application only accepts the administrator email address. It does not check (as is documented if the user is signed in or not then redirect him to sign in and back to my application url) My code looks like this: class ContactusHandler (webapp.RequestHandler): @login_required def __init__(self): webapp.RequestHandler.__init__(self) self.methods = ContactusMethods() def get(self): func = None action = self.request.get('action') if action: if action[0] == '_': self.error(403) # access denied return else: func = getattr(self.methods, action, None) if not func: self.error(404) # file not found return else : args = () while True: key = 'arg%d' % len(args) val = self.request.get(key) if val: args = (simplejson.loads(val),) else: break result = func(*args) self.response.out.write(simplejson.dumps(result)) #-- class ContactusMethods: def Contactus(self, *args): FName = str( args[0][0]) LName = str( args[0][1]) Email = str( args[0][2]) MessageBody = str( args[0][3]) message = mail.EmailMessage(sender = Email, subject="My Website") message.to = "" message.body = MessageBody message.send() Could you please advise me on what is going wrong here? Thank you very much, Nora --~--~-~--~~~---~--~~ 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] Datastore newbie question
Hello, As I haven't used data stores before, I am unable to imagine how it is going to behave:) I have some text files and I want to store its contents in datastores. Do I load the datastore at the beginning and then upload my application and use the data in the datastore from there? Or do we fill the datastore up every time my applicaiton gets a request for it? Is the data saved in a certain file so when the application is uploaded on the google server, this file is transfered on the server and I start to use it from there? Thank you very much, N. --~--~-~--~~~---~--~~ 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] Help with Mail api
Hello, In my application, I have a 'Contact Us' page for my users to fill in if they want to send any feedback to me. It requiers the user to fill in a number of fields and to provide his/her email address. A button 'Send' is used to send the user's filled form to me. I am using the mail api to perform this task. The problem is: my application only accepts the administrator email address. It does not check (as is documented if the user is signed in or not then redirect him to sign in and back to my application url) My code looks like this: class ContactusHandler (webapp.RequestHandler): @login_required def __init__(self): webapp.RequestHandler.__init__(self) self.methods = ContactusMethods() def get(self): func = None action = self.request.get('action') args = () while True: key = 'arg%d' % len(args) val = self.request.get(key) if val: args = (simplejson.loads(val),) else: break result = func(*args) self.response.out.write(simplejson.dumps(result)) #-- class ContactusMethods: def Contactus(self, *args): FName = str( args[0][0]) #first name LName = str( args[0][1])#last name Email = str( args[0][2]) # visitor email address MessageBody = str( args[0][3]) message = mail.EmailMessage(sender = Email, subject="My Website") message.to = "" message.body = MessageBody message.send() Could you please advise me on what is going wrong here? Why does not direct the user to the google login page? Thank you very much, Nora --~--~-~--~~~---~--~~ 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] Please helppppp with the mail api
Hi, I have developed an application that has a contact us page. It collects the visitor's details and sends them to me(the administrator) and then I use them to send me an email using the mail api. Now, at the server side, I get all the information about the user and then I need to validate that this is a registered user and direct him/ her to the login page. I am unable to do this bit! Is there any function that gets an email address and checks whether this email belongs to a registered user or not? the user.get_Current_user() is not working in my code because the user does not exist on the server side as the details are sent asynchronously to me! Any clues please? Thanks a lot. --~--~-~--~~~---~--~~ 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: Datastore newbie question
Could you please tell me where is this datastore storedI tried to test with some data but I am unable to clear its contents. I used the --clear_datastore option but I keep getting the message that it is unable to find the datastore files! Thank you very much, Nora On Mar 20, 5:49 pm, Pavel Byles wrote: > You can use the bulkloader to initialize your > data:http://code.google.com/appengine/docs/python/tools/uploadingdata.html > > -Pavel > > On Mar 19, 1:57 pm, Nora wrote: > > > > > Hello, > > As I haven't used data stores before, I am unable to imagine how it is > > going to behave:) I have some text files and I want to store its > > contents in datastores. Do I load thedatastoreat the beginning and > > then upload my application and use the data in thedatastorefrom > > there? Or do we fill thedatastoreup every time my applicaiton gets a > > request for it? Is the data saved in a certain file so when the > > application is uploaded on the google server, this file is transfered > > on the server and I start to use it from there? > > > Thank you very much, > > N.- 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] When will google search engine index my application?
Hi, I have uploaded my application a couple of weeks ago on GAE server. When will it be possible to use Google search engine to google my website? Do I need to do anything more to get this service or is it automatic? Thank you very much. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Google App Engine" group. To post to this group, send email to google-appengine@googlegroups.com To unsubscribe from this group, send email to google-appengine+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/google-appengine?hl=en -~--~~~~--~~--~--~---
[google-appengine] Sitemaps
Hello, I need to develop a sitemap for my application. I understand that it is an xml file. Do I add a link to this file in my website. I keep getting that google crawler is unable to find this sitemap.xml in my application. I created the file autmoatically using google tools and just left it with the rest of the filesCould anyone please let me know how to handle this sitemap file? Thank you very much. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Google App Engine" group. To post to this group, send email to google-appengine@googlegroups.com To unsubscribe from this group, send email to google-appengine+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/google-appengine?hl=en -~--~~~~--~~--~--~---
[google-appengine] The sitemap file
Hello, I want my application to be indexed by the google crawler quickly. I used the automatic sitemap generator to produce one. I copied my sitemap.xml to my account and added a static handler in my app.yaml file. - url: / static_files: sitemap.xml upload: sitemap.xml But still I get the (404 error) file not found Does anyone have a clue why this is taking place? Thank you very much. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Google App Engine" group. To post to this group, send email to google-appengine@googlegroups.com To unsubscribe from this group, send email to google-appengine+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/google-appengine?hl=en -~--~~~~--~~--~--~---
[google-appengine] Google indexing ajax components
Hello, I have created a website using GAE. I used a treeview control from Yahoo user Interface Library. I ceated a sitemap for the site to help Google crawlers to quickly index my site. I use a tree that supports AJAX techniques: 1. When the user clicks on one of the children nodes of my tree, the request is sent asynchronously to the GAE server to fetch the data for the client. 2. When children nodes are requested for a parent node, the request is sent asynchronously to the server to fetch the children nodes for the client. Both of the above tasks send the same query names( /rpc?), for the same handler on the server side, for instance, RPCHandler class. But different class methods are used each time according to the action required; fetching children nodes or in the first situation fetching data linked to a child node. Now, the google crawler is reporting to me that the file http://myapplication/rpc is not found. There is no file called rpc in the first place as this is the method used to fetch data asynchronously!!! Do I need to tell google to ignore those links? how can I do that? On the other hand, is it possible to make it clear to the crawler that these are ajax calls not pages to load? If you have any clues, please help as this is the first website I develop and I don't have any clues on how to sort out the problem... Thank you very much. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Google App Engine" group. To post to this group, send email to google-appengine@googlegroups.com To unsubscribe from this group, send email to google-appengine+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/google-appengine?hl=en -~--~~~~--~~--~--~---
[google-appengine] Re: Google indexing ajax components
I wonder if someone has used the robots.txt in bypass the ajax calls in the code Can anyone please advise if this is a good option or not. If it is a good option, should I treat this robots.txt as a static file or what? Thank you very much, Nora On Apr 25, 8:43 pm, Nora wrote: > Hello, > I have created a website using GAE. I used a treeview control from > Yahoo user Interface Library. I ceated a sitemap for the site to > helpGooglecrawlers to quickly index my site. I use a tree that > supportsAJAXtechniques: > 1. When the user clicks on one of the children nodes of my tree, the > request is sent asynchronously to the GAE server to fetch the data for > the client. > 2. When children nodes are requested for a parent node, the request is > sent asynchronously to the server to fetch the children nodes for the > client. > > Both of the above tasks send the same query names( /rpc?), for the > same handler on the server side, for instance, RPCHandler class. But > different class methods are used each time according to the action > required; fetching children nodes or in the first situation fetching > data linked to a child node. > > Now, thegooglecrawler is reporting to me that the filehttp://myapplication/rpc > is not found. There is no file called rpc in the first place as this > is the method used to fetch data asynchronously!!! > > Do I need to tellgoogleto ignore those links? how can I do that? > On the other hand, is it possible to make it clear to the crawler that > these areajaxcalls not pages to load? > > If you have any clues, please help as this is the first website I > develop and I don't have any clues on how to sort out the problem... > > Thank you very much. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Google App Engine" group. To post to this group, send email to google-appengine@googlegroups.com To unsubscribe from this group, send email to google-appengine+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/google-appengine?hl=en -~--~~~~--~~--~--~---
[google-appengine] Strange behaviour
Hello, Googlebot indexed one page in my website but something that I can't understand is happening What I know about indexing is that if you search for any word contained in the page that has been indexed, this page should be displayed in the search results. For example, If my page contains the word 'Hello' and I search for the word 'Hello', shouldn't my page(that has been indexed and contains this page)be included in the search results? Can anyone advise me on what is going wrong there! Thank you very much, Nora --~--~-~--~~~---~--~~ 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] appcfg.py unable to authenticate me!
Hello, I am trying to update my application code but every time appcfg.py aborts the updates because it is unable to authenticate me! I don't know whether this is related to IE-7.0 which is also unable to sign me in. But firfox is okay with that and that is how I was able to post this message. Any idea what is going wrong or how can I ask appcfg.py to authenticate me through firefox or I don't know. Please, help as I am unable to update the applications and this is very sad:( Thank you very much 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] appcfg.py authentication
Hello, I wonder if anyone knows how does the appcfg.py module authenticate applications during the update process? If I type: appcfg.py update myapplication/ How does the authentication takes place, I am asked to input my email address and password but it refuses to authenticate them though they are my administrator information that I always used during the update process. I need to know, is the authentication done in GAE server somewhere or in my pc? Thank you very much 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: failed to log in to appengine
I have the same problemI hope someone can help us please?! Thanks a lot. On Jun 4, 11:33 am, sven wrote: > Hello, > > Since yesterday evening I can't connect to "http:// > appengine.google.com" anymore. Does anybody know whether the Google > servers are down or so. Or (more likely) could this be something on my > side? > > I want to log in to create a second google app engine (JAVA) app. This > was failing yesterday with the error that I needed to verify my > account via SMS first. However I already did this weeks ago. > Apparently this is caused by adding my gmail address to my account > (instead of the one I was using before). If anybody should know the > solution to this problem, I'd appreciate receiving it. > > Thanks, > Sven. --~--~-~--~~~---~--~~ 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] Invitation to connect on LinkedIn
LinkedIn Google, I'd like to add you to my professional network on LinkedIn. - Nora Learn more: https://www.linkedin.com/e/isd/409535070/TmxcoZJC/ -- What is LinkedIn and why should you join? http://learn.linkedin.com/what-is-linkedin/ -- (c) 2008, LinkedIn Corporation --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Google App Engine" group. To post to this group, send email to google-appengine@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/google-appengine?hl=en -~--~~~~--~~--~--~---