Re: [MR] -- adding functions to a model from another model

2006-05-08 Thread Ian Holsman
Hi Wiz. at the moment the 'ctfield' field type expects to be have a table with a content_type and object_id similar to the comment model here: http://svn.zilbo.com/svn/django/magic-removal/common/comment/models.py and TagObject table here: http://svn.zilbo.com/svn/django/magic-removal/common/tag/m

Content Types/ ticket #1717

2006-05-16 Thread Ian Holsman
Hi. A while back I submitted a patch to re-enable the 'getContentType()' functionality which was in 0.91 (and removed when content types got moved into contrib) the solution adds a cached copy of the ContentType record onto a model IF you have loaded the contenttype app into your settings.

logging

2006-05-19 Thread Ian Holsman
I'm just thinking out loud here, but I was wondering what the others developers thought of having a event/hook which would capture the URL request just after it has been resolved. (and possibly just after it is executed) so the input of the function would be something like request, view_func

Re: logging

2006-05-20 Thread Ian Holsman
doh.. process_view is what I am after..sorry for the noise On 20/05/2006, at 11:37 AM, Ian Holsman wrote: > > I'm just thinking out loud here, but I was wondering what the others > developers thought of having a event/hook > which would capture the URL request just after it

Switching SITE_ID's on a per-request basis

2006-05-26 Thread Ian Holsman
hi. I've got a situation where I only have a single process available to process requests, and would like to switch SITE_ID's based on the HTTP_HOST header. I can make it so that the settings.SITE_ID is changed, but that doesn't seem to affect everything.. specifically it seems that the

Re: introduction

2006-05-26 Thread Ian Holsman
Hi Chris. why not post your idea onto the list. it's much easier to critique something than wave hands around. you might also want to set up a wiki page on say http:// code.djangoproject.com/wiki/RowLevelPermissions or something I've my own thoughts, but I'd rather see what you have than dicta

Re: introduction

2006-05-27 Thread Ian Holsman
Hi Chris... great write up. my only thought was: why do you need multiple tables to store the row level permissions? Luke has recently submitted a 'GenericForeignKey' in http://files.lukeplant.fastmail.fm/public/python/lp_tagging_app_0.1.zip which may be of interest. it would allow you to sto

Re: introduction

2006-05-27 Thread Ian Holsman
6, at 9:04 AM, Ian Holsman wrote: > > Hi Chris... great write up. > > my only thought was: why do you need multiple tables to store the row > level permissions? > > Luke has recently submitted a 'GenericForeignKey' in > http://files.lukeplant.fastmail.fm/public/pyt

Re: inserting aggregates in one transaction

2006-05-29 Thread Ian Holsman
Hi Shaun. I've done something similar to this using the dispatcher. in http://svn.zyons.python-hosting.com/trunk/zilbo/common/forum/ models.py (at the VERY bottom) I use the signals to update summary tables .. I'm using pre_save.. but you should be able to get what you need with the post_sav

Re: inserting aggregates in one transaction

2006-05-30 Thread Ian Holsman
On 30/05/2006, at 4:43 PM, Shaun Cutts wrote: > > Ian, > > Thanks. Your code looks concise, but a bit mysterious (maybe it's > the time > of night). Is this a way to get extra events triggered in a db > transaction, > or is it just inside a single web request? > just inside a single web requ

Re: the so-called [AUDIT]

2006-06-04 Thread Ian Holsman
More likely he probably doesn't think/realise that people think of him that way. (or it's a language issue).. anyway.. on another topic.. has anyone tried tagthe.net ? it looks pretty cool. On 04/06/2006, at 7:06 PM, Kenneth Gonsalves wrote: > > > On 04-Jun-06, at 1:48 PM, Nagy Károly wrote:

Re: PROPOSAL: Manager.get_or_create()

2006-06-05 Thread Ian Holsman
It sounds great.any chance of getting a insert_or_replace function as well?to do something similar to mysql 5's INSERT INTO table (a,b,c) VALUES (1,2,3)  ON DUPLICATE KEY UPDATE c=c+1;http://dev.mysql.com/doc/refman/5.0/en/insert-on-duplicate.html(which is the other common pattern I'm seeing in my

Re: insert_or_replace()

