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
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
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&
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
>&
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
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
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/
--~--~-~--~~~---~
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
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
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
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
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
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.
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
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
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
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
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
--
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
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
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
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
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/
--~--~---
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/
--~--~-~--~~~-
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
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
> 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
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
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
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
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_
):
> 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
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
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
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
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/
--~--~-~--~
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
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
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
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/
--~--~-~--~~-
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/
--~--~-~--~-
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
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/
43 matches
Mail list logo