Re: Support for Federated MySql table?

2007-11-30 Thread James Bennett
On 11/30/07, Gloria W <[EMAIL PROTECTED]> wrote: > The problem I have is that the manage.py inspectdb dumps a table which > matches my sql table in construct, but no info about being federated. > So an objects.filter() on some of these fields is failing, although I > can see the fields when I iter

Huge Free collection of Christmas Greetings : Start collecting now

2007-11-30 Thread P K Kothari
Christmas Powerpoint Greetings 15 Christmas Powerpoint Greetings 14 Christmas Flash Greetings 13

Support for Federated MySql table?

2007-11-30 Thread Gloria W
Hi, I'm using Django 0.95 on Python2.4, and it seems that it doesn't fully support federated tables in Mysql. The problem I have is that the manage.py inspectdb dumps a table which matches my sql table in construct, but no info about being federated. So an objects.filter() on some of these fields

Re: low-level cache & pagination

2007-11-30 Thread Chris G
Alright, I think I answered my own question. It seems the current RequestContext is a little messed up and not only requests cache to be remade, but also crashes runserver upon more than 1 request. On Nov 30, 7:26 pm, Chris G <[EMAIL PROTECTED]> wrote: > I have a large query that is ran and takes

low-level cache & pagination

2007-11-30 Thread Chris G
I have a large query that is ran and takes about 50 seconds to completely and is pretty resource intensive. So what I have done is cached it into a key via cache.set('my_query_results', results, 300) The problem is that I also use pagination which results from this query. So when navigating to ?p

Re: Using a signal to update a counter cache??

2007-11-30 Thread Simon Willison
On Nov 30, 4:48 pm, "Tane Piper" <[EMAIL PROTECTED]> wrote: > As you can see in the Branch model, there is a field called num_leafs > - I've been reading the signals documentation and had a look on the > web, but I'm still having difficulty getting my head around it. What > I want to do is when a

Re: sql.py cannot find tables that it generated sql to create

2007-11-30 Thread Matt
Was this ever fixed? I'm still experiencing similar behavior in r6783. Thanks! --Matt On Nov 15, 4:55 pm, richbodo <[EMAIL PROTECTED]> wrote: > ... > > Thanks. I switched to Postgres for now and everything works fine. > I'll switch back in a few days and file a bug report if necessary. --~--~--

Re: Using a signal to update a counter cache??

2007-11-30 Thread Darryl Ross
Tane Piper wrote: > As you can see in the Branch model, there is a field called num_leafs > - I've been reading the signals documentation and had a look on the > web, but I'm still having difficulty getting my head around it. What > I want to do is when a leaf is saved, on the post_save signal I w

Fwd: Break with Django SVN r6718

2007-11-30 Thread Josh Stone
Hi all, I'm having problems using Review Board with recent Django revisions, and I'm hoping that this list can help. Please see below for the previous discussion, but the gist is that with Django r6718 (and later), I'm getting exceptions when urls.py tries to access site settings. I did some deb

Newforms - error_messages

2007-11-30 Thread Rob Goedman
Hi, Using newforms-admin, I'm using request.user.message_set.create(message = _("User updated")) quite a bit. Is there an equivalent method to set the error note while processing save_change and save_add? Thanks, Rob --~--~-~--~~~---~--~~ You receive

question about custom orderings

2007-11-30 Thread Sean Perry
say I have the following classes: class Foo(models.Model): name = models.CharField(max_length=30) number = models.PositiveSmallIntegerField() def __unicode__(self): return u"%s(%d)" % (self.name, self.number) class Meta: ordering = ['name',] class FooColle

New Video: Nihtziy/Portland Must See !

2007-11-30 Thread Nihtziy
http://www.youtube.com/watch?v=3iSS1j0qK10 --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email to django-users@googlegroups.com To unsubscribe from this group, send

3 Fresh Proxies

2007-11-30 Thread Chinaguy
Forward this email to your friends and spread free surf http://www.proxygroup.6x.to/ http://www.Peroxy.6x.to http://www.proxxy.6x.to Join this yahoo group and have daily fresh and free proxies in you mailbox http://tech.groups.yahoo.com/group/hiddenzone/join the link above is blocked? Then S

3 Fresh Proxies

2007-11-30 Thread Chinaguy
Forward this email to your friends and spread free surf http://www.proxygroup.6x.to/ http://www.Peroxy.6x.to http://www.proxxy.6x.to Join this yahoo group and have daily fresh and free proxies in you mailbox http://tech.groups.yahoo.com/group/hiddenzone/join the link above is blocked? Then S

Re: ImageField file naming

2007-11-30 Thread Marty Alchin
I don't have a definitive answer at this point, no. Everybody who wants some form of flexible file naming has a different need, and it's tough to come up with something that pleases everyone, while still being a fairly concise API. I've been giving it some thought, and I'll make sure to bring it up

Re: Expiring cache entries through model save()

