Re: Looking for a Django Developer (web based feed aggregator)

2007-02-26 Thread Max Battcher
. > > Best Regards, > Tiziano. > > > > > -- --Max Battcher-- http://www.worldmaker.net/ All progress is based upon a universal innate desire on the part of every organism to live beyond its income. --Samuel Butler --~--~-~--~~~---~--~~ You received this me

Re: Possible enhancement: CGI-style population of os.environ

2007-03-11 Thread Max Battcher
then calling the normal view.) Anyway, I think my suggestion is that in this particular case maybe the better approach is to push for better genericity in the Comments app (particularly as it gets rewritten and better documented)... If you are curious, I'd be happy to post my post_free_commen

Re: contrib proposal: django-values

2007-04-08 Thread Max Battcher
sed. It's a magic numbers (avoidance) framework. I know this is going to sound like a joke, but what about calling it django.contrib.magic_numbers? -- --Max Battcher-- http://www.worldmaker.net/ --~--~-~--~~~---~--~~ You received this message becaus

Re: newforms: custom error messages

2007-04-08 Thread Max Battcher
quot; message, "min" > message, and "required" error message. I don't really like the idea of > three named parameters max_error_message, min_error_message, > error_message, but I can't seem to come up with any easier solutions. You could use a dictionary fo

Re: database connection user - newbie question

2007-05-09 Thread Max Battcher
ork has to back out and deal with database sessions per request which just reeks of early (pre-auto-session-magic) bad PHP applications). Unfortunately it's a bit late and I can't scrounge up some good links on the subject (hopefully someone else can follow up with those), but I hope that

Re: Changeset [5231] -- do_clean_*() is awkward naming

2007-05-14 Thread Max Battcher
top of my head: scrub or wash are very useful clean-connected words. -- --Max Battcher-- http://www.worldmaker.net/ --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Django developers" group. To post

Re: django-values -> django-policy?

2007-05-28 Thread Max Battcher
xis when describing which to use and when. -- --Max Battcher-- http://www.worldmaker.net/ --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Django developers" group. To post to this group, send email to dja

Design Decision: Dynamic settings.SITE_ID (ref. #4438)

2007-05-30 Thread Max Battcher
shouldn't need to deal with HttpRequest and if it did, it can't be used for filtering in a urls.py file if it requires a request object... I don't see a better alternative. [1] http://code.djangoproject.com/ticket/4438 What do you y

Re: Design Decision: Dynamic settings.SITE_ID (ref. #4438)

2007-05-30 Thread Max Battcher
incompat > changes" inner child, but that's something I have to work out. I have no problem for seeing it solved the intrusive way if that's what makes the most sense for the problem set. Hopefully something like this can even be done without breaking too many backward compatibility egg

Re: Allowing multiple {% block %}s in one template

2007-06-08 Thread Max Battcher
title }} rather than {{ blocks.title }} to mirror the existing {{ block.super }} var...) Assuming the order of template rendering is what I remember thinking it was... -- --Max Battcher-- http://www.worldmaker.net/ --~--~-~--~~~---~--~~ You received this message becaus

Re: make db form settings

2007-07-04 Thread Max Battcher
I'm not sure if there is a large enough need for your script, Carl K. Creating the databases themselves should be a rare activity. Perhaps you'd be better off looking for a deployment engine that supports what you need, such as Capistrano. -- --Max Battcher-- http://www.worl

Re: Session based Messages

2007-07-09 Thread Max Battcher
plate writer doesn't explicitly style a level. Apps don't need to agree on levels as long as template writers don't mind checking what levels an app might "throw". So, basically I'm suggesting adding a tags or labels field rather than a debug-style levels

Re: mod_python: Why use req.uri, not req.path_info?

2007-07-10 Thread Max Battcher
uld have its own settings anyway, at the very least for separate SITE_IDs. (Settings is just python, so you can easily inherit some base settings with a line like ``from base_settings import *``.) -- --Max Battcher-- http://www.worldmaker.net/ --~--~-~--~~~---~--

Re: Django 1.0 features -- the definitive list

