Re: Generic Authorization vs per-object-permissions branch

2007-02-06 Thread Frédéric Roland
I would like to see these branches merged with the trunk too but lack sufficient experience with working with trunk/branches. What are the steps needed to merge the last change from the trunk into the branches to keep the branches up to date ? How would you do it ? Start with the patch

Re: Generic Authorization vs per-object-permissions branch

2007-02-06 Thread Ramdas S
Nope, People are pretty silent about this. I think the argument that no one has tested these branches enough and hence we cannot integrate it will not take this forward. We need to see that one by one these trunks are integrated to SVN. As such there are many bugs or missing features in the

increasing display of recent changes in admin

2007-02-06 Thread Kenneth Gonsalves
hi, the recent changes display in admin only shows about 12. How do i increase this number? Or see all changes? -- regards kg http://lawgon.livejournal.com http://nrcfosshelpline.in/web/ --~--~-~--~~~---~--~~ You received this message because you are

Re: Generic Authorization vs per-object-permissions branch

2007-02-06 Thread Edward Muller
I am wondering the same thing. Did you ever hear anything about those branches? On Jan 26, 2007, at 9:41 AM, Ramdas S wrote: > > Hi, > > I am working on something where I need to provide object level > permissions or column level permissions at least. > > There are two branches which I see

Per object permissions

2007-02-06 Thread Edward Muller
What happened to the per object permission branches? Are they going to be integrated into django? --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email to

Re: save many to many data

2007-02-06 Thread Russell Keith-Magee
On 2/7/07, Antonio <[EMAIL PROTECTED]> wrote: > > * martedì 06 febbraio 2007, alle 20:10, Russell Keith-Magee wrote : > > data.rims.add(req.POST.getlist('rims')) Oops - sorry - missed a small, but very important bit - You need to roll out the list as arguments. Ordinarily, the usage of add()

Re: Reverse M2M

2007-02-06 Thread Russell Keith-Magee
On 2/6/07, Enrico <[EMAIL PROTECTED]> wrote: > > Hi Russel, > > I think that it doesn't solve the problem. > > I can use your solution to get my friends. But I need to include > people who added me in the same listing. > > To get a list of people who added me I can use: > people_who_added_me = >

Re: django variables in template

2007-02-06 Thread Joseph Heck
/java/javascript/ On 2/6/07, Joseph Heck <[EMAIL PROTECTED]> wrote: > > assign it in java - just expect {{ variable_x }} to get replaced with > whatever you've pushed into the context from the view... > > i.e. > > > var x = {{ variable_x }} > ... > > > On 2/6/07, damacy <[EMAIL PROTECTED]>

Re: django variables in template

2007-02-06 Thread Joseph Heck
assign it in java - just expect {{ variable_x }} to get replaced with whatever you've pushed into the context from the view... i.e. var x = {{ variable_x }} ... On 2/6/07, damacy <[EMAIL PROTECTED]> wrote: > > > hi, there. > > i'm a writing a template with a section of javascript code in it.

django variables in template

2007-02-06 Thread damacy
hi, there. i'm a writing a template with a section of javascript code in it. i need to use django variables in the script and just wondering how i can do it. i tried {{ variable_x }} but it does not seem to work. has anyone any clue? --~--~-~--~~~---~--~~

FileField broken in admin of newforms branch

2007-02-06 Thread Mae
Hi folks, I need help to make my FileFields display nice "browse" buttons and be of type "file" in admin. I have a model class that looks like this: class Award(models.Model): """ A film award. """ name = models.CharField(maxlength=100, unique=True) image

Re: apach/mod_python IE content-disposition weirdness

2007-02-06 Thread Sean De La Torre
Here's the solution in case someone else runs into this problem: On a lark, I modified the mod_python handler to ignore the 'Vary' header. To my surprise, IE started working correctly. I noticed, however, that the WSGI server always outputs the 'Vary' header, but it never caused IE to crash.

Re: Newforms MultiValueField

2007-02-06 Thread canen
Phil, Thought an example might help. class VacationBudgetField(MultiValueField): def __init__(self, required=True, label=None, widget=None, initial=None, f_type=(), currency=(), amount=None): fields = (ChoiceField(choices=f_type), ChoiceField(choices=currency), IntegerField())

Re: Newforms MultiValueField

2007-02-06 Thread canen
Phil, I think you must subclass it and define the compress method. See the comments here http://code.djangoproject.com/browser/django/trunk/ django/newforms/fields.py#L412. You will also need a MultiWidget to go with the field. On Feb 6, 10:04 am, "Phil Powell" <[EMAIL PROTECTED]> wrote: > Hi,

SplitDateTimeResetWidget/Field