2007-11-30 Thread Brian Morton
Thanks for the advice Malcolm. I am going to give this more thought and see if I can come up with a generic high performance hash function. On Nov 30, 3:26 pm, Malcolm Tredinnick <[EMAIL PROTECTED]> wrote: > On Fri, 2007-11-30 at 12:08 -0800, Brian Morton wrote: > > I have an interesting idea th

Re: dynamic newforms validation etc

2007-11-30 Thread RajeshD
> This data needs to be saved in Options. A record for each product > selected with the name and price in it. This is because the product > name can change in the future and the price can change. So this should > be stored in Options. > > My problem is that I don't know yet how to do this. > > Ca

Re: Expiring cache entries through model save()

2007-11-30 Thread Malcolm Tredinnick
On Fri, 2007-11-30 at 12:08 -0800, Brian Morton wrote: > I have an interesting idea that I am not quite sure how to pursue. > I'm wondering if any of you have figured this out already. > > What I would like to do is set the cache expiration for a particular > object in the cache to be very high,

Expiring cache entries through model save()

2007-11-30 Thread Brian Morton
I have an interesting idea that I am not quite sure how to pursue. I'm wondering if any of you have figured this out already. What I would like to do is set the cache expiration for a particular object in the cache to be very high, and then delete the item from the cache when an instance of its m

Re: ORA-00911: Invalid charatcer

2007-11-30 Thread Karen Tracey
On 11/30/07, Da Martian <[EMAIL PROTECTED]> wrote: > > Aha, so there is a fix? Its just not in 0.96.1? That was indeed going to > be my very next question, as all the tickets say oracle is supported now and > should be working. > > So if I pull the trunk this issue is resolved? > > Thanks in advanc

Re: ORA-00911: Invalid charatcer

2007-11-30 Thread Da Martian
Aha, so there is a fix? Its just not in 0.96.1? That was indeed going to be my very next question, as all the tickets say oracle is supported now and should be working. So if I pull the trunk this issue is resolved? Thanks in advance! S On Nov 30, 2007 5:06 PM, Karen Tracey <[EMAIL PROTECTED]>

Re: i18n - gettext issue with simple quote

2007-11-30 Thread Nicolas Steinmetz
[EMAIL PROTECTED] a écrit : > Hello, > > In my po file, I need some french words with simple quote like : > > #: models.py:497 > msgid "User's skills" > msgstr "Compétences d\'un utilisateur" > > But when I use compile-message.py , I got fatar errors and as a reason > "Invalid control sequence"

html_output, where is BoundField?

2007-11-30 Thread Ken
I'm adding an html output method to my newforms sub-class. It's identical to the forms _html_output() except for some very small mods (I need to put 2 fields in one table row). BoundField and ErrorList are not visible in my method. I've tried forms.BoundField since the BoundField class is defi

dynamic newforms validation etc

2007-11-30 Thread super
Ok I worked myself a bit in trouble. Don't know yet how to do this with newforms: Let me explain and dumb down my problem to make things easy: two models: model 1: Products I got "products" that have each a name and a price Model 2: Options Option has a foreingkey pointing to products but also a

Re: ORA-00911: Invalid charatcer

2007-11-30 Thread Karen Tracey
On 11/30/07, ChaosKCW <[EMAIL PROTECTED]> wrote: > > > Hi > > I am curious as to why this post/ticket was closed with not follow up: > http://code.djangoproject.com/ticket/3953 > > http://groups.google.com/group/django-updates/browse_thread/thread/acb2d1895d5fcf83/2c33d28fe3acc186?hl=en&lnk=st&q=OR

Re: ORA-00911: Invalid charatcer

2007-11-30 Thread Malcolm Tredinnick
On Fri, 2007-11-30 at 08:27 -0800, ChaosKCW wrote: > Hi > > I am curious as to why this post/ticket was closed with not follow up: > http://code.djangoproject.com/ticket/3953 > http://groups.google.com/group/django-updates/browse_thread/thread/acb2d1895d5fcf83/2c33d28fe3acc186?hl=en&lnk=st&q=ORA

Using a signal to update a counter cache??

2007-11-30 Thread Tane Piper
Hi there, At the moment, I am building my site content system. The idea is that categories are branches, and contents are leafs as defined by these two models below: from django.db import models from django.contrib.auth.models import User from django.contrib.auth.decorators import permission_re

ORA-00911: Invalid charatcer

2007-11-30 Thread ChaosKCW
Hi I am curious as to why this post/ticket was closed with not follow up: http://code.djangoproject.com/ticket/3953 http://groups.google.com/group/django-updates/browse_thread/thread/acb2d1895d5fcf83/2c33d28fe3acc186?hl=en&lnk=st&q=ORA-00911%3A+invalid#2c33d28fe3acc186 I have just downloaded the

Re: Problems saving values from SelectDateWidget

