Re: Project-wide cache prefix (low-level API)

2010-06-13 Thread lenz
Could you share your code with us? Thanks you! Lenz On 2 Jun., 01:14, Gabriel Hurley wrote: > Personally, I solved this by writing a wrapper around > django.utils.cachethat can be dropped in transparently. It was a > really simple matter to have it take acacheprefix(in my

Re: Allow bypassing validation in newforms (#5153)

2007-09-17 Thread Christopher Lenz
Am 17.09.2007 um 04:17 schrieb Malcolm Tredinnick: > On Mon, 2007-09-17 at 00:23 +0200, Christopher Lenz wrote: >> Hey all, >> >> I've created a ticket which has been closed as wontfix, and was told >> to bring it here. So here I am. >> >><htt

Allow bypassing validation in newforms (#5153)

2007-09-16 Thread Christopher Lenz
gt; I personally think it'd be a good idea to apply. Thanks, Chris -- Christopher Lenz cmlenz at gmx.de http://www.cmlenz.net/ --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Django developers&

Re: Django, Components, and Interfaces

2007-09-07 Thread Christopher Lenz
Am 07.09.2007 um 21:07 schrieb Christopher Lenz: > Am 07.09.2007 um 20:40 schrieb Yuri Baburov: >>> Or if I'm using Satchmo and I've written an excellent CRM system >>> in Django, >>> I want Satchmo to use the shipping and contact information that >&

Re: Django, Components, and Interfaces

2007-09-07 Thread Christopher Lenz
a design against uninformed comments; I'm also not saying that the design is in anyway perfect; there's definitely room for improvement). Cheers, Chris -- Christopher Lenz cmlenz at gmx.de http://www.cmlenz.net/ --~--~-~--~~~---~--~~ You re

Re: A question about manage.py validation

2007-08-21 Thread Christopher Lenz
le reluctant, but I don't have enough > experience with memory optimization to counter your reasoning. It > seems cleaner to me to have these done in each Field's __init__, but > that would indeed force that to happen every time the server starts, > regardless of development

[ANN] Babel/Django integration

2007-08-20 Thread Christopher Lenz
ing me on #python-babel on freenode, or the Babel mailing list. Oh, and kudos to Ramiro Morales and Massimo Scamarcia for contributing the middleware and extraction code! Cheers, Chris -- Christopher Lenz cmlenz at gmx.de http://www.cmlenz.net/ --~--~-~--~~~---~

Re: Shouldn't _ be ugettext instead of gettext?

2007-08-15 Thread Christopher Lenz
ers: > > _('some message: %s').someModel.name > > Shouldn't _ better evaluate to ugettext? See also <http://code.djangoproject.com/ticket/5056> (I still don't see why you'd ever want the bytestring variants of gettext, but don't want to waste any more ti

Re: Ned Batchelder's hyphenate

2007-07-13 Thread Christopher Lenz
on aren't even web applications, so including the functionality in Django would be rather inconvenient for those. And doing this stuff as a separate project does not in any way preclude using it in a Django app. Just my 2 cents. Cheers, Chris -- Christopher

Re: Django site: Trac e-mails not including comments

2006-11-07 Thread Christopher Lenz
m various projects that use 0.10 are working rather nicely, so I'd be surprised if this was an actual bug in Trac. Cheers, Chris -- Christopher Lenz cmlenz at gmx.de http://www.cmlenz.net/ --~--~-~--~~~---~--~~ You received this message because you are

Re: ANN: Django's Trac installation has been upgraded

2006-11-06 Thread Christopher Lenz
acInterfaceCustomization> Cheers, Chris -- Christopher Lenz cmlenz at gmx.de http://www.cmlenz.net/ --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Django developers" group. To post to this group

Re: Ticket spam

2006-11-02 Thread Christopher Lenz
Am 27.10.2006 um 00:35 schrieb Christopher Lenz: > FYI: Akismet has been having a really high rate of false positive > lately, we've seen the same problems with it at trac.edgewall.org. > I've filed a support request but haven't heard back. > > Anyway, this

Re: Ticket spam

2006-10-26 Thread Christopher Lenz
Am 25.10.2006 um 17:22 schrieb Christopher Lenz: > Am 25.10.2006 um 11:24 schrieb Michael Radziej: >> Adrian Holovaty schrieb: >>>> Also, I've been mulling over the idea of requiring an account >>>> signup >>> in order to post tickets and comments.

Re: DecimalField

2006-10-26 Thread Christopher Lenz
of DecimalField would require the decimal.py module, same as ImageField requires PIL. Cheers, Chris -- Christopher Lenz cmlenz at gmx.de http://www.cmlenz.net/ --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups

Re: Ticket spam

2006-10-25 Thread Christopher Lenz
e plug) and add stuff to BadContent in a more timely manner. The SpamFilter plugin has optional IP-blacklisting which can help reduce many kinds of spam, too. I have no idea whether that's enabled on code.djangoproject.com. BTW, is the Akismet filter disabled now? Hope that helps

Re: Integrating Django and SQLAlchemy

2006-08-31 Thread Christopher Lenz
he documentation gets harder. It's definitely a good idea to develop SQLAlchemy support as an optional alternative to the built-in ORM for now. But if the project works out, replacing the built-in DB code with SQLAlchemy is going to make a *lot* of sense IMO. Chee

Re: [Fw]The Python Web Framework

2006-08-22 Thread Christopher Lenz
Am 22.08.2006 um 21:49 schrieb Christopher Lenz: > Am 22.08.2006 um 18:22 schrieb James Bennett: >> Some things that occur to me on other points: >> >> * Admin, auth and comments using Django's own ORM, template system, >> etc.: well... what are we supposed to use

Re: [Fw]The Python Web Framework

2006-08-22 Thread Christopher Lenz
templates absolutely needs to be restricted, unless you want to allow them to take down the system. My point was that for teams that work on a web-app, where there's no real distinction between programmers and template authors, this actually does not help productivity. Cheers, Chris --

Re: [Fw]The Python Web Framework

2006-08-22 Thread Christopher Lenz
Am 22.08.2006 um 18:22 schrieb James Bennett: > Some things that occur to me on other points: > > * Admin, auth and comments using Django's own ORM, template system, > etc.: well... what are we supposed to use? They're Django > applications, and they leverage as much or as little of Django as they

Re: "allow tags" attribute. stays/vanishes? :)