2007-11-29 Thread Max Battcher
at up with new versions each quarter, if not each month... -- --Max Battcher-- http://www.worldmaker.net/ --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Django developers" group. To post to this

Re: Reorganising management/validation.py

2008-02-24 Thread Max Battcher
emaining instance of maxlength rather than max_length... It's still convenient to rope together all warnings rather than have them printing at odd times during debugging. It would be nice to easily validate non-installed models, but I don't think that's a compelling use case in eith

Re: apps with the same name

2006-01-14 Thread Max Battcher
want something nicer in your actual code, you could just add an "as" option to INSTALLED_APPS to specify an app name. -- --Max Battcher-- http://www.worldmaker.net/

Re: Documentation as a single download

2006-01-23 Thread Max Battcher
e As (as I have done for previous ones). If you want the nice inter-hyperlinked HTML you can download the tools from http://docutils.sourceforge.net/ and use the command line tool ``buildhtml.py`` included in the package's tools directory. -- --Max Battcher-- http://www.worldmaker.

Re: appache and pthonpath

2006-01-23 Thread Max Battcher
" Could be you are looking for: PythonPath "['/var/www/mysite'] + sys.path" > DocumentRoot /var/www/mysite/ This also isn't a good practice, as again it can pose a security risk that is better off avoided. -- --Max Battcher-- http://www.worldmaker.net/ "

Re: magic-removal: "Change subclassing syntax"

2006-01-25 Thread Max Battcher
want it? :-) -- --Max Battcher-- http://www.worldmaker.net/

Re: magic-removal: "Change subclassing syntax"

2006-01-25 Thread Max Battcher
-To-One relationship is currently broken (broken default ordering; no way to order a class in the admin based upon a join; broken generic object_detail view). (Like many, I need a subclass of ``django.contrib.auth.models.User`` for site-specific data.) -- --Max Battcher-- http://www.worldmaker.net/

Re: magic-removal: "Change subclassing syntax"

2006-01-26 Thread Max Battcher
d models. Something like: `` app_objects = managers.PolymorphicManager(Place, Restaurant, ItalianRestaurant) `` This also makes it explicit which classes are participating in a join, rather than potentially joining a large number of installed model classes. -- --Max Battcher-- http://www.worldmaker.net/

Re: Django auth magic

2006-02-03 Thread Max Battcher
hs too.) LDAP authenticated users are also going to have a directory's worth of User information where OpenID aren't going to have anything beyond a verified URL. I think I might look things over as I'm thinking about maybe chipping in that OpenID Authenticator. -- --Max Battcher-- http://www.worldmaker.net/

Re: How about converting python config files to text config files

2006-02-10 Thread Max Battcher
rt modifying them in memory and then Pickling_ the Settings module and URL patterns. .. _Pickling: http://docs.python.org/lib/module-pickle.html -- --Max Battcher-- http://www.worldmaker.net/ --~--~-~--~~~---~--~~ You received this message because you are subscr

Re: How about converting python config files to text config files

2006-02-10 Thread Max Battcher
This also more closely mirrors any other website deployment style you might find. So again, the existing work is perfect for my needs, and what you are asking for is a huge change with little/no gain for me. -- --Max Battcher-- http://www.worldmaker.net/ --~--~-~--~~

Re: Some suggestion about date_base generic view function

2006-02-15 Thread Max Battcher
month.month }} Keep in mind to iterate the months you need something like: {% for month in date_list %} {{ month|date:"F" }} {% endfor %} The date filter being the only way to get information from a date time. -- --Max Battcher-- http://www.worldmaker.net/ "History bleeds for tomor

Re: Database migration practices?

2006-02-19 Thread Max Battcher
to show you what the final schema should be. -- --Max Battcher-- http://www.worldmaker.net/ --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Django developers" group. To post to this group, send

Re: Proposal: Validation-aware models

2006-02-24 Thread Max Battcher
ation to leave the script an automatic process (slug ambiguities are easy to correct in the admin). -- --Max Battcher-- http://www.worldmaker.net/ --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Django develope

Re: tracking people