2006-06-06 Thread Ian Holsman
On 06/06/2006, at 4:02 PM, Adrian Holovaty wrote: > > On 6/6/06, Ian Holsman <[EMAIL PROTECTED]> wrote: >> any chance of getting a insert_or_replace function as well? >> >> to do something similar to mysql 5's >> >> INSERT INTO table (a,b,c) VA

Re: Should filters fail silently?

2006-06-10 Thread Ian Holsman
my 2c's they should fail silently in production mode, and log an error in the error log. (never show an error page to your user if you can help it) an alternative approach would be to generate a 'comment' in the template which would work OK in most instances. --I On 10/06/2006, at 4:39 PM,

Re: Bug with Foo.objects.get_or_create

2006-06-12 Thread Ian Holsman
Hi mh. I had a similar issue, and my work around was to put the category into the defaults section (as well) e2, created = Foo.objects.get_or_create(name=name, category=c, defaults={ display_name=.., category=c } ) but you should probably raise a bug for this. regards Ian. On 13/06/2006, a

Re: Bug with Foo.objects.get_or_create

2006-06-12 Thread Ian Holsman
t_or_create(name=name, category=c, > display_name=dname, description=desc, homepage=home, logo_name="", > small_logo_name="",defaults={"category":c}) > > fails with the same error > > I'll file a bug > > On 6/12/06, Ian Holsman <[EMAIL

trac updates/changesets not being sent?

2006-06-19 Thread Ian Holsman
hi. I just noticed that the last email I got from django-updates was on june 12. has something been turned off ? regards Ian --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Django developers" group. To post to th

Re: Help needed creating a blog archive.

2006-06-20 Thread Ian Holsman
I created a 'history_view' which is set up to show X posts from the date/time passed. which is slightly different to the generic date based view which shows you the posts on that day. you can see it in action here: http://economy-chat.com/aggy/2006/05/23/23:59:59/ shows me the posts starting

Re: Better input validation (was Proposal: default escaping)

2006-06-21 Thread Ian Holsman
I have to agree with these comments. get the crap out at the 'input'/validation level.. once it has the database/rendering stage it is too late. while this submission isn't perfect, this is what I did to protect against my own laziness on externally facing apps. http://svn.zyons.python-hosti

Generic Relationships/convert_post_data in forms

2006-06-22 Thread Ian Holsman
Hi. I working on integrating the new GenericRelation field that was recently committed and making into into a 'tag field' where a user would just enter a list of strings into a single text field. all is good on the display side, I've got my 'TagField' populating the input text field, and i

Re: Generic Relationships/convert_post_data in forms

2006-06-22 Thread Ian Holsman
:53 PM, Max Battcher wrote: > > Ian Holsman wrote: >> Hi. >> >> I working on integrating the new GenericRelation field that was >> recently committed and making into into a 'tag field' where a user >> would just enter >> a list of strings into a

Re: Generic Relationships/convert_post_data in forms

2006-06-23 Thread Ian Holsman
thanks Chris .. I'll give it a shot tonight.. I'm about to go to bed myself ;-) regards Ian On 23/06/2006, at 11:07 PM, Chris L wrote: > >> From looking at the code, not sure if you have already thought along > these lines, but my thoughts are... > > You might want to try overriding html2python

Re: Copyright and Contributions

2006-07-04 Thread Ian Holsman
Jan. a CLA protects from people changing their minds as well, and in some cases actually assets that the person assigning the copyright over is the actual owner. from my point of view it should be weighed up as follows: cons of having people sign a CLA: - about 20 minutes if they are an indivi

Re: trac updates/changesets not being sent?

2006-07-08 Thread Ian Holsman
nope.. it never did. I just use the RSS feed instead. On 08/07/2006, at 6:38 AM, Deryck Hodge wrote: > > On 6/19/06, Ian Holsman <[EMAIL PROTECTED]> wrote: >> >> hi. >> I just noticed that the last email I got from django-updates was on >> june 12. >&g

a Caching model.manager

2006-07-09 Thread Ian Holsman
If you take a look at http://zilbo.com/perfmon/log_detail.html you'll notice that it takes ~140 SQL queries to render the page in the database query section, you'll notice that 30 of these SQL statements were identical (the same query to the content-type table) and a couple more to the site t

Re: a Caching model.manager

2006-07-10 Thread Ian Holsman
tentType. this of course would mean you would need to 'bounce' your webserver if/when you change records in models which use this class. but that shouldn't be too often. is this totally out of line? or should I just be using the 'regular' cache here. On 10/07/200

