<?xml version='1.0' encoding='UTF-8'?><?xml-stylesheet href="http://www.blogger.com/styles/atom.css" type="text/css"?><feed xmlns='http://www.w3.org/2005/Atom' xmlns:openSearch='http://a9.com/-/spec/opensearchrss/1.0/'><id>tag:blogger.com,1999:blog-6237161444180571452.post6687329100209388094..comments</id><updated>2009-02-09T07:36:59.054-08:00</updated><category term='plone'/><category term='reviews'/><category term='opensuse'/><category term='python'/><category term='mandriva'/><category term='sles'/><category term='zope'/><category term='archlinux'/><category term='guides'/><category term='fedora'/><category term='django'/><category term='general'/><category term='suse'/><title type='text'>Comments on Lowkster - Pythonly yours: datepicker without admin</title><link rel='http://schemas.google.com/g/2005#feed' type='application/atom+xml' href='http://blog.lowkster.com/feeds/6687329100209388094/comments/default'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6237161444180571452/6687329100209388094/comments/default'/><link rel='alternate' type='text/html' href='http://blog.lowkster.com/2008/10/datepicker-without-admin.html'/><author><name>lowks</name><uri>http://www.blogger.com/profile/02110530883983060094</uri><email>noreply@blogger.com</email><gd:image xmlns:gd='http://schemas.google.com/g/2005' rel='http://schemas.google.com/g/2005#thumbnail' width='26' height='32' src='http://4.bp.blogspot.com/_eVgoKogosHI/Syw7w1iCCNI/AAAAAAAAAF4/XMzRuAVJvRE/S220/lowkster.jpeg'/></author><generator version='7.00' uri='http://www.blogger.com'>Blogger</generator><openSearch:totalResults>4</openSearch:totalResults><openSearch:startIndex>1</openSearch:startIndex><openSearch:itemsPerPage>25</openSearch:itemsPerPage><entry><id>tag:blogger.com,1999:blog-6237161444180571452.post-6360386924226770129</id><published>2009-02-09T07:36:00.000-08:00</published><updated>2009-02-09T07:36:00.000-08:00</updated><title type='text'>Did you ever write a follow-up post?</title><content type='html'>Did you ever write a follow-up post?</content><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6237161444180571452/6687329100209388094/comments/default/6360386924226770129'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6237161444180571452/6687329100209388094/comments/default/6360386924226770129'/><link rel='alternate' type='text/html' href='http://blog.lowkster.com/2008/10/datepicker-without-admin.html?showComment=1234193760000#c6360386924226770129' title=''/><author><name>OliWarner</name><uri>http://www.blogger.com/profile/06188539368728448045</uri><email>noreply@blogger.com</email><gd:image xmlns:gd='http://schemas.google.com/g/2005' rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:in-reply-to xmlns:thr='http://purl.org/syndication/thread/1.0' href='http://blog.lowkster.com/2008/10/datepicker-without-admin.html' ref='tag:blogger.com,1999:blog-6237161444180571452.post-6687329100209388094' source='http://www.blogger.com/feeds/6237161444180571452/posts/default/6687329100209388094' type='text/html'/><gd:extendedProperty xmlns:gd='http://schemas.google.com/g/2005' name='blogger.itemClass' value='pid-1118409618'/></entry><entry><id>tag:blogger.com,1999:blog-6237161444180571452.post-2902381001753142567</id><published>2008-10-26T23:43:00.000-07:00</published><updated>2008-10-26T23:43:00.000-07:00</updated><title type='text'>Found my way to do it too and still using the conv...</title><content type='html'>Found my way to do it too and still using the convenient 'form.as_p' function. Will blog about it later here when I finish up with this app.</content><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6237161444180571452/6687329100209388094/comments/default/2902381001753142567'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6237161444180571452/6687329100209388094/comments/default/2902381001753142567'/><link rel='alternate' type='text/html' href='http://blog.lowkster.com/2008/10/datepicker-without-admin.html?showComment=1225089780000#c2902381001753142567' title=''/><author><name>lowks</name><uri>http://www.blogger.com/profile/02110530883983060094</uri><email>noreply@blogger.com</email><gd:image xmlns:gd='http://schemas.google.com/g/2005' rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:in-reply-to xmlns:thr='http://purl.org/syndication/thread/1.0' href='http://blog.lowkster.com/2008/10/datepicker-without-admin.html' ref='tag:blogger.com,1999:blog-6237161444180571452.post-6687329100209388094' source='http://www.blogger.com/feeds/6237161444180571452/posts/default/6687329100209388094' type='text/html'/><gd:extendedProperty xmlns:gd='http://schemas.google.com/g/2005' name='blogger.itemClass' value='pid-236577077'/></entry><entry><id>tag:blogger.com,1999:blog-6237161444180571452.post-1765326175366048581</id><published>2008-10-26T10:07:00.000-07:00</published><updated>2008-10-26T10:07:00.000-07:00</updated><title type='text'>I use something like this (after adding in the JS)...</title><content type='html'>I use something like this (after adding in the JS) to create a form with a date field that works like the admin:&lt;BR/&gt;&lt;BR/&gt;from django import forms&lt;BR/&gt;from django.contrib.admin import widgets&lt;BR/&gt;class FooForm(forms.Form):&lt;BR/&gt;    bar = forms.DateField(widget=widgets.AdminDateWidget)</content><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6237161444180571452/6687329100209388094/comments/default/1765326175366048581'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6237161444180571452/6687329100209388094/comments/default/1765326175366048581'/><link rel='alternate' type='text/html' href='http://blog.lowkster.com/2008/10/datepicker-without-admin.html?showComment=1225040820000#c1765326175366048581' title=''/><author><name>evenrik</name><uri>http://www.blogger.com/profile/06023335217049082513</uri><email>noreply@blogger.com</email><gd:image xmlns:gd='http://schemas.google.com/g/2005' rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:in-reply-to xmlns:thr='http://purl.org/syndication/thread/1.0' href='http://blog.lowkster.com/2008/10/datepicker-without-admin.html' ref='tag:blogger.com,1999:blog-6237161444180571452.post-6687329100209388094' source='http://www.blogger.com/feeds/6237161444180571452/posts/default/6687329100209388094' type='text/html'/><gd:extendedProperty xmlns:gd='http://schemas.google.com/g/2005' name='blogger.itemClass' value='pid-95911675'/></entry><entry><id>tag:blogger.com,1999:blog-6237161444180571452.post-3958846831425351291</id><published>2008-10-25T05:52:00.000-07:00</published><updated>2008-10-25T05:52:00.000-07:00</updated><title type='text'>Shouldn&amp;#39;t be too hard....&lt;br&gt;&lt;br&gt;Having a quic...</title><content type='html'>Shouldn&amp;#39;t be too hard....&lt;BR/&gt;&lt;BR/&gt;Having a quick look at the code you need to add the following JS to the page;&lt;BR/&gt;&lt;BR/&gt;ADMIN_ROOT/js/admin/RelatedObjectLookups.js&lt;BR/&gt;ADMIN_ROOT/js/calendar.js&lt;BR/&gt;ADMIN_ROOT/js/admin/DateTimeShortcuts.js&lt;BR/&gt;&lt;BR/&gt;When you add DateTimeShortcuts.js it initilizes itself. It looks for input elements with classname of vTimeField or vDateField and stores them.&lt;BR/&gt;&lt;BR/&gt;Then look at the href of the &amp;lt;a&amp;gt; surrounding the calendar icon;&lt;BR/&gt;&lt;BR/&gt;javascript:DateTimeShortcuts.openCalendar(0)&lt;BR/&gt;&lt;BR/&gt;The number there relates to the number of the input field. So if you only ever have one on your page it will be 0, the second one will be 1 etc.&lt;BR/&gt;&lt;BR/&gt;I think thats all you need but I&amp;#39;ve not tested it ;) Let me know if it works</content><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6237161444180571452/6687329100209388094/comments/default/3958846831425351291'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6237161444180571452/6687329100209388094/comments/default/3958846831425351291'/><link rel='alternate' type='text/html' href='http://blog.lowkster.com/2008/10/datepicker-without-admin.html?showComment=1224939120000#c3958846831425351291' title=''/><author><name>Dougal</name><uri>http://www.blogger.com/profile/09183581228040499732</uri><email>noreply@blogger.com</email><gd:image xmlns:gd='http://schemas.google.com/g/2005' rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:in-reply-to xmlns:thr='http://purl.org/syndication/thread/1.0' href='http://blog.lowkster.com/2008/10/datepicker-without-admin.html' ref='tag:blogger.com,1999:blog-6237161444180571452.post-6687329100209388094' source='http://www.blogger.com/feeds/6237161444180571452/posts/default/6687329100209388094' type='text/html'/><gd:extendedProperty xmlns:gd='http://schemas.google.com/g/2005' name='blogger.itemClass' value='pid-1068299907'/></entry></feed>
