adamalton.blogspot.com
Adam Alton: Replacing Question Mark in URL With Javascript
http://adamalton.blogspot.com/2014/02/replacing-question-mark-in-url-with.html
Saturday, 1 February 2014. Replacing Question Mark in URL With Javascript. First published on adamalton.co.uk. On 29th March 2010. This seemingly simple task caught me out slightly the other day. The usual trip to Google was surprisingly un-helpful. And then I had an important realisation. Document.location.replace(/regex/, 'replacement'). IS NOT THE SAME AS. String(document.location).replace(/regex/, 'replacement'). Url without query string = String(document.location).replace(/(#? 21 April 2015 at 01:39.
adamalton.blogspot.com
Adam Alton: Pagination with App Engine cursors in django-nonrel
http://adamalton.blogspot.com/2014/02/pagination-with-app-engine-cursors-in.html
Saturday, 1 February 2014. Pagination with App Engine cursors in django-nonrel. First published on adamalton.co.uk. On 21st August 2011. A much more extensive version of this post is available on the Potato London website. Using Datastore cursors to paginate through a metric bucket load of objects. Note: if you're using the webapp framework rather than Django with djangoappengine then this blog post is not for you. Let's write some code. Template.html h1 Page 1 /h1 a href="/myview/? This is fine when you...
adamalton.blogspot.com
Adam Alton: The Wonders of Google Suggest
http://adamalton.blogspot.com/2014/02/the-wonders-of-google-suggest.html
Saturday, 1 February 2014. The Wonders of Google Suggest. First published on adamalton.co.uk. On 29th March 2010. I believe that these works of comedy genius speak for themselves. And the US version (google.com):. 21 April 2015 at 01:43. Thank you for your very nice article, do not forget to read my articles also. Kata kata mutiara cinta. Are deliberately presented to the loyal readers. Subscribe to: Post Comments (Atom). View my complete profile. Pagination with App Engine cursors in django-nonre.
adamalton.blogspot.com
Adam Alton: The Science of Zope & Plone Form Libraries
http://adamalton.blogspot.com/2014/02/the-science-of-zope-plone-form-libraries.html
Saturday, 1 February 2014. The Science of Zope and Plone Form Libraries. First published on adamalton.co.uk. Time spent trying to find, and then eventually reading the limited documentation, and trying to understand how the form library works. The point at which you say "bollocks to it" and you copy and paste the example code, which does some unexplained magic and somehow gives you a form. The point at which you realise you need to customise the auto-generated form because it looks shit. Thank you for yo...
adamalton.blogspot.com
Adam Alton: Custom Django Template Tags in Google App Engine
http://adamalton.blogspot.com/2014/02/custom-django-template-tags-in-google.html
Saturday, 1 February 2014. Custom Django Template Tags in Google App Engine. First published on adamalton.co.uk. From google.appengine.ext.webapp import template. And secondly, the Django one, which is what we'll use to build our template tag:. From django import template as django template. Make sure you import them as different names, otherwise you'll be screwed. Next up, write your custom template tag, making sure to use things from django template (or whatever you imported it as) where necessary:.
adamalton.blogspot.com
Adam Alton: Displaying Django GenericForeignKey As Single Form Field
http://adamalton.blogspot.com/2014/02/displaying-django-genericforeignkey-as.html
Saturday, 1 February 2014. Displaying Django GenericForeignKey As Single Form Field. First published on adamalton.co.uk. On 31st March 2010. The Django content types framework. 10 June 2014 at 03:30. Thanks for the tip! Note that in AttachableNoteForm. init , you dont set the initial value for the choice field. This can be done with:. Initial = type:%s-id:%s % (self.instance.content type id, self.instance.object id). Selffields[content object].initial = initial. 21 April 2015 at 01:43.
adamalton.blogspot.com
Adam Alton: February 2014
http://adamalton.blogspot.com/2014_02_01_archive.html
Saturday, 1 February 2014. Pagination with App Engine cursors in django-nonrel. First published on adamalton.co.uk. On 21st August 2011. A much more extensive version of this post is available on the Potato London website. Using Datastore cursors to paginate through a metric bucket load of objects. Note: if you're using the webapp framework rather than Django with djangoappengine then this blog post is not for you. Let's write some code. Template.html h1 Page 1 /h1 a href="/myview/? This is fine when you...