Re: a Caching model.manager

2006-07-10 Thread Ian Holsman
thx. On 11/07/2006, at 12:13 PM, Adrian Holovaty wrote: > > On 7/10/06, Ian Holsman <[EMAIL PROTECTED]> wrote: >> class SmallQuerySet(QuerySet): >> cache={} >> def get(self, *args, **kwargs): >> cachekey = "%s:%s:%s&qu

Re: a Caching model.manager

2006-07-10 Thread Ian Holsman
that would work too ;-) (always looking for the complex way of doing things) On 11/07/2006, at 12:41 PM, Jacob Kaplan-Moss wrote: > > On Jul 10, 2006, at 8:59 PM, Ian Holsman wrote: >> this is what I was thinking of > > I'm all for the idea if it uses django.core.cache (

Re: a Caching model.manager

2006-07-10 Thread Ian Holsman
On 11/07/2006, at 12:22 PM, Malcolm Tredinnick wrote: >> >> is this totally out of line? >> or should I just be using the 'regular' cache here. > > Tricky implementation ("tricky" != "bad"), but it looks like it should > work more or less. Don't you need to override every public method of > Quer

Re: a Caching model.manager

2006-07-10 Thread Ian Holsman
On 11/07/2006, at 12:22 PM, Malcolm Tredinnick wrote: > > Tricky implementation ("tricky" != "bad"), but it looks like it should > work more or less. Don't you need to override every public method of > QuerySet, not just get() (e.g. filter(), order_by()...)? hmm. we could use self._get_sql_clau

openid & django

2006-07-13 Thread Ian Holsman
Hi. I was wondering if anyone else has tried to integrate openID with django's user system. I was wondering how you store the authenticated URL into the auth system. does the new multi-auth backend help here? I'm trying to let people with openID accounts to sign-in and use my system along

Re: openid & django

2006-07-13 Thread Ian Holsman
On 14/07/2006, at 4:18 PM, Jonathan Daugherty wrote: > > # I was wondering if anyone else has tried to integrate openID with > # django's user system. > # > # I was wondering how you store the authenticated URL into the auth > # system. > > I've used OpenID with Django. I created a table with a

Re: Some extentions for MySQL backend using contrib/