2006-07-17 Thread Christopher Lenz
set [3358]. Thanks for the reminder! You may want to manually escape the first_name/last_name in that example ;-) Cheers, Chris -- Christopher Lenz cmlenz at gmx.de http://www.cmlenz.net/ --~--~-~--~~~---~--~~ You received this message because you are subscr

Re: Proposal: default escaping

2006-06-16 Thread Christopher Lenz
himed in with a reference to how we handling HTML escaping in Trac: http://groups.google.com/group/django-developers/browse_thread/ thread/e448bbdd40426915/9962020f9699471c?q=lenz&rnum=8#9962020f9699471c To reiterate: templates shouldn't need to care about escaping. Django

Re: More specific CSS rules for the admin

2006-04-10 Thread Christopher Lenz
solution. > Also, nothing should be preventing you from copying the admin styles > and modifying them to be specific to your own needs. Sure, but that'll leave me with merging headaches when I want to upgrade Django and the style-sheets have been modified :-P Cheers, Chris -- Christ

Re: More specific CSS rules for the admin

2006-04-10 Thread Christopher Lenz
s, widgets etc? Then I could simply drop the reference to the layout style sheet from the base.html template, but still keep the other stuff. Or is that already possible with your recent changes? Thanks, Chris -- Christopher Lenz cmlenz at gmx.de http://www.cmlenz.net/ --~--~---

Re: More specific CSS rules for the admin

2006-04-07 Thread Christopher Lenz
min style sheets use "p" as a selector, and not ".django-admin p". Thus, the admin styles also affect stuff outside the admin itself, which was exactly my point. Cheers, Chris -- Christopher Lenz cmlenz at gmx.de http://www.cmlenz.net/ --~--~-~--~~~-

More specific CSS rules for the admin

2006-04-07 Thread Christopher Lenz
e, "#admin-content" instead of "#content"). Those changes would make it a lot simpler to embed the admin app in an existing layout. Thanks, Chris -- Christopher Lenz cmlenz at gmx.de http://www.cmlenz.net/ --~--~-~--~~~---~--~~ You received

Re: Magic-removal query syntax

2006-03-21 Thread Christopher Lenz
author.name.contains('fred')) etc (overloading operators of the field descriptors to make this work) Cheers, Chris -- Christopher Lenz cmlenz at gmx.de http://www.cmlenz.net/ --~--~-~--~~~---~--~~ You received this message because you are subsc

Re: Validation-aware models: First stab

