Re: [google-appengine] Help Blobstore!
Dear Nick, I thought was easyier to use the blobstore, but I see that there is something I can't understand. I will check everything deeper and then I will ask what doesn't work to me. thanks. Max 2010/6/21 Nick Johnson (Google) > Hi Massimiliano, > > On Mon, Jun 21, 2010 at 8:55 AM, Massimiliano < > massimiliano.pietr...@gmail.com> wrote: > >> Hi Nick, >> I have checked all the documentations: >> >> 1. When I try to store the blob key in the IMG DB EXAPANDO, the app reach >> the upload, but it seems to have problem before the self.redirect. I suppose >> I can't do it here, but where can I do it? And how? >> > > What problem? It's impossible to suggest a fix without knowing what problem > you're encountering. > > >> >> class ImgHandler(blobstore_handlers.BlobstoreUploadHandler): >> def post(self): >> upload_files = self.get_uploads('img') >> self.redirect('/') >> >> 2. Is there way to store a link to the imagine stored in the blobstore? I >> want to pass to the web framework just a link to the blobstore. >> > > Please see the second link I provided. You can store blob keys in the > datastore using the BlobReferenceProperty. > > -Nick Johnson > > >> >> {% for img in immagini %} >> >> {% endfor %} >> >> In my understanding I have always to have a link to the app that will >> elaborate everything. Right? >> >> Thanks >> >> Max >> >> >> >> >> 2010/6/21 Nick Johnson (Google) >> >> Hi Massimiliano, >>> >>> Have you examined the example app in the documentation? This provides >>> most of what you need: >>> http://code.google.com/appengine/docs/python/blobstore/overview.html#Complete_Sample_App >>> >>> The BlobRerefenceProperty provides the property you need to store a blob >>> key in the datastore: >>> http://code.google.com/appengine/docs/python/datastore/typesandpropertyclasses.html#BlobReferenceProperty >>> >>> -Nick Johnson >>> >>> On Sun, Jun 20, 2010 at 9:41 PM, Massimiliano < >>> massimiliano.pietr...@gmail.com> wrote: >>> Hi all, I can't understand the Blobstore. I have the lines below and I can upload files in the Blobstore: class ImgHandler(blobstore_handlers.BlobstoreUploadHandler): def post(self): upload_files = self.get_uploads('img') self.redirect('/') Now I'm trying to show it to my users. How can I do it? I can't understand the Appengine Guide. I want to store a link to the image in the datastore in a DB Expando in order to have all in one place (link to the image,user name,...): class IMG(db.Expando): Date = db.DateTimeProperty(auto_now_add=True) In the HTML I want to have something like that: {% for img in immagini %} {% endfor %} Can someone help me? Regards Massimiliano -- My email: massimiliano.pietr...@gmail.com My Google Wave: massimiliano.pietr...@googlewave.com -- 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-appeng...@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. >>> >>> >>> >>> -- >>> Nick Johnson, Developer Programs Engineer, App Engine Google Ireland Ltd. >>> :: Registered in Dublin, Ireland, Registration Number: 368047 >>> Google Ireland Ltd. :: Registered in Dublin, Ireland, Registration >>> Number: 368047 >>> >>> -- >>> 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-appeng...@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. >>> >> >> >> >> -- >> >> My email: massimiliano.pietr...@gmail.com >> My Google Wave: massimiliano.pietr...@googlewave.com >> >> -- >> 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-appeng...@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. >> > > > > -- > Nick Johnson, Developer Programs Engineer, App Engine Google Ireland Ltd. > :: Registered in Dublin, Ireland, Registration Number: 368047 > Google Ireland Ltd. :: Registered in Dublin, Ireland, Registration Number: > 368047 > > -- > 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-appeng...@googlegroups.com. > To unsubscribe from this group, send email to > google-appen
Re: [google-appengine] Help Blobstore!
Hi Massimiliano, On Mon, Jun 21, 2010 at 8:55 AM, Massimiliano < massimiliano.pietr...@gmail.com> wrote: > Hi Nick, > I have checked all the documentations: > > 1. When I try to store the blob key in the IMG DB EXAPANDO, the app reach > the upload, but it seems to have problem before the self.redirect. I suppose > I can't do it here, but where can I do it? And how? > What problem? It's impossible to suggest a fix without knowing what problem you're encountering. > > class ImgHandler(blobstore_handlers.BlobstoreUploadHandler): > def post(self): > upload_files = self.get_uploads('img') > self.redirect('/') > > 2. Is there way to store a link to the imagine stored in the blobstore? I > want to pass to the web framework just a link to the blobstore. > Please see the second link I provided. You can store blob keys in the datastore using the BlobReferenceProperty. -Nick Johnson > > {% for img in immagini %} > > {% endfor %} > > In my understanding I have always to have a link to the app that will > elaborate everything. Right? > > Thanks > > Max > > > > > 2010/6/21 Nick Johnson (Google) > > Hi Massimiliano, >> >> Have you examined the example app in the documentation? This provides most >> of what you need: >> http://code.google.com/appengine/docs/python/blobstore/overview.html#Complete_Sample_App >> >> The BlobRerefenceProperty provides the property you need to store a blob >> key in the datastore: >> http://code.google.com/appengine/docs/python/datastore/typesandpropertyclasses.html#BlobReferenceProperty >> >> -Nick Johnson >> >> On Sun, Jun 20, 2010 at 9:41 PM, Massimiliano < >> massimiliano.pietr...@gmail.com> wrote: >> >>> Hi all, >>> I can't understand the Blobstore. I have the lines below and I can upload >>> files in the Blobstore: >>> >>> class ImgHandler(blobstore_handlers.BlobstoreUploadHandler): >>> def post(self): >>> upload_files = self.get_uploads('img') >>> self.redirect('/') >>> >>> Now I'm trying to show it to my users. How can I do it? I can't >>> understand the Appengine Guide. >>> >>> I want to store a link to the image in the datastore in a DB Expando in >>> order to have all in one place (link to the image,user name,...): >>> >>> class IMG(db.Expando): >>> Date = db.DateTimeProperty(auto_now_add=True) >>> >>> In the HTML I want to have something like that: >>> >>> {% for img in immagini %} >>> >>> {% endfor %} >>> >>> >>> Can someone help me? >>> >>> Regards >>> >>> Massimiliano >>> >>> >>> -- >>> >>> My email: massimiliano.pietr...@gmail.com >>> My Google Wave: massimiliano.pietr...@googlewave.com >>> >>> -- >>> 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-appeng...@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. >>> >> >> >> >> -- >> Nick Johnson, Developer Programs Engineer, App Engine Google Ireland Ltd. >> :: Registered in Dublin, Ireland, Registration Number: 368047 >> Google Ireland Ltd. :: Registered in Dublin, Ireland, Registration Number: >> 368047 >> >> -- >> 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-appeng...@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. >> > > > > -- > > My email: massimiliano.pietr...@gmail.com > My Google Wave: massimiliano.pietr...@googlewave.com > > -- > 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-appeng...@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. > -- Nick Johnson, Developer Programs Engineer, App Engine Google Ireland Ltd. :: Registered in Dublin, Ireland, Registration Number: 368047 Google Ireland Ltd. :: Registered in Dublin, Ireland, Registration Number: 368047 -- 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-appeng...@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.
Re: [google-appengine] Help Blobstore!
Dear Tom, this is really clear to me know. I have to recall for each file the app and make a download. But I'm still trying to understand how to store the key of the blob. (Always in Python). Regards Massimiliano 2010/6/21 Tomas Petersson > Ahh, sorry Max , didnt notice it was python at a quick glance. I dont know > Python, but the principle is the same. > You have a class that generates the HTML for your page, you need a new > class similar to my servlet to do the actual serving of blobs. > > If you do "", the image (blob) will be > written to the same stream as the html, which wont work. > The html should load first, and when it is parsed the browser will make > another call to your new blob serving class to get the blob. > > Hope my explanation makes sense :-) > > /Tomas > > > > On Mon, Jun 21, 2010 at 10:07, Massimiliano < > massimiliano.pietr...@gmail.com> wrote: > >> Hi Tomas, >> thank you very much, but I can't understand Java, as I know just Python. >> >> Regards >> >> Massimiliano >> >> 2010/6/21 Tomas Petersson >> >>> Hello, I made a simple app to evaluate App Engine and I solved it like >>> this. >>> Hope it helps. >>> >>> Cheers, Tomas >>> >>> >>> >>> *JSP:* >>> >>> >>> *web.xml:* >>> >>> blobServe >>> >>> appengine_eval.servlets.BlobServeServlet >>> >>> >>> blobServe >>> /blobServe >>> >>> >>> *BlobServeServlet.java:* >>> package appengine_eval.servlets; >>> >>> import java.io.IOException; >>> import java.util.logging.Logger; >>> >>> import javax.servlet.http.HttpServlet; >>> import javax.servlet.http.HttpServletRequest; >>> import javax.servlet.http.HttpServletResponse; >>> >>> import com.google.appengine.api.blobstore.BlobKey; >>> import com.google.appengine.api.blobstore.BlobstoreService; >>> import com.google.appengine.api.blobstore.BlobstoreServiceFactory; >>> >>> public class BlobServeServlet extends HttpServlet { >>> >>> private static final long serialVersionUID = 1L; >>> >>> @SuppressWarnings("unused") >>> private static final Logger log = >>> Logger.getLogger(BlobServeServlet.class.getName()); >>> >>> private BlobstoreService blobstoreService = >>> BlobstoreServiceFactory.getBlobstoreService(); >>> >>> /** >>> * >>> */ >>> @SuppressWarnings("unchecked") >>> public void doGet(HttpServletRequest request, HttpServletResponse >>> response) throws IOException { >>> >>> BlobKey blobKey = new >>> BlobKey(request.getParameter("blobKeyString")); >>> blobstoreService.serve(blobKey, response); >>> >>> >>> } >>> >>> } >>> >>> -- >>> 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-appeng...@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. >>> >> >> >> >> -- >> >> My email: massimiliano.pietr...@gmail.com >> My Google Wave: massimiliano.pietr...@googlewave.com >> >> -- >> 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-appeng...@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. >> > > -- > 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-appeng...@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. > -- My email: massimiliano.pietr...@gmail.com My Google Wave: massimiliano.pietr...@googlewave.com -- 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-appeng...@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.
Re: [google-appengine] Help Blobstore!
Ahh, sorry Max , didnt notice it was python at a quick glance. I dont know Python, but the principle is the same. You have a class that generates the HTML for your page, you need a new class similar to my servlet to do the actual serving of blobs. If you do "", the image (blob) will be written to the same stream as the html, which wont work. The html should load first, and when it is parsed the browser will make another call to your new blob serving class to get the blob. Hope my explanation makes sense :-) /Tomas On Mon, Jun 21, 2010 at 10:07, Massimiliano wrote: > Hi Tomas, > thank you very much, but I can't understand Java, as I know just Python. > > Regards > > Massimiliano > > 2010/6/21 Tomas Petersson > >> Hello, I made a simple app to evaluate App Engine and I solved it like >> this. >> Hope it helps. >> >> Cheers, Tomas >> >> >> >> *JSP:* >> >> >> *web.xml:* >> >> blobServe >> >> appengine_eval.servlets.BlobServeServlet >> >> >> blobServe >> /blobServe >> >> >> *BlobServeServlet.java:* >> package appengine_eval.servlets; >> >> import java.io.IOException; >> import java.util.logging.Logger; >> >> import javax.servlet.http.HttpServlet; >> import javax.servlet.http.HttpServletRequest; >> import javax.servlet.http.HttpServletResponse; >> >> import com.google.appengine.api.blobstore.BlobKey; >> import com.google.appengine.api.blobstore.BlobstoreService; >> import com.google.appengine.api.blobstore.BlobstoreServiceFactory; >> >> public class BlobServeServlet extends HttpServlet { >> >> private static final long serialVersionUID = 1L; >> >> @SuppressWarnings("unused") >> private static final Logger log = >> Logger.getLogger(BlobServeServlet.class.getName()); >> >> private BlobstoreService blobstoreService = >> BlobstoreServiceFactory.getBlobstoreService(); >> >> /** >> * >> */ >> @SuppressWarnings("unchecked") >> public void doGet(HttpServletRequest request, HttpServletResponse >> response) throws IOException { >> >> BlobKey blobKey = new >> BlobKey(request.getParameter("blobKeyString")); >> blobstoreService.serve(blobKey, response); >> >> >> } >> >> } >> >> -- >> 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-appeng...@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. >> > > > > -- > > My email: massimiliano.pietr...@gmail.com > My Google Wave: massimiliano.pietr...@googlewave.com > > -- > 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-appeng...@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. > -- 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-appeng...@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.
Re: [google-appengine] Help Blobstore!
Hi Tomas, thank you very much, but I can't understand Java, as I know just Python. Regards Massimiliano 2010/6/21 Tomas Petersson > Hello, I made a simple app to evaluate App Engine and I solved it like > this. > Hope it helps. > > Cheers, Tomas > > > > *JSP:* > > > *web.xml:* > > blobServe > appengine_eval.servlets.BlobServeServlet > > > blobServe > /blobServe > > > *BlobServeServlet.java:* > package appengine_eval.servlets; > > import java.io.IOException; > import java.util.logging.Logger; > > import javax.servlet.http.HttpServlet; > import javax.servlet.http.HttpServletRequest; > import javax.servlet.http.HttpServletResponse; > > import com.google.appengine.api.blobstore.BlobKey; > import com.google.appengine.api.blobstore.BlobstoreService; > import com.google.appengine.api.blobstore.BlobstoreServiceFactory; > > public class BlobServeServlet extends HttpServlet { > > private static final long serialVersionUID = 1L; > > @SuppressWarnings("unused") > private static final Logger log = > Logger.getLogger(BlobServeServlet.class.getName()); > > private BlobstoreService blobstoreService = > BlobstoreServiceFactory.getBlobstoreService(); > > /** > * > */ > @SuppressWarnings("unchecked") > public void doGet(HttpServletRequest request, HttpServletResponse > response) throws IOException { > > BlobKey blobKey = new > BlobKey(request.getParameter("blobKeyString")); > blobstoreService.serve(blobKey, response); > > > } > > } > > -- > 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-appeng...@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. > -- My email: massimiliano.pietr...@gmail.com My Google Wave: massimiliano.pietr...@googlewave.com -- 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-appeng...@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.
Re: [google-appengine] Help Blobstore!
Hello, I made a simple app to evaluate App Engine and I solved it like this. Hope it helps. Cheers, Tomas *JSP:* *web.xml:* blobServe appengine_eval.servlets.BlobServeServlet blobServe /blobServe *BlobServeServlet.java:* package appengine_eval.servlets; import java.io.IOException; import java.util.logging.Logger; import javax.servlet.http.HttpServlet; import javax.servlet.http.HttpServletRequest; import javax.servlet.http.HttpServletResponse; import com.google.appengine.api.blobstore.BlobKey; import com.google.appengine.api.blobstore.BlobstoreService; import com.google.appengine.api.blobstore.BlobstoreServiceFactory; public class BlobServeServlet extends HttpServlet { private static final long serialVersionUID = 1L; @SuppressWarnings("unused") private static final Logger log = Logger.getLogger(BlobServeServlet.class.getName()); private BlobstoreService blobstoreService = BlobstoreServiceFactory.getBlobstoreService(); /** * */ @SuppressWarnings("unchecked") public void doGet(HttpServletRequest request, HttpServletResponse response) throws IOException { BlobKey blobKey = new BlobKey(request.getParameter("blobKeyString")); blobstoreService.serve(blobKey, response); } } -- 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-appeng...@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.
Re: [google-appengine] Help Blobstore!
Hi Nick, I have checked all the documentations: 1. When I try to store the blob key in the IMG DB EXAPANDO, the app reach the upload, but it seems to have problem before the self.redirect. I suppose I can't do it here, but where can I do it? And how? class ImgHandler(blobstore_handlers.BlobstoreUploadHandler): def post(self): upload_files = self.get_uploads('img') self.redirect('/') 2. Is there way to store a link to the imagine stored in the blobstore? I want to pass to the web framework just a link to the blobstore. {% for img in immagini %} {% endfor %} In my understanding I have always to have a link to the app that will elaborate everything. Right? Thanks Max 2010/6/21 Nick Johnson (Google) > Hi Massimiliano, > > Have you examined the example app in the documentation? This provides most > of what you need: > http://code.google.com/appengine/docs/python/blobstore/overview.html#Complete_Sample_App > > The BlobRerefenceProperty provides the property you need to store a blob > key in the datastore: > http://code.google.com/appengine/docs/python/datastore/typesandpropertyclasses.html#BlobReferenceProperty > > -Nick Johnson > > On Sun, Jun 20, 2010 at 9:41 PM, Massimiliano < > massimiliano.pietr...@gmail.com> wrote: > >> Hi all, >> I can't understand the Blobstore. I have the lines below and I can upload >> files in the Blobstore: >> >> class ImgHandler(blobstore_handlers.BlobstoreUploadHandler): >> def post(self): >> upload_files = self.get_uploads('img') >> self.redirect('/') >> >> Now I'm trying to show it to my users. How can I do it? I can't understand >> the Appengine Guide. >> >> I want to store a link to the image in the datastore in a DB Expando in >> order to have all in one place (link to the image,user name,...): >> >> class IMG(db.Expando): >> Date = db.DateTimeProperty(auto_now_add=True) >> >> In the HTML I want to have something like that: >> >> {% for img in immagini %} >> >> {% endfor %} >> >> >> Can someone help me? >> >> Regards >> >> Massimiliano >> >> >> -- >> >> My email: massimiliano.pietr...@gmail.com >> My Google Wave: massimiliano.pietr...@googlewave.com >> >> -- >> 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-appeng...@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. >> > > > > -- > Nick Johnson, Developer Programs Engineer, App Engine Google Ireland Ltd. > :: Registered in Dublin, Ireland, Registration Number: 368047 > Google Ireland Ltd. :: Registered in Dublin, Ireland, Registration Number: > 368047 > > -- > 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-appeng...@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. > -- My email: massimiliano.pietr...@gmail.com My Google Wave: massimiliano.pietr...@googlewave.com -- 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-appeng...@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.
Re: [google-appengine] Help Blobstore!
Hi Massimiliano, Have you examined the example app in the documentation? This provides most of what you need: http://code.google.com/appengine/docs/python/blobstore/overview.html#Complete_Sample_App The BlobRerefenceProperty provides the property you need to store a blob key in the datastore: http://code.google.com/appengine/docs/python/datastore/typesandpropertyclasses.html#BlobReferenceProperty -Nick Johnson On Sun, Jun 20, 2010 at 9:41 PM, Massimiliano < massimiliano.pietr...@gmail.com> wrote: > Hi all, > I can't understand the Blobstore. I have the lines below and I can upload > files in the Blobstore: > > class ImgHandler(blobstore_handlers.BlobstoreUploadHandler): > def post(self): > upload_files = self.get_uploads('img') > self.redirect('/') > > Now I'm trying to show it to my users. How can I do it? I can't understand > the Appengine Guide. > > I want to store a link to the image in the datastore in a DB Expando in > order to have all in one place (link to the image,user name,...): > > class IMG(db.Expando): > Date = db.DateTimeProperty(auto_now_add=True) > > In the HTML I want to have something like that: > > {% for img in immagini %} > > {% endfor %} > > > Can someone help me? > > Regards > > Massimiliano > > > -- > > My email: massimiliano.pietr...@gmail.com > My Google Wave: massimiliano.pietr...@googlewave.com > > -- > 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-appeng...@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. > -- Nick Johnson, Developer Programs Engineer, App Engine Google Ireland Ltd. :: Registered in Dublin, Ireland, Registration Number: 368047 Google Ireland Ltd. :: Registered in Dublin, Ireland, Registration Number: 368047 -- 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-appeng...@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 Blobstore!
Hi all, I can't understand the Blobstore. I have the lines below and I can upload files in the Blobstore: class ImgHandler(blobstore_handlers.BlobstoreUploadHandler): def post(self): upload_files = self.get_uploads('img') self.redirect('/') Now I'm trying to show it to my users. How can I do it? I can't understand the Appengine Guide. I want to store a link to the image in the datastore in a DB Expando in order to have all in one place (link to the image,user name,...): class IMG(db.Expando): Date = db.DateTimeProperty(auto_now_add=True) In the HTML I want to have something like that: {% for img in immagini %} {% endfor %} Can someone help me? Regards Massimiliano -- My email: massimiliano.pietr...@gmail.com My Google Wave: massimiliano.pietr...@googlewave.com -- 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-appeng...@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.