2006-02-25 Thread Max Battcher
Mary Adel wrote: > is their a way to track the people that visit my website using Django > cause i know that Turbogears has this functionality If you are running on top of Apache, why reinvent the wheel? Grab an Apache log viewer like AWStats. -- --Max Battcher-- http://www.worldmak

Re: urlconf, applications..coupling

2006-02-26 Thread Max Battcher
y as a "library namespace" (you don't expect the django framework itself, or any other Python library, to drop their namespace when you start using them in your own project, do you?). -- --Max Battcher-- http://www.worldmaker.net/ --~--~-~--~~~---~--~--

Re: Change logs on the recommendations

2006-03-01 Thread Max Battcher
limodou wrote: > Django is developing very quickly, so many things to catch up. > Has anyone written a change logs let us know the latest changes you. There are always the auto-generated sort, such as: http://code.djangoproject.com/timeline/ http://code.djangoproject.com/log/ --

Re: What if instead of calling them "projects" we called them "sites"?

2006-03-02 Thread Max Battcher
ASP.NET website using a Solution of Projects.) Keep in mind, too, that not all Projects are Sites (and vice versa as mentioned in the Ellington example). I've got at least one Project that I feel qualifies more as a Library, whose applications are often much more useful in conj

Re: templates and html escaping

2006-03-03 Thread Max Battcher
ants the same escape. For instance, there are those of us that {% load markup %} and then |restructuredtext (or |markdown or |textile) just about everything, and auto-HTML escape could certainly cause havoc here. -- --Max Battcher-- http://www.worldmaker.net/ All progress is based upon a universa

Re: Finalizing descriptor implementation

2006-03-08 Thread Max Battcher
goproject.com/ticket/1396 Basically, resolve_variable() isn't checking for silent_variable_failure for attribute/property/descriptor lookups (it was only checking for that on callable). -- --Max Battcher-- http://www.worldmaker.net/ All progress is based upon a universal innate desire on the part of

Re: Validation-aware models: First stab

2006-03-13 Thread Max Battcher
to anyone security-minded. -- --Max Battcher-- http://www.worldmaker.net/ --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Django developers" group. To post to this group, send email to django-developers@

Re: Validation-aware models: First stab

2006-03-13 Thread Max Battcher
rich, so these > things maybe not be separated any more. The current proposal leaves Manipulators (custom forms rely on them, they are not going away), and validation at model level is simply yet another defense in a long line of defenses. -- --Max Battcher-- http://www.worldmaker.net/ --~--~---

Re: Validation-aware models: First stab

2006-03-13 Thread Max Battcher
rthday=datetime.date(2005,1,3), favorite_number='foo') >>> p2 = Person.objects.html_unmarshal(name='Joe', birthday='2005-1-3', favorite_number='foo') # convert strings to Python types >>> p1.birthday == p2.birthday True This then ma

Re: proposal: endif, endfor etc assume whatever follows in tag is comment

2006-03-13 Thread Max Battcher
r: Themes on the pattern of the first example. {< This is a comment >} or: {! Comment !} I think I'm +1 on this last one. It evokes the aesthetic of both the Django template tags and an HTML comment. It is also very readable and less programming-language looking and blocky than

Re: Multiple Authentication Backends

2006-03-14 Thread Max Battcher
: http://code.djangoproject.com/wiki/MultipleAuthBackends?version=9 -- --Max Battcher-- http://www.worldmaker.net/ --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Django developers" group. To post to this group, s

Re: Multiple Authentication Backends

2006-03-14 Thread Max Battcher
Joseph Kocherhans wrote: > On 3/14/06, Max Battcher <[EMAIL PROTECTED]> wrote: >> -1. I don't want to add layer after layer of code to my views to >> support whatever authentication backends I feel necessary. > > You don't have to. There is "one true

Re: Multiple Authentication Backends

2006-03-14 Thread Max Battcher
e that permissions and groups work regardless of the backend. -- --Max Battcher-- http://www.worldmaker.net/ --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Django developers" group. To post to this group,

Re: Descriptor syntax and performance

