Re: get_stamp for CacheClass?

2009-09-02 Thread Thomas K. Adamcik
On Tue, Sep 01, 2009 at 11:13:12AM -0700, Jerry Stratton wrote: > As I'm working with caches, I've found myself wanting to know when the > cache was created, to compare against the last time some data was > updated. Simply using cache.set('your_cache_key', (datetime.now(), your_value)) (or time()

Re: Replacing get_absolute_url, I am against it

2009-09-12 Thread Thomas K. Adamcik
On Thu, Sep 10, 2009 at 11:58:00AM -0400, Waylan Limberg wrote: > > Easy, get_url returns the entire url while get_url_path returns only > the "path" portion of a url. One could imagine feature creep resulting > in 'get_url_protocol', 'get_url_domain' etc. I wouldn't actually > recommend those be

Re: Continuous Integration command

2009-10-18 Thread Thomas K. Adamcik
On Sat, Oct 17, 2009 at 09:59:38AM -0700, berto wrote: > I wanted to be able to run a project's test suite in the same manner > runserver restarts when a file is changed. I did not find this > feature in Django so I wrote the following code: Have you looked at http://github.com/lacostej/nosyd ye

Re: Ticket #5025 - truncate filter, why hasn't it been accepted?

2009-12-29 Thread Thomas K. Adamcik
On Wed, Dec 30, 2009 at 08:04:47AM +0200, Jerome Leclanche wrote: > Users expect it to be called "truncate", that alone is sufficient reason. > There's truncate_html, truncate_words. Designers and others who are not familiar with Python might expect the 'truncate' name. While developers experience

Re: Absolute paths in settings.py

2008-10-30 Thread Thomas K. Adamcik
On Thu, Oct 30, 2008 at 10:06:17PM +0200, Valts Mazurs wrote: > It would be useful to have at least this one by default: > PROJECT_DIR = os.path.abspath(os.path. dirname(__file__)) If django where to ship something like this __file__ would point to somewhere within the installation folder of djan

Re: upgrade application

2008-12-16 Thread Thomas K. Adamcik
On Tue, Dec 16, 2008 at 01:23:15AM -0800, samira wrote: > is anybody know how I can porting my apps from Django 1.0 to 1.0.2? First of all the django-developers list is for development of Django itself, not user questions, you want the django-user list ;) Secondly since 1.0.2 is a bugfix release

Re: MAC adddres field

2013-06-26 Thread Thomas K. Adamcik
Hi, On Wed, Jun 26, 2013 at 04:27:19PM +0100, Marc Tamlyn wrote: > Personally, I'm not convinced that it should be part of core Django, > especially as only one of the supported databases covers it. > > There seem to be some implementations about in the wild, though they don't > appear to use the

Re: Feature request: ttl method for cache

2014-05-06 Thread Thomas K. Adamcik
On Tue, May 06, 2014 at 05:57:28AM -0700, Piotr Gosławski wrote: > W dniu wtorek, 6 maja 2014 11:47:17 UTC+2 użytkownik Florian Apolloner > napisał: > > > > [...] > > Memcached doesn't provide access to the remaining TTL, and I don't see how > > we can reasonably fake this without writing an extr

Re: Object list with values to ForeignKey and ManyToMany

2008-05-27 Thread Thomas K. Adamcik
On Tue, May 27, 2008 at 07:27:27PM +0200, Tomás Garzón Hervás wrote: > Servicio.objects.all().values('trabajadores') > I get the exception: > : Invalid field name: > 'trabajadores' If I remeber correctly you should be using the related_name here. > Trabajador.objects.all().values('user'