2007-11-30 Thread RajeshD
On Nov 29, 4:51 am, Stupid Dustbin <[EMAIL PROTECTED]> wrote: > Hi, encountered a problem recently with SelectDateWidget. I'm not very > sure what I did wrong. Your usage of that widget is correct. Note that a recent Django revision (the excellent "autoescape" feature) had introduced a bug that

Defining custom filters for admin object lists (0.96.1)

2007-11-30 Thread Jarek Zgoda
Is there any possibility to define custom filter for admin object lists? I'd like to limit the items in a list to some subset of available foreign keys that match some criteria. -- Jarek Zgoda Skype: jzgoda | GTalk: [EMAIL PROTECTED] | voice: +48228430101 "We read Knuth so you don't have to." (

Re: How to make such query with django ORM?

2007-11-30 Thread RajeshD
> > I need to get all blogs that belong to certain user and are empty (do > not have any articles). I can't figure out how to make it with without > extra() method. As others have recommended, just use the extra() method. It's not so bad :) If you really really want to avoid that, you could add

Re: Use of newforms prefixes in html templates

2007-11-30 Thread RajeshD
> > I have a list of forms that I want to pass to my template but I am not > sure how to include the prefix. When you are creating each instance of your form, just specify the appropriate prefix for it: form = MyForm(prefix='my-prefix') When you render this form instance, Django will include th

Re: Access urls in template tags?

2007-11-30 Thread RajeshD
> Is there a simple way to do this within the template tag or would I > need to create a context processor and would this be available within > the templatetag or only within the template itself? You can do this inside a template tag. Assuming that you already have the request available in your v

Re: Many to many column naming in 1.0?

2007-11-30 Thread J. Clifford Dyer
On Fri, Nov 30, 2007 at 08:16:17AM -0600, Malcolm Tredinnick wrote regarding Re: Many to many column naming in 1.0?: > > On Fri, 2007-11-30 at 07:07 -0500, J. Clifford Dyer wrote: > > Hey all, > > > > Does anyone know if there are plans to include this patch (or similar > > functionality) in Dj

Re: Many to many column naming in 1.0?

2007-11-30 Thread Malcolm Tredinnick
On Fri, 2007-11-30 at 07:07 -0500, J. Clifford Dyer wrote: > Hey all, > > Does anyone know if there are plans to include this patch (or similar > functionality) in Django 1.0? > > http://code.djangoproject.com/ticket/785 > > It's a relatively simple change, breaking no backwards compatibility,

Re: Template Tag and Javascript Best Practices

2007-11-30 Thread David Reynolds
On 30 Nov 2007, at 12:51 pm, Manakel wrote: > > Currently, i would like to render some part of my template using a > javascript utilities "myrender.js" > > I was thinking of doing the thing clean by creating a dedicated > template tag: "jsrender". > > Now the question is: > > Should i > a) let th

Re: How use splitdatetime?

2007-11-30 Thread Karen Tracey
On 11/29/07, mamcxyz <[EMAIL PROTECTED]> wrote: > > The problem was that I pass a Initial date as string, so the code try > to call "value.date' and obviously fail. Ah. You didn't include an initial setting in what you posted -- posting exactly the code you are having trouble with will help in g

Re: ImageField file naming

2007-11-30 Thread Chris Hoeppner
I guess you don't have a hint for me to get this working? It seems like everyone's having that rename issue where _get_pk returns none. I'm just blind-guessing, but perhaps the way to go might be "moving" the file on post_save onto another name, since pre_save doesn't provide a pk value? I don't

Template Tag and Javascript Best Practices

2007-11-30 Thread Manakel
Hello, Currently, i would like to render some part of my template using a javascript utilities "myrender.js" I was thinking of doing the thing clean by creating a dedicated template tag: "jsrender". Now the question is: Should i a) let the designer perform an include for "myrender.js" in each

Many to many column naming in 1.0?

2007-11-30 Thread J. Clifford Dyer
Hey all, Does anyone know if there are plans to include this patch (or similar functionality) in Django 1.0? http://code.djangoproject.com/ticket/785 It's a relatively simple change, breaking no backwards compatibility, and it goes a long way to making it easier to integrate legacy DBs into dja

SCGI (or other) graceful restart

2007-11-30 Thread Thomas Güttler
Hi, up to now I use SCGI and flup. There are some issues: - flup does not provide an init script. No big problem: I wrote my own. - flup is not developed actively: The author does not use it anymore. - There is no graceful restart (Restarting SCGI server with kill produces internal server er

Re: NodeList.render() and SafeString

2007-11-30 Thread Michael Elsdörfer
> It's an oversight; I hadn't thought of that case. You're right, marking > render() output as safe should be the right thing to do. If you'd care > to open a ticket so this doesn't get lost, I'll fix it tomorrow or > during the sprint on the weekend. Thanks Malcolm: http://code.djangoproject.co

Latest collection of Amazing Inspiring Stories

2007-11-30 Thread P K Kothari
The Potatos The Empty Chair Two Goats My Visit in Heaven