2006-03-16 Thread Max Battcher
if there might be a better way to optimize that single edge instead (ie, is it worth it to have some caching added to django.template's resolve_variable() for QuerySets?). -- --Max Battcher-- http://www.worldmaker.net/ --~--~-~--~~~---~--~~ You received this me

Re: Magic-removal query syntax

2006-03-18 Thread Max Battcher
ion of .exclude(). (Yay for exclude! Boo for making me spend too much time in confusion! Yay for moving targets!) > name='John' (it is possible now) This has been possible in magic-removal for a while: Article.objects.filter(name='John') -- --Max Battche

Re: Magic-removal query syntax

2006-03-18 Thread Max Battcher
In fact, why keep __in, anyway? Why not just have it check to see if the object is scalar, QuerySet, or List/Tuple and "do the right thing"? -- --Max Battcher-- http://www.worldmaker.net/ --~--~-~--~~~---~--~~ You received this message because yo

Re: How to use not equal in QuerySet

2006-03-20 Thread Max Battcher
ser.objects.all().filter(is_superuser__ne=True) Welcome to Moving Target land. __ne and various other negation things were moved into the new filter() companion exclude(). Example: blogers = User.objects.exclude(is_superuser=True) -- --Max Battcher-- http://www.worldmaker.net/ "I'm

Re: magic-removal: plans/estimates for the trunk-merge?

2006-03-28 Thread Max Battcher
at to point to the hard upgrade the magic-removal merger, even though it should still be the next release, should be 0.95 rather than 0.92 to make a larger contrast. -- --Max Battcher-- http://www.worldmaker.net/ "I'm gonna win, trust in me / I have come to save this world / and in

Re: Think about urlconf again

2006-04-03 Thread Max Battcher
/login/'. As for my templates, certainly my site-specific templates have URLs for navigation, but all of my app-specific templates get along just fine with relative paths and model_object.get_absolute_url. Maybe if you just focused on clean code you wouldn't have to worry about

Re: Reverse URL lookup implementation

2006-04-06 Thread Max Battcher
. 'object_id' is not 'id'. -- --Max Battcher-- http://www.worldmaker.net/ All progress is based upon a universal innate desire on the part of every organism to live beyond its income. --Samuel Butler --~--~-~--~~~---~--~~ You received this mes

Re: More specific CSS rules for the admin

2006-04-07 Thread Max Battcher
not your site. > > No, because the admin 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. I believe what Rudolph was trying to say was, wrap the enti

Re: #1602: urlify.js blocks out non-English chars

2006-04-08 Thread Max Battcher
plications), so the debate is merely academic to me at this point. -- --Max Battcher-- http://www.worldmaker.net/ "I'm gonna win, trust in me / I have come to save this world / and in the end I'll get the grrrl!" --Machinae Supremacy, Hero (Promo Track) --~--~-~--

Re: exception error running syncdb

2006-04-08 Thread Max Battcher
gged. Sorry I haven't taken the time yet to file a formal report. This was on my Windows development machine. My uninformed guess is it may be related to the new color output (ie, I see no color output and instead this exception). -- --Max Battcher-- http://www.worldmaker.net/ "I&

Re: SlugField utf-8 support