2006-07-17 Thread Ian Holsman
This portability by the lowest common denominator is a screwed up way of thinking (IMHO). I mean.. how many people write apps and suddenly switch backends half way through development? Having them in the core with a big warning saying that they are mysql only would be ok I think. (similar

Re: Full-time Python/Django developer position - San Francisco

2006-07-20 Thread Ian Holsman
e Web. Founded by industry pioneerMitch Kapor (Lotus, EFF, Mozilla, Open Source Applications Foundation,Second Life), it combines approaches from search engines, socialbookmarking services, and Wikipedia-style content collaboration.ase send your resume to [EMAIL PROTECTED]. --Ian Holsman[EMAIL PROT

Re: [Django] #2406: [patch] new command for management -- runjobs

2006-07-23 Thread Ian Holsman
t;The web framework for perfectionists with deadlines. --Ian Holsman[EMAIL PROTECTED]join http://gyspsyjobs.com the marketplace for django developers  --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Django deve

Re: [Django] #2406: [patch] new command for management -- runjobs

2006-07-23 Thread Ian Holsman
On 24/07/2006, at 11:34 AM, Adrian Holovaty wrote:On 7/23/06, Ian Holsman <[EMAIL PROTECTED]> wrote: this patch doesn't implement 'cron' or anything like that.it just makes it easier to define jobs which the application needs run on aregular basis If your goal is to cut cron

Re: #2406: [patch] new command for management -- runjobs

2006-07-25 Thread Ian Holsman
I wasn't suggesting a queuing/scheduling/process flow system Andy.but I do agree it would be a useful addition, and plan to add it to zyons when I get some time.(for moderation-type things)--IanOn 25/07/2006, at 11:28 PM, James Bennett wrote:On 7/25/06, Andy Robinson <[EMAIL PROTECTED]> wrote: I am

why are the date-based views restricted to only displaying past-events?

2006-07-26 Thread Ian Holsman
field] = nowyes I know I can write my own views, but I'm just trying to understand this limitation.regardsIan --Ian Holsman[EMAIL PROTECTED]http://VC-chat.com It's what the VC's talk about --~--~-~--~~~---~--~~ You received this message because you

Re: why are the date-based views restricted to only displaying past-events?

2006-07-26 Thread Ian Holsman
On 26/07/2006, at 11:23 PM, Jay Parlar wrote: Adrian's justification was that the system was built for "archival"purposes. I brought this up earlier in Django-users,http://groups.google.com/group/django-users/browse_thread/thread/5b5d4fa5ad40f7bf/95de22e1e42b5d21A thread you seem to have participat

Re: why are the date-based views restricted to only displaying past-events?

2006-07-26 Thread Ian Holsman
i would add a flag to the views parameters.that way existing code which relies on the future stuff not being viewable won't be broken.you should also have a look at the history_view view I wrote (http://svn.zyons.python-hosting.com/trunk/zilbo/common/utils/views/filter.py)which does date-based view

Re: Consider releasing a .95 beta

2006-07-27 Thread Ian Holsman
I for one would like a 0.95 release.why?I think 0.95 is stable enough *as is*. sure it's not perfect,  (thats what 0.96 is for ;-) but I would like people to stop using 0.91 ASAP.and personally I think trying to get a monthly release, or a release just before something major happens is a good idea.

Re: Consider releasing a .95 beta

2006-07-27 Thread Ian Holsman
On 28/07/2006, at 7:56 AM, Tyson Tate wrote:On 7/27/06, Ian Holsman <[EMAIL PROTECTED]> wrote: I for one would like a 0.95 release. ...Earlier today:On 7/27/06, Adrian Holovaty <[EMAIL PROTECTED]> wrote:... We're working on the .95 release as I typethis, though.Adrianyeah.. I

Re: Free SVN and Issue Tracker

2006-07-27 Thread Ian Holsman
ntrib apps, or other things but  cant run Subversion or Trac on their host. Google to the rescue, as  always:http://code.google.comHopefully this can be useful to many of you.-Tyson --Ian Holsman[EMAIL PROTECTED]http://VC-chat.com It's what the VC&#x

Re: Idea for ManyTomManyField extention

2006-07-28 Thread Ian Holsman
Hi Neilen.I think this would be a good idea, as I frequently have a M2M type relationship with one or two fields on that field.but personally I just use foreign keys on the middle table, as I think it makes the code more readable, and allows you to be moreflexible with it. (for example a M2M with a

Re: Strip Whitespace Middleware

2006-08-02 Thread Ian Holsman
Hi Doug.you have to be careful when striping out whitespace, as sometimes it holds "value"stuff like _javascript_ and 'pre' tags shouldn't have whitespace stripped as you might change the look/behavior of the page.regardsIanOn 01/08/2006, at 1:43 AM, Doug Van Horn wrote:The intent is primarily to r

would this kind of thing be 'contrib' worthy?

2006-08-02 Thread Ian Holsman
at this would make a nice contrib app in it's own right, but I don't want to go to a lot of effort ifthe core committers are not interested in this functionality in django.(it will probably end up being stuck in the zyons codebase in that case)regardsIan.--Ian Holsman[EMAIL PROTECTED]jo

Re: would this kind of thing be 'contrib' worthy?

2006-08-03 Thread Ian Holsman
On 03/08/2006, at 11:53 PM, Adrian Holovaty wrote:On 8/3/06, Ian Holsman <[EMAIL PROTECTED]> wrote: I've hacked the admin change list view and made it into a genericfilter/listing view I'm working on something similar at the moment, which indeed beavailable in "contrib.&quo

Re: Separating the database API

2006-08-05 Thread Ian Holsman
It think the challenge might be if you want to use the views and manipulators component of django.you might be able to write your financial app so that you can have a QT and web front end with the same code.cheersIan.On 05/08/2006, at 7:12 PM, Malcolm Tredinnick wrote:On Sat, 2006-08-05 at 01:18 -0

Re: Proposal: Saving SECRET_KEY in a seperate file

2006-08-05 Thread Ian Holsman
The other benefit of what limodou proposes is that is makes it really easy to generate anothersecret key when it is required.for example I've got 4-5 sites using basically the same settings file. when I want to create anotherI usually just copy the settings file, and alter the cookie name and secre

weird problem regarding crud coming into the request

2006-08-06 Thread Ian Holsman
he first/second one it seems to fill the '{{object}}' variable with the previous' requests results.anyone have any ideas? or seen similar things?it looks like something is corrupted.. regardsIan--Ian Holsman[EMAIL PROTECTED]http://zyons.com/ build a Community with Django --~--~

Re: weird problem regarding crud coming into the request

2006-08-06 Thread Ian Holsman
On 07/08/2006, at 9:49 AM, Malcolm Tredinnick wrote:Hey Ian,On Mon, 2006-08-07 at 09:28 +1000, Ian Holsman wrote: this problem has me stumped.. and i have no idea why this ishappening. [...] for some reason every once and a while it thinks basepath is anothercompletly different (but valid) URLeg

Re: Proposal: Can custom tag use namespace

2006-08-07 Thread Ian Holsman
It would be nice mechanism to fully qualify a particular tag.so for example if I had a 'calendar' tag, and hugo also had one, and I needed to use another templatetag of his in the same file I could specify{% ian.calendar %}  instead of {% calendar %} so the template would know which one I was refer

Re: weird problem regarding crud coming into the request

2006-08-09 Thread Ian Holsman
just as a follow up to this, after debugging it with Malcom,we discovered we weren't copy()'ing the extra context parameter when we passed it into the request.so the previous request was modifying it and we then passed it back into the new one.On 07/08/2006, at 9:57 AM, Ian Holsman wrot

Re: JavaScript and Changeset 3541

2006-08-09 Thread Ian Holsman
from my understanding having YUI in this section is very localized, and would not affectyour choice of AJAX library to use within your applications.On 09/08/2006, at 9:05 PM, Chris Long wrote:Hi,I'm the developer working on the branch.A few things, hopefully to answer your concerns.1) The HTML and

Re: If there was massive security hole found in Django, are there plans in place to deal with it?

2006-08-09 Thread Ian Holsman
an emergency plan ready to go the moment a security issue cropsup is one of those things that will really ease the mind of an"enterprise" flirting with the idea of going Django. It's also an areawhere Django can really shine compared

Re: JavaScript and Changeset 3541

2006-08-09 Thread Ian Holsman
which uses it?Adrian-- Adrian Holovatyholovaty.com | djangoproject.com --Ian Holsman[EMAIL PROTECTED]http://med-chatter.com/ it's about the medicine --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Django deve

Re: Row Level Permissions Update

2006-08-17 Thread Ian Holsman
at you wish to be added? > > Thanks, > > Chris > > > > -- Ian Holsman [EMAIL PROTECTED] join http://gypsyjobs.com the marketplace for django developers --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups

Re: XSS comments from PHP Creator

2006-08-21 Thread Ian Holsman
;t know when you are failing. > --Simon > --Ian -- Ian Holsman [EMAIL PROTECTED] http://personalinjuryfocus.com/ --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Django developers" group.

Re: [Fw]The Python Web Framework

2006-08-22 Thread Ian Holsman
u wrote: > > http://www.cmlenz.net/blog/2006/08/the_python_web_.html > > Some points I think are reasonable, for example: django configuration > > -- > I like python! > My Blog: http://www.donews.net/limodou > My Django Site: http://www.djangocn.org > NewEdit Mailli

Re: Proposal: Django Apps & Project Repository (again)

2006-08-23 Thread Ian Holsman
e index site > should look like a portal, and it should be visible in django official > site. > > -- > I like python! > My Blog: http://www.donews.net/limodou > UliPad Site: http://wiki.woodpecker.org.cn/moin/UliPad > UliPad Maillist: http://groups.google.com/group/ulipad >

Re: Proposal: Django Apps & Project Repository (again)

2006-08-23 Thread Ian Holsman
On 24/08/2006, at 2:00 PM, limodou wrote: > > On 8/24/06, Ian Holsman <[EMAIL PROTECTED]> wrote: >> >> so Limodou. >> >> what's the next step. >> have you got a prototype of it ? or a idea on how it will work? >> I've got a old linux box

Re: [patch] URLField says all links to Wikipedia are invalid

2006-08-27 Thread Ian Holsman
try: > -u = urllib2.urlopen(field_data) > +u = urllib2.urlopen(req) > except ValueError: > raise ValidationError, gettext("Invalid URL: %s") % > field_data > except urllib2.HTTPError, e: -- Ian Holsman [EMAIL PROTECTED] join http://gypsyjobs.c

Re: Rails has a Naked Objects tool (aka automagic gui)

2006-08-27 Thread Ian Holsman
g around; one even > (literally) copies the Django admin look and feel. > > -- > "May the forces of evil become confused on the way to your house." > -- George Carlin > -- Ian Holsman [EMAIL PROTECTED] http://peopleintopoker.com/ -- where the poker people go --~-

Re: Broken internal links e-mails

2006-08-29 Thread Ian Holsman
he fact that there's no space after > "request.get_full_path(),". (Can you tell I'm anal?) > > Adrian > > -- > Adrian Holovaty > holovaty.com | djangoproject.com > > > -- Ian Holsman [EMAIL PROTECTED] http://garden-gossip.com/ -- what's in your garden

Re: RDBMS vs ODBMS

2006-08-30 Thread Ian Holsman
eyond the scope of the database. With an OODBMS there is no > disconnect > between the database model and the application model because the > entities are just other objects in the system. > > > http://www.kuro5hin.org/?op=displaystory;sid=2001/5/3/32853/11281 > http

Fwd: [CAR] Error (EXTERNAL IP): /aggy/filter/

2006-08-31 Thread Ian Holsman
x27;HTTP_ACCEPT_ENCODING': 'gzip', > 'HTTP_FROM': 'googlebot(at)googlebot.com', > 'HTTP_HOST': 'car-chatter.com', > > 'PATH_INFO': '/filter/', > 'PATH_TRANSLATED': None, > 'QUERY_STRING': &#

Re: About licenses

2006-09-06 Thread Ian Holsman
en I have seen that to the > projects of > google that license is not demanded to them althought it is advised > http://code.google.com/soc/django/about.html > > Then: > > 1) Has more preference the contributors of Google summer code that the > one independents? > 2) Is

Re: RDBMS vs ODBMS

2006-09-08 Thread Ian Holsman
for python. > http://www.eyedb.org/ > I believe eyedb can do python via SWIG. it's one of those things I keep meaning to learn when I get some spare time. > -- Ian Holsman [EMAIL PROTECTED] join http://gypsyjobs.com the marketplace for django developers --~--~-~--~~-

Re: Proposal: Forms and BoundForms

2006-09-12 Thread Ian Holsman
or even some custom form control? > > I think that the current way of defining form fields in a > manipulator in > Python works rather good... > > > -- Ian Holsman [EMAIL PROTECTED] http://peopleintopoker.com/ -- where the poker people go --~--~-~--~~~

Re: Hosting ISPs

2006-09-17 Thread Ian Holsman
rom the site their service options look > excellent. > > Does anyone have any recommendations/tips? > > I have 2 sites I'd like to host, both DJango-based. > A set of products close to that offered by Zettai would be ideal. > > Thanks > Andrew > > > > -

Re: Session renewal: want a patch?

2006-12-06 Thread Ian Holsman
but I could see how some might find it useful. Any other > thoughts? > > Adrian > > -- > Adrian Holovaty > holovaty.com | djangoproject.com > > > -- Ian Holsman [EMAIL PROTECTED] http://economy-chat.com It's what the economists talk about --~--~-~--~~~

Re: Directory of Django Programmers

2006-12-20 Thread Ian Holsman
without success. If anyone is interested in freelancing in London, UK with good rates, let me know. > -- Ian Holsman [EMAIL PROTECTED] http://peopleintopoker.com/ -- where the poker people go --~--~-~--~~~---~--~~ You received this message because you are

Re: Django Pylucene Mod-python.

2007-04-03 Thread Ian Holsman
gt; Version: GnuPG v1.4.6 (GNU/Linux) > Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org > > iD8DBQFGEiEA4dg3EDuiPUcRAuy2AJ9WOU+08NYSdyLVOPsxXDkBxm34bgCeKs3o > M9g+RUty6mk1fEXGNwArC8o= > =VWja > -END PGP SIGNATURE- > > > -- Ian Holsman [EMAIL PROTECTED] h

Re: add CACHE_KEY_PREFIX functionality

2007-04-04 Thread Ian Holsman
chanism, with overlapping keys that hold different data) >> >> I'm not a big fan of having my cache keys transparently changed. I >> think as a point of philosophy Django shouldn't mess with things like >> that. >> >> Besides, doing it yourself couldn