2006-03-15 Thread Christopher Lenz
> On 3/15/06, Christopher Lenz <[EMAIL PROTECTED]> wrote: >> I definitely agree that the model layer should do validation, as long >> as that doesn't mean it's the *only* layer that does validation >> (that's not how I understood the proposal, but some so

Re: Validation-aware models: First stab

2006-03-15 Thread Christopher Lenz
layer that is aware of the HTTP request context. (This is a somewhat contrived example due to the abysmal state of international datetime formatting/parsing in the Python standard library, but I'm sure there are other examples). Cheers, Chris -- Christopher Lenz cmlenz at gmx.de ht

Re: Validation-aware models: First stab

2006-03-13 Thread Christopher Lenz
a bit until I read the code. IIUC, validate() is the internal interface for subclasses, while validate_full() is the external interface invoked by the Model class. But that's rather non-obvious from the names ;-) Cheers, Chris -- Christopher Lenz cmlenz

Re: Start of week in Admin's calendar

2006-03-13 Thread Christopher Lenz
e > a setting. Something like FIRST_DAY_OF_WEEK = 1. In that case, how would you make this dependent on the locale of the remote user? Cheers, Chris -- Christopher Lenz cmlenz at gmx.de http://www.cmlenz.net/ --~--~-~--~~~---~--~~ You received t

Re: Fixing edit_inline on magic-removal

2006-03-08 Thread Christopher Lenz
Am 08.03.2006 um 21:06 schrieb Tom Tobin: > On 3/8/06, Christopher Lenz <[EMAIL PROTECTED]> wrote: >> The patch reverts some changes (such as the removal of core fields) >> which were never really completed. While I'm aware that a much >> improved version of edit_

Re: Validation Aware Models and django.forms on steroids

2006-03-08 Thread Christopher Lenz
): > add_form = Article.AddForm(request) > errors = add_form.validate() > if not errors: > add_form.save(validate=False) > return HttpResponseRedirect('the_next_page') > ctx = RequestContext({'form': add_form}) > return r

Fixing edit_inline on magic-removal

2006-03-08 Thread Christopher Lenz
hat stuff happens on a new branch after magic-removal has been merged. So I hope this patch helps moving the MR branch a bit closer to the merge. Cheers, Chris -- Christopher Lenz cmlenz at gmx.de http://www.cmlenz.net/ --~--~-~--~~~---~--~~ You received th

Re: templates and html escaping

2006-03-03 Thread Christopher Lenz
e great. It's *much* easier to forget to escape something than to forget to flag it as not-needing-escaping. Cheers, Chris -- Christopher Lenz cmlenz at gmx.de http://www.cmlenz.net/ --~--~-~--~~~---~--~~ You received this message because you are sub

Re: Schema evolution

2006-03-01 Thread Christopher Lenz
Am 28.02.2006 um 21:39 schrieb Jeremy Dunck: > On 2/28/06, Christopher Lenz <[EMAIL PROTECTED]> wrote: >> Actually, PySQLite 2.x does an implicit commit after any DDL >> statement. I don't think this is enforced at the SQLite level, but >> supposedly the PySQLite

Re: Schema evolution

2006-02-28 Thread Christopher Lenz
Lite 2.x does an implicit commit after any DDL statement. I don't think this is enforced at the SQLite level, but supposedly the PySQLite author had reasons to do this in the bindings. Cheers, Chris -- Christopher Lenz cmlenz at gmx.de http://www.cmlenz.net/ --~--~-~--~

Re: Status of magic-removal

2006-02-23 Thread Christopher Lenz
omewhere in the heads of the developers, but it needs to be communicated to users and potential contributors if we are to test and contribute to the branch. Cheers, Chris -- Christopher Lenz cmlenz at gmx.de http://www.cmlenz.net/ --~--~-~--~~~---~--~~ You re

Re: Proposal: Validation-aware models

2006-02-23 Thread Christopher Lenz
menting auto_now_add behavior IMHO. Of course that doesn't address auto_now, but personally I wouldn't have a problem with updating such a timestamp field in the overridden save() method. Cheers, Chris -- Christopher Lenz cmlenz at

Re: Proposal: Validation-aware models

2006-02-22 Thread Christopher Lenz
etattr(), except when model objects are being loaded from the > database (e.g. Model.objects.get()). In the latter case, we can assume > the data is valid. Why not do the validation on Model.save(). The developer can not "forget to validate", but the model instance is allowed to be

Re: DoJo Integration & JSON methods

2006-02-21 Thread Christopher Lenz
ything in (I hate checking in > broken code). So how about a branch ;-) Anyway, does this work include some sort of "HTMLField" that renders using Dojo's HTML editor? Cheers, Chris -- Christopher Lenz cmlenz at gmx.de http://www.cmlenz.net/ --~--~-~--~~-

Status of magic-removal

2006-02-21 Thread Christopher Lenz
e branch, e.g. what major design issues still need to be solved and what work might need to be done that people simply don't have the time to do (and what, roughly, would be involved). Thanks, Chris -- Christopher Lenz cmlenz at gmx.de http://www.cmlenz.net/ --~--~-~--~-

Re: JS Form Validation (was Re: Django and AJAX: Setting aside the conflict)

2005-11-17 Thread Christopher Lenz
Am 17.11.2005 um 23:29 schrieb Antonio Cavedoni: On 17 Nov 2005, at 11:51, Christopher Lenz wrote: While there are definitely many types of validations that can't be performed on the client side, calling back to the server just to check whether e.g. a text-input is empty is overkil

Re: JS Form Validation (was Re: Django and AJAX: Setting aside the conflict)

2005-11-17 Thread Christopher Lenz
se the date text field would be disabled until the checkbox got checked :-P A better example is probably the classic "matching passwords" validation. Cheers, Chris -- Christopher Lenz cmlenz at gmx.de http://www.cmlenz.net/