2006-04-14 Thread Max Battcher
(random name, I don't know if it actually was one of the ones involved) were www.paypal.com, when clicking links in their email. -- --Max Battcher-- http://www.worldmaker.net/ "I'm gonna win, trust in me / I have come to s

Re: CsrfMiddleware

2006-04-14 Thread Max Battcher
ontrib in magic-removal it should probably be django/contrib/csrf/middleware.py, with the focus on "apps" rather than functionality. -- --Max Battcher-- http://www.worldmaker.net/ "I'm gonna win, trust in me / I have come to save this world / and in the end I'll get

Re: Ideas for /examples/ directory

2006-04-18 Thread Max Battcher
es/2006/04/sakila-08/ > we might want to build a example which does have a backend to show a > lot more of the complex issues. You could do similar things with SQLite. Particularly since an SQLite library will be a standard library in Python 2.5. -- --Max Battcher-- http://www.worldmak

Re: using 'in_bulk' vs 'all' on a model

2006-04-20 Thread Max Battcher
fy your all() result if you want. dict((object.id, object) for object in ContentType.objects.all()) -- --Max Battcher-- http://www.worldmaker.net/ "I'm gonna win, trust in me / I have come to save this world / and in the end I'll get the grrrl

Re: ATTENTION: magic-removal being merged to trunk TODAY

2006-05-01 Thread Max Battcher
ake an optional revision number as an argument (IIRC, --rev=) and it will "de-update" (update your working copy to a previous revision). -- --Max Battcher-- http://www.worldmaker.net/ "I'm gonna win, trust in me / I have come

Re: Solving the POST-data-lost-after-redirect problem

2006-06-07 Thread Max Battcher
ich beeps and pops up a KDE notification when a page fails. For the notifications you could switch to Jabber notifications. Plus, you get the benefit of free remote notifications and logging... The validator I'm not so sure about. WDG's appears to be Perl, so you could just m

Re: Generic Relationships/convert_post_data in forms

2006-06-22 Thread Max Battcher
tag model? It needs updating to support the new GenericRelation (it currently uses a similar but proprietary clas), but it has a very neat Tag widget for the Admin. http://softwaremaniacs.org/soft/tags/ -- --Max Battcher-- http://www.worldmaker.net/ "I'm gonna win, trust in me / I hav

Re: specifying newforms-admin options

2007-01-25 Thread Max Battcher
e Admin app you are effectively either going to have to hand-hold them hugely through the process of "create the magic named file, add these incantations, pray no errors are returned" or you scaffold these files for them and then hand-wave around it like those other guys do when it comes time to

Re: specifying newforms-admin options

2007-01-25 Thread Max Battcher
mporting one more module than you expected. It's unfortunate, but it is simply the case that Python runs code in a module on import whether you "only care about certain subclasses within the module" or not. Module import and module introspection have prices, even if

Re: django.contrib.markup and ReST

2009-09-16 Thread Max Battcher
se for Django's default template tag to open up a setting to provide additional flags to publish_parts/docutils writer/docutils transformer, such as the aforementioned one to disable document headers, or other generally useful flags such as the ones to enable certain security features. --

Re: Proposal: Better HTML4 support

2009-09-26 Thread Max Battcher
.) Furthermore, support for XHTML "5" (which is indeed a part of the HTML 5 standard) shows that XHTML 1's principles are still around and still respected. Django's XHTML output can't be "out of date" if XHTML 5 is considered a successor to XHTML 1. -- --Max

Re: Proposal: Better HTML4 support

2009-09-28 Thread Max Battcher
Simon Willison wrote: > On Sep 26, 10:17 am, Max Battcher wrote: >> Furthermore, support for XHTML "5" (which is indeed a part of the HTML 5 >> standard) shows that XHTML 1's principles are still around and still >> respected. Django's XHTML ou

Re: apps with the same name

2006-01-17 Thread Max Battcher / WorldMaker
I was thinking that another option would be to decouple the INSTALLED_APPS setting from the data store to allow for future changes (such as a better place to store app-specific settings than the global namespace as CAPS_NAMES in the settings file), similar to the patterns() and include() functions

Re: Similar software to django/New Django features/Working on Django

2006-02-16 Thread Max Battcher / WorldMaker
> There are some things that we do though, that I don't see in Django. The > biggest is our logging system, which I really like. In Django I've > just seen logging in the admin page with the 'History'. Our setup is that > we have a class LogEntry (actually action_log but i would change it now)

Re: specifying newforms-admin options

2007-01-25 Thread Max Battcher / WorldMaker
On Jan 21, 4:25 pm, "Matthew Flanagan" <[EMAIL PROTECTED]> wrote: > ADMIN_FIND_ADMIN_CLASSES = True > ADMIN_MODELS = ( > 'myproj.myapp.admin.PollAdmin', > 'someotherproj.someapp.admin.FooAdmin', > ) My 2 (belated) cents on the issue: the settings.py idea is the best I've seen in the threa