Re: contrib proposal: django-values

2007-04-10 Thread Ian Holsman
reason. > > Also, like Adrian I don't like the name as it is now. I think > "Constants" is fine. "Config" might also work but seems less specific. > Djata, perhaps?! > > -rob > > > > -- Ian Holsman [EMAIL PROTECTED] http://VC-chat.com It's

Re: SQLServer Updates?

2007-04-20 Thread Ian Holsman
ution. You need to evaluate how beneficial django's other features are over it's competition. The cost of supporting SQLserver might be very small compared to you guys writing all your code in .NET/C#, or purchasing a commercial alter

Re: database connection user - newbie question

2007-05-09 Thread Ian Holsman
foobarmus wrote: > I'm managing a programming team that's developing a web app in python. > I'd like to be using Django but can't at the moment because one of the > things we are doing is driving the application user into the database > connection, so that we can implement access control at databa

License for the djangoproject website code.

2005-08-20 Thread Ian Holsman
Hi. I've just downloaded the django code, and am experimenting with it. Thanks for making the code to the django website available as SVN as well. I have two questions. under what license is the djangoproject code under. Is it possible to create a license file specifying that. second question,

A 'main' template for use in peoples applications

2005-10-09 Thread Ian Holsman
Hi. one of the (minor) drawbacks I see with django is the copyright and restriction of use of the code templates which come with django. This makes it hard for people to bring up a quick prototype to the pointy-heads. so in order to help out I'd like to contribute a BSD-licenced template/design