2007-02-06 Thread Giles Constant
Hiya, I've been mucking about with the SplitDateTimeWidget field, and it didn't really work for me - it wouldn't accept "None", even when required was set to "False", and it needed a "set to now" button :-) Feel free to criticise the code, and have fun! _now_button = """ """ class

@staticmethod + django + python 2.5 ?

2007-02-06 Thread Bram - Smartelectronix
hey everyone, should there be any reason for @staticmethod not to work in django model classes? or should I be using the non-decorator syntax? ( django dev server + python 2.5 ) - bram --~--~-~--~~~---~--~~ You received this message because you are

Re: Multiple profiles

2007-02-06 Thread voltron
Thanks mrstone for your reply, but there are some things that are not too clear, please bear with me :) I take it that I have to define every profile that I like separately and reference them all using a ForeingKey to user ? What do I fill in as the standard profile in AUTH_PROFILE_MODULE?

Re: Multiple profiles

2007-02-06 Thread mrstone
The current framework only allow for one "profile class" per site. If you want you can let this class return different profiles depending on the user. class mysiteprofile(models.Model) user = models.ForeignKey(User, unique=True, related_name='user_profile') ... ... def

apach/mod_python IE content-disposition weirdness

2007-02-06 Thread Sean De La Torre
Platform: Django 0.95, Win XP & 2003, Apache 2.2/mod_python 3.2.10 I'm running into an issue when returning data to Internet Explorer that has a content type other than text/html. More specifically, I'm returning data in an html table format recognized by excel (content- type:

Download weather toolbar

2007-02-06 Thread bhaju
Download Weather Toolbar - Instant weather reports, forecasts, and radar images anytime for FREE! - http://surl.in/HLWTD238206SVRAKSX --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Django users" group. To post to

knowing not much about character encodings

2007-02-06 Thread Brian Rosner
Hey all, I am writing a new Django based application that will replace our current shopping cart system. All is great on that front and Django has been amazing. I have written xcart_convert.py that sends queries to the current database to pull out all of the information and move it over to the

- Great Free Surprise -

2007-02-06 Thread Lucy
*Media Mall Toolbar : Advanced 1-click System to the Following Items :* *- 200 Live TV Channels - FM Radio With alot of Radio Stations and You Can Add More. - Live WebCams around The World - Tools and Essentials as : Online Spyware Scanners,Online Virus Scanners and Online

Re: save many to many data

2007-02-06 Thread Antonio
* martedì 06 febbraio 2007, alle 20:10, Russell Keith-Magee wrote : for the moment, I've resolved this way: if req.method == 'POST': myform = nf.models.form_for_model(Previsione)(req.POST) if myform.is_valid(): dati = myform.save(commit=False)

Newforms MultiValueField

2007-02-06 Thread Phil Powell
Hi, Can anyone provide any pointers on how I use MultiValueField? Can I use it straight out of the box, or do I have to subclass to create a new field and a new MultiValueWidget? I thought that this code would just work: postcode = forms.MultiValueField(fields=(forms.CharField(max_length=4),

Hiring Django/Python Developer

2007-02-06 Thread DavidA
Hi All, I'm the CTO of a medium-sized hedge fund in Greenwich, CT and have been the sole developer for our internal software projects. There's too much on my plate for me to handle by myself and I'm looking to hire a full-time Django/Python developer. I've been an avid reader and occasional

Re: Reverse M2M

2007-02-06 Thread Enrico
Hi Russel, I think that it doesn't solve the problem. I can use your solution to get my friends. But I need to include people who added me in the same listing. To get a list of people who added me I can use: people_who_added_me = auth.models.User.objects.filter(profile__friends=my_id) My

Re: save many to many data

2007-02-06 Thread Russell Keith-Magee
On 2/6/07, Antonio <[EMAIL PROTECTED]> wrote: > Hi all, > I have a class with a many2many field: ... > but when I update the data the old rims are deleted and the new inserted ... > is > possible to UPDATE the rims data ? cioe', is possible to leave unchanged the > rims data if are the same ?

Re: Debugging test client

2007-02-06 Thread Russell Keith-Magee
On 2/5/07, Lawrence Oluyede <[EMAIL PROTECTED]> wrote: > I tried to set settings.DEBUG to True explicitly in the test case but > nothing has changed. > > How do I get the debug page in the mocked test? Is it possible? Not really. When you use Django to run a suite of tests, the test runner

Re: tying custom queries back into the queryset / object model / paginator... ?

2007-02-06 Thread Bram - Smartelectronix
Lawrence Oluyede wrote: >> * is there a way to do custom queries, and tie the result back into the >> object model or into the queryset interface? I have a query which >> (really) returns 'django objects', which is impossible to write with the >> ORM, but after doing the query I would like to get