should QueryDict's __setitem__ be renamed to setitem?

2005-10-18 Thread Ian Holsman
just like the setlist function? or is there some reason we should not be calling the setitem function? regards Ian -- [EMAIL PROTECTED] -- ++61-3-9877-0909 If everything seems under control, you're not going fast enough. - Mario Andretti

new-admin-branch [PATCH]

2005-10-19 Thread Ian Holsman
this makes the 'admin' app work.. the app-name changed from 'doc' to admin_doc. cheers Ian Index: doc.py === --- doc.py (revision 966) +++ doc.py (working copy) @@ -19,11 +19,11 @@ def doc_index(request): if not doc:

Re: Django needs model mixins

2005-10-24 Thread Ian Holsman
here is another alternative to the tagging issue: http://svn.zilbo.com/svn/django/snippets/tag.py Regards Ian. On 10/24/05, hugo <[EMAIL PROTECTED]> wrote: > > Hi, > > >This seems to indicate a need for a Django model mixins/plugins > >mechanism. Completely off the top of my head, something like

many to many tables and editing them

2005-10-25 Thread Ian Holsman
(still a newbie on all this, so excuse me if this has been discussed ad-nausieum beforehand) Hi. I've got a many to many table relationship... say Tags <--> People with the relationship defined on the 'people' model class. all is fantastic when I want to edit a person and add tags to them, th

Re: FYI: Oracle has free edition now

2005-11-01 Thread Ian Holsman
I guess I'm a bit ho-hum about it. why? 4G limit single process no replication 32 bit only and a expensive upgrade path if you were an oracle shop, or a ISV you could now offer a 'lite' version of your application I'd be more excited I guess.. but for me, I'd be looking for something a bit les

Re: lets merge i18n back into trunk

2005-11-02 Thread Ian Holsman
Just a comment on the templates. wouldn't it be easier/another option for the template loader to just load a different template based on language? When i was investigating i18n issues for a similar project (a long time ago) that is what we came up with, as asian was just too damn hard to try and

Re: lets merge i18n back into trunk

2005-11-02 Thread Ian Holsman
I think you need to do both. we can worry about the template stuff after your i18n stuff gets merged in I think. it solves 80% of the issues for most languages. --I On 11/3/05, hugo <[EMAIL PROTECTED]> wrote: > > >I must say I like Ian's proposal that the template_loader could load a > >different

Re: CSRF Middleware

2005-11-03 Thread Ian Holsman
Hi Luke. This is a really great idea. I've just got a small nit with it. by doing this you would disable/stop post's coming from via javascript/ajax method. it wouldn't be able to access the tokens required, or at the very least it would require a form tag to be someone on the HTML page which is

Re: CSRF Middleware

2005-11-04 Thread Ian Holsman
I was taking about case #2. Cheers Ian. On 11/4/05, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote: > > Ian, > > > by doing this you would disable/stop post's coming from via > > javascript/ajax method. > > it wouldn't be able to access the tokens required, or at the very > > least it would require

how to return a collection

2005-11-06 Thread Ian Holsman
Hi. I would like to write a function on my 'tag' table which will return the keywords that each contain a set of tags. (where keywords and tags in a many 2 many relationship). i don't have a problem coding the intersection function, but I do have a problem getting the function to live in the rig

Re: Primary in List

2005-11-07 Thread Ian Holsman
Hi Kevin. If http://code.djangoproject.com/ticket/746 goes into the core, you will be able to do what you want by subclassing the ForeignKey class and having it add a custom function called get_primary_photos() function added to Album when your custom class is used. well.. that is the aim of the

Re: Small report from Django/Rails meetup

2005-11-08 Thread Ian Holsman
personally I'd like to see the user-registration app get documented/released as well. what is the state of this? On 11/9/05, Eugene Lazutkin <[EMAIL PROTECTED]> wrote: > > Inline. > > "Adrian Holovaty" <[EMAIL PROTECTED]> wrote > in message > news:[EMAIL PROTECTED] > > On 11/8/05, Jacob Kaplan-Mos

Re: Move redirects to separate app/middleware in contrib?

2005-11-09 Thread Ian Holsman
What is the effect of not having the redirect application installed. also.. it sounds like we need to be able to install a set of apps at one time. eg. admin, comments, redirects. is it possible to add a command to django-admin to install the common applications (and configure default URLs etc)

Re: Names for Django components

2005-11-13 Thread Ian Holsman
is (1) the 'middleware' ? On 11/14/05, Simon Willison <[EMAIL PROTECTED]> wrote: > > Hi all, > > I'm presenting Django to a crowd of 200+ people on Thursday as part > of the London Web Developer Frameworks evening ( http:// > blog.unixdaemon.net/cgi-bin/blosxom.pl/2005/10/27 ). I'm putting the >

Re: Names for Django components

2005-11-13 Thread Ian Holsman
2. CSRF protection regards Ian On 11/14/05, Simon Willison <[EMAIL PROTECTED]> wrote: > > > On 13 Nov 2005, at 22:50, Ian Holsman wrote: > > > is (1) the 'middleware' ? > > Not really, because the term middleware already means something else >

Re: Small report from Django/Rails meetup

2005-11-14 Thread Ian Holsman
On 11/14/05, Simon Willison <[EMAIL PROTECTED]> wrote: > For me "Ajax support" really is pure marketing fluff - as far as I'm > concerned EVERY web framework supports Ajax unless it does something > truly moronic like refuse to let you output documents that don't have > the standard header/footer

Re: Django and "AJAX" (was: Re: Small report from Django/Rails meetup)

2005-11-14 Thread Ian Holsman
I was also thinking of something a whole lot more simplistic as well. javascript-enabling some of the validators. for example.. we have a URL field.. it would be nice if the javascript did the same regex match that the server side did, so that people wouldn't have to submit it in the first place,

Re: Middleware API

2005-11-14 Thread Ian Holsman
you might want to implement something similar to what apache2 did with their hooks. it sounds pretty complex, but in reality you hardly need to use all the options. 1. define when the middle ware will be run .. FIRST, MIDDLE, or LAST. 2. define which middleware has to run before and which has to

Re: Middleware API

2005-11-14 Thread Ian Holsman
l someone answers it. (which isn't in django) there is a draft document here http://httpd.apache.org/docs/2.2/developer/hooks.html and http://httpd.apache.org/docs/2.2/developer/hooks.html. regards Ian On 11/15/05, Jacob Kaplan-Moss <[EMAIL PROTECTED]> wrote: > > On Nov 14, 2005, a

jsdbi (Ajax stuff ---beware)

2005-11-16 Thread Ian Holsman
this ajax conversation is getting long, and my apolagies for continuing it. has anyone seen/heard of JSDBI ? http://scottyallen.com/code/jsdbi.js it looks like it would produce a pretty easy to use way of getting the data to/from the client. -- [EMAIL PROTECTED] -- ++61-3-9877-0909 If ever

Re: jsdbi (Ajax stuff ---beware)

2005-11-17 Thread Ian Holsman
tion in place. That's why I think it should not be a > default feature. But it is nice to have anyway. > > Thanks, > > Eugene > > > "Ian Holsman" <[EMAIL PROTECTED]> wrote in > message news:[EMAIL PROTECTED] > > this ajax conversation is getting

  1   2   >