Re: Passing user.is_superuser through form

2006-08-24 Thread cyberco
Besides, if I don't pass all attributes I have to set them manually. In case of User.date_joined somehow none of the following works: = new_data_user['date_joined'] = origUser.date_joined new_data_user['date_joined_date'] = origUser.date_joined_date new_data_user['date_joined_

import opml file

2006-08-24 Thread a
hi guys how do i import opml file in django using syndication i m tryin to build an rss reader thanks --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email to djang

Re: Confused on Where to Put SQL

2006-08-24 Thread Laundro
Do you really need to perform hundreds of SQL queries? Wouldn't it be a lot easier to load all of the data you need into an object, perform your magic on it and then write it all back to the database? --~--~-~--~~~---~--~~ You received this message because you ar

Re: Yet another Django application

2006-08-24 Thread didier Belot
Thanks, looks good. What is the libuser that's imported in zmaj.users.views.py ? 2006/8/24, Viktor Kerkez <[EMAIL PROTECTED]>: > > http://code.google.com/p/zmaj/ > > [...] --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Gro

Re: Saving ManyToMany relationships in custom manipulator

2006-08-24 Thread James Mulholland
Russ and Ivan -- thanks very much for your help! I'd spent several hours searching for info and could only find details of how to do it for old versions. Thanks again. -- James --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Goo

Re: import opml file

2006-08-24 Thread Ian Holsman
you might want to check out FeedJack http://www.feedjack.org/ it's done a lot of stuff in that area. regards Ian On 24/08/2006, at 5:42 PM, a wrote: > > hi guys how do i import opml file in django > using syndication > > i m tryin to build an rss reader > thanks > -- Ian Holsman [EMAIL PROTECT

Re: Yet another Django application

2006-08-24 Thread Viktor Kerkez
On 8/24/06, Sean Schertell <[EMAIL PROTECTED]> wrote: > Hey this sounds like a great project! Any plans to integrate mail > user and ftp user management? Yes, there is a plan to integrate mail and ftp user management. It will be the part of the SMTP and FTP server configuration. But there is a lo

Re: FreeComment doesn't work with slugs?

2006-08-24 Thread Derek Hoy
On 8/24/06, DavidA <[EMAIL PROTECTED]> wrote: > > The FreeComment model assumes the primary key of the object it refers > to is an integer, so you can't make the primary key of your model a > slug, but you can still use a slug on your model: > > class Post(models.Model): > slug = models.SlugFi

Re: upload files to another server

2006-08-24 Thread zenx
Thank you Jacob! If anybody can point me to any link about setting up NFS with Django I would be grateful. Thanks!!! --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, sen

Re: Yet another Django application

2006-08-24 Thread Viktor Kerkez
On 8/24/06, didier Belot <[EMAIL PROTECTED]> wrote: > What is the libuser that's imported in zmaj.users.views.py ? It's a python library that implements a standardized interface for manipulating and administering user and group accounts. It's developed by RedHat, but can be found for every linux

where to keep custom managers

2006-08-24 Thread Filipe
Hi all, I've made some custom managers and am keeping them as inner classes of their respective model classes. However, I'm wondering if this is what makes most sense... Is there a convention as to where to put custom managers? I also tried keeping them in a separate managers.py, at the same lev

Re: Passing user.is_superuser through form

2006-08-24 Thread cyberco
Besides, if I don't pass all attributes I have to set them manually. In case of User.date_joined somehow none of the following works: = new_data_user['date_joined'] = origUser.date_joined new_data_user['date_joined_date'] = origUser.date_joined_date new_data_user['date_joined_

Re: Django 0.95 on Dreamhost

2006-08-24 Thread Apple
> hmm.. let's try the following. > > 1. take the 2 files attached to this email. > > 2. put them to some folder on dreamhost that's accessible from the outside. > > 3. now go to that folder using your browser. > > 4. click on the test.fcgi file > > > does it work? > > gabor I have tried your meth

Re: Yet another Django application

2006-08-24 Thread didier Belot
2006/8/24, Viktor Kerkez <[EMAIL PROTECTED]>: > > On 8/24/06, didier Belot <[EMAIL PROTECTED]> wrote: > > What is the libuser that's imported in zmaj.users.views.py ? > > It's a python library that implements a standardized interface for > manipulating and administering user and group accounts. It

Re: Yet another Django application

2006-08-24 Thread Rasjid
Viktor Kerkez wrote: > http://code.google.com/p/zmaj/ > > is an application for Linux system administration. After playing with Django for the first time a few days ago, I thought - hey, this would be a great base for a python based webmin replacement. And lo and behold, someone else has started

Re: Yet another Django application

2006-08-24 Thread Viktor Kerkez
On 8/24/06, didier Belot <[EMAIL PROTECTED]> wrote: > About the service app: it is very distribution specific! Yes, I know :-/ I'm one of http://www.atomixlinux.org developers, and because of that I don't have time to test it on other Linux distributions (Atomix is derived from Fedora)... The pla

Re: Passing user.is_superuser through form

2006-08-24 Thread cyberco
What works is this: = new_data_user['date_joined_date'] = str(origUser.date_joined.date()) = Not sure if that is wise... cyberco wrote: > Besides, if I don't pass all attributes I have to set them manually. In > case of User.date_joined somehow none of t

Re: django cannot connect to mysql after upgrade

2006-08-24 Thread Baczek
Thanks. Got around that by uninstalling distro's mysqldb and easy_installing one. Now I got hit by 1093 You can't specify target table 'foobar' for update in FROM clause The cause seems to be a query of form such as UPDATE t1 SET column2 = (SELECT MAX(column1) FROM t1); This seems to be a 'bug'

Re: Connecting FCKeditor's Image Browser to Django

2006-08-24 Thread Baczek
Great work! I wanted to do something similar, but eventually went the easy way and just use the php connector :) Works practically out of the box in an apache2 + mod_php + mod_python setting. --~--~-~--~~~---~--~~ You received this message because you are subscrib

Re: Diamanda wiki v.0.0.2

2006-08-24 Thread maddiin
hi piotr, i like the idea of a django-wiki a lot. a feature i miss is subcategorizing the wiki content. but.. thats all. :-) i tested the app and the diff-page is always showing that only "Row: 1" has been changed. maybe i dont understand it or its not working. thanks for sharing your app.

Re: Django 0.95 on Dreamhost

2006-08-24 Thread Gábor Farkas
Apple wrote: >> hmm.. let's try the following. >> >> 1. take the 2 files attached to this email. >> >> 2. put them to some folder on dreamhost that's accessible from the outside. >> >> 3. now go to that folder using your browser. >> >> 4. click on the test.fcgi file >> >> >> does it work? >> >> ga

How to check if a request was a POST or GET

2006-08-24 Thread fdb
Hi, I'm trying to detect if a request is a POST or a GET. This is what I'm doing: if request.POST: # do stuff However, this only works if there are some variables in the POST. The request I'm doing is empty (it's an ajax "delete" request). Is there a way to check if the request was a POST,

Problem getting list from SelectMultipleField

2006-08-24 Thread James Mulholland
Related to a question I asked about custom manipulators earlier on, I have a manipulator like this: class SmsManipulator(forms.Manipulator): def __init__(self): self.fields = ( forms.SelectField(field_name="contact_type", choices=TYPES, validator_list=[self.gotContactType]

Re: How to check if a request was a POST or GET

2006-08-24 Thread Chris Long
Might be of help: http://www.djangoproject.com/documentation/request_response/#httprequest-objects if request.method == 'GET': do_something() elif request.method == 'POST': do_something_else() Chris --~--~-~--~~~---~--~~ You received this message becaus

Re: Problem getting list from SelectMultipleField

2006-08-24 Thread Chris Long
Try: data.getlist('teams') Chris --~--~-~--~~~---~--~~ 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 email

Re: Diamanda wiki v.0.0.2

2006-08-24 Thread [EMAIL PROTECTED]
>a feature i miss is subcategorizing the wiki content. Could you be more specific ? An example maybe ? :) Diff: - the diff uses unified diff which shows the row with changes and few rows up and below him. If you make big changes it will think that the whole page changed. --~--~-~--~---

Re: Problem getting list from SelectMultipleField

2006-08-24 Thread James Mulholland
Chris, that's perfect, thanks for putting me out of my misery :) I still *love* Django but if I'd started with manipulators, etc, I think I would have quit almost immediately! -- James --~--~-~--~~~---~--~~ You received this message because you are subscribed to

Extracting arguments to web service methods

2006-08-24 Thread magus
>From what I can see django would be a very convenient tool to build webservices similar to the del.icio.us API (i.e. I'm not interested in SOAP, XML-RPC, JSON, etc). The only way I've found of extracting arguments is to use request.GET like this request.GET['arg1'] (Optional arguments (i.e.

Re: Diamanda wiki v.0.0.2

2006-08-24 Thread maddiin
>Could you be more specific ? An example maybe ? :) i meant just to have categories like wiki-1 and be able to add a subcategory in wiki-1 like wiki-1-1. maybe another subategory in wiki-1-1.. on the index-page it could then look like: wiki-1 --related wiki-1 wikis --wiki-1-1 related wiki-1

Re: Webdav access - OT

2006-08-24 Thread clee
I would look at zope fror code for a webdav server. I believe Twisted web may also. (Starting with Zope 2.8, zope uses Twisted for it's web server.) --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Django users" gro

Re: Diamanda wiki v.0.0.2

2006-08-24 Thread maddiin
i was told the example is confusing.. to make it clear: Category 1 --related Category 1 wikis --Subcategory 1 of Category 1 related "Category 1-Subcategory 1" wikis Category 2 --related Category 2 wikis --Subcategory 1 of Category 2 related "Category 2-Subcategory 1" wikis --~--~-

Re: Diamanda wiki v.0.0.2

2006-08-24 Thread [EMAIL PROTECTED]
autolisting of sub/categories? :) they call it namespaces :) I'll try to add something like that or maybe I'll extend keywords. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Django users" group. To post to this g

Re: upload files to another server

2006-08-24 Thread Jay Parlar
On 8/24/06, zenx <[EMAIL PROTECTED]> wrote: > > Thank you Jacob! > > If anybody can point me to any link about setting up NFS with Django I > would be grateful. > Yeah, Jacob's right, NFS is the way to go. Only use my scp idea if for some reason you can't get NFS going. And there won't be any do

Re: Many2Many to same table w. intermediary table - admin problems

2006-08-24 Thread Ruben
Today I run into the same problem. --- It's not necessarily your "to_party" attribute that is missing. I could vary the problem by using a Meta class with a unique_together option, and additionally, moving the "edit_inline" to my second ForeignKey: class MyIntermediate(models.Model):

Re: IN field lookup with empty list

2006-08-24 Thread Enrico
Hi Jacob, I've just updated to revision 3654. I was trying to populate a context with two different lists of news entries. The second list shouldn't display entries already shown in the first, so I used exclude with 'id__in' to separate the results. Also, I'm using a custom manager to show only

Re: upload files to another server

2006-08-24 Thread Jacob Kaplan-Moss
On Aug 24, 2006, at 9:31 AM, Jay Parlar wrote: > And there won't be any docs on setting up NFS with Django. Your Django > won't know you're running NFS, and NFS won't know you're running > Django. They're unrelated to each other. Took the words right out of my mouth :) > There should be a ton of

Urls not matched in production mode [n00b]

2006-08-24 Thread cerealito
Hi everyone, I've been having a great time testing Django and developing a real application. However, I've run into some trouble putting my project in a production environment: Everything works fine in using the development sever, but when I try to put my project under Apache and mod_python,

Re: Extracting arguments to web service methods

2006-08-24 Thread Jacob Kaplan-Moss
On Aug 24, 2006, at 8:16 AM, magus wrote: > This is a little cumbersome though since I need to enclose it in a > try-catch block to deal with missing arguments. Note that ``request.GET`` and friends follow the standard Python mapping interface, so you can use ``get()`` to provide a default valu

Re: Extracting arguments to web service methods

2006-08-24 Thread Jacob Kaplan-Moss
Jacob Kaplan-Moss wrote: > Oh, and in the future, questions like these are better addressed to > django-users [...] Which is, of course, exactly where you posted this. Sheesh, I'm a moron. Time for more coffee. Jacob --~--~-~--~~~---~--~~ You received this mes

Re: Diamanda wiki v.0.0.2

2006-08-24 Thread maddiin
ok, from now on i call it namespaces, too. :p i think "meta" keywords and description are not necessary at all. if you like to use meta keywords and description anyway, using the page.title would be ok for meta keywords. so.. i already removed the keywords, because i dont use them. but if you li

Re: How to check if a request was a POST or GET

2006-08-24 Thread fdb
Thanks! That's what I needed! Kind regards, Frederik --~--~-~--~~~---~--~~ 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 thi

Re: FreeComment doesn't work with slugs?

2006-08-24 Thread DavidA
Derek Hoy wrote: > Some of the slug examples use slug as PK. Funnily enough, your blog > example does :) > http://davidavraamides.net/blog/2006/05/11/yet-another-django-blog/ Yes, and that's how I learned about the problem. If you would have stumbled upon this later post, you would have seen th

Re: Urls not matched in production mode [n00b]

2006-08-24 Thread Bryan L. Fordham
> The current URL, /metadata/, didn't match any of these." Apache is passing the entire URL. Try changed your urls.py to (r'^metadata/', include('..urls')), and moving things to a urls.py in your add directory hth --B -- Bryan L. Fordham socialistsushi.com Sushi For Everyone --~--~-

Re: Urls not matched in production mode [n00b]

2006-08-24 Thread cerealito
Yup, That made it... Thanks a lot! --~--~-~--~~~---~--~~ 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 email

Emailing Error Messages

2006-08-24 Thread Martin Ostrovsky
Hello, Is there an existing method or means in Django to have any exceptions that are caught emailed automatically? Or does this require a bit of custom code? Thanks, Martin --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google

Re: Emailing Error Messages

2006-08-24 Thread James Bennett
On 8/24/06, Martin Ostrovsky <[EMAIL PROTECTED]> wrote: > Is there an existing method or means in Django to have any exceptions > that are caught emailed automatically? Or does this require a bit of > custom code? For exceptions being *caught*. For exceptions which *aren't* caught (and which resu

Re: Emailing Error Messages

2006-08-24 Thread Jacob Kaplan-Moss
On Aug 24, 2006, at 10:31 AM, Martin Ostrovsky wrote: > Is there an existing method or means in Django to have any exceptions > that are caught emailed automatically? Or does this require a bit of > custom code? If ``DEBUG`` is ``False``, Django will email any errors to the people in the ``ADMI

Database Migration

2006-08-24 Thread Dave
I create my models in models.py, and everything looks great. I launch the application and millions upon millions of peope start using my app and creating their own little entries in my database, via the perfect models.py I wrote. But then, the EVIL CLIENT comes along and requests a change to exis

included templates to load own objects

2006-08-24 Thread Mae
Hi all, here's my problem: I have a bunch of templates that look like this: base.html: {% block ticker %} { % include "ticker.html" % } {% endblock %} content_page1.html: {% extends "base.html" %} do other stuff... content_page2.html: {% extends "base.html" %} do completely other stuff... I

Re: Database Migration

2006-08-24 Thread Jay Parlar
On 8/25/06, Dave <[EMAIL PROTECTED]> wrote: > > I create my models in models.py, and everything looks great. I launch > the application and millions upon millions of peope start using my app > and creating their own little entries in my database, via the perfect > models.py I wrote. > > But then,

Re: my private django repository goes public

2006-08-24 Thread dummy
Hi, garaged schrieb: > On 8/23/06, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote: >> Hi all, >> > > Its great for me, my only complaint is if you actually have to > distribuite the source for every external package too ? > My intention is that each library should as much as functional complete an

Re: my private django repository goes public

2006-08-24 Thread Mae
Thanks, Dirk. Mae --~--~-~--~~~---~--~~ 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 email to [EMAIL PROTEC

Re: Database Migration

2006-08-24 Thread Rock
One of my django apps contains testing data about every item our company has manufactured over the last year or so. The database has over 50 million rows of data. Despite this I have successfully migrated the database several times. Sometimes it is trivial. Back up the data for safety and then jus

ImportError - No module named index

2006-08-24 Thread [EMAIL PROTECTED]
I really have tried to solve this on my own, but despite my best efforts I wasn't able to fix it. Anyway, I have created a project using: django-admin.py startproject mysite Then I added an app using: python manage.py startapp hello All worked well. I added the app in installed apps list and added

basic question about concurrent access

2006-08-24 Thread Steve M
I have a basic question about concurrency. Suppose I have a table Users, with a column email_address, and a view that allows updating records from this table. Suppose further that two different sessions, Alice and Bob, have loaded the view on a specific record, say, record 15. The view shows the

Admin: linking to foreignKey / m2m tables

2006-08-24 Thread mathiasp
Hello all, is it possible to link to the foreignKey fields in Admin? Now I can choose the linked record and create a new one, but I would really like to be able to go to a linked record. Example: now I can create a 'case' and add 'communication events', I can see the names of the linked 'commun

Re: Passing user.is_superuser through form

2006-08-24 Thread Scott Paul Robertson
On Thu, Aug 24, 2006 at 10:46:25AM -, cyberco wrote: > > What works is this: > > = > new_data_user['date_joined_date'] = str(origUser.date_joined.date()) > = > > Not sure if that is wise... > Unfortunately get_validation_errors expects the type that

Re: Diamanda wiki v.0.0.2

2006-08-24 Thread [EMAIL PROTECTED]
they keywords are optional. Currently they are only for META but I'm thinkig about ContentBBcode tags that could list pages with entered tag (or make lists, feeds of latest changes, new pages in the X keyword). Keywords vs namespaces/categories is a subject to think and implement in the near futur

Re: basic question about concurrent access

2006-08-24 Thread Michael van der Westhuizen
Hi Steve, On 8/24/06, Steve M <[EMAIL PROTECTED]> wrote: > > I have a basic question about concurrency. > [snip] > > Now Alice and Bob each edit the email address in the text field, but > they set it to different values; Alice sets it to > '[EMAIL PROTECTED]' and Bob sets it to '[EMAIL PROTECTED]

Re: ImportError - No module named index

2006-08-24 Thread dummy
Hi Jakob, this situation is not unknown to me :) First you should check if you have __init__.py files along mysite.hello.views. They can be empty but thats what python expects. Than check if mysite.hello or mysite is in the settings.py in INSTALLED_APPS. If so use the shell-mode: python mana

Re: ImportError - No module named index

2006-08-24 Thread Bryan L. Fordham
> All worked well. I added the app in installed apps list and added the > following url > (r'^site/$', include('mysite.hello.views.index')), > into urls.py file. you either want include('mysite.hello.urls') to include the urls.py in your app, or (r'^site/$', 'mysite.hello.views.index'), to execu

Re: ImportError - No module named index

2006-08-24 Thread [EMAIL PROTECTED]
Bryan L. Fordham wrote: > > All worked well. I added the app in installed apps list and added the > > following url > > (r'^site/$', include('mysite.hello.views.index')), > > into urls.py file. > > you either want include('mysite.hello.urls') to include the urls.py in your > app, or > (r'^site/$'

Re: Passing user.is_superuser through form

2006-08-24 Thread Sean
Just stumbled upon this: http://www.rossp.org/blog/2006/aug/23/changemanipulators-only-part-model/ Could be of use to some. Scott Paul Robertson wrote: > On Thu, Aug 24, 2006 at 10:46:25AM -, cyberco wrote: > >> What works is this: >> >> = >> new_data_user['date_joined

Re: Passing user.is_superuser through form

2006-08-24 Thread cyberco
OK, I got the dates working now that I've converted them to strings. But I can't set the value for the 'is_superuser' attribute using the same mechanism: ==VIEW== userManipulator = User.ChangeManipulator(request.user.id) origUser = userManipulator.original_object new_data_

Re: Passing user.is_superuser through form

2006-08-24 Thread cyberco
OK, I got the dates working now that I've converted them to strings. But I can't set the value for the 'is_superuser' attribute using the same mechanism: ==VIEW== userManipulator = User.ChangeManipulator(request.user.id) origUser = userManipulator.original_object new_data_

Re: Many2Many to same table w. intermediary table - admin problems

2006-08-24 Thread Mathias Picker
Ruben, I think this is the same as http://code.djangoproject.com/ticket/1939 It seems to be somewhat involved in the dirty areas of admin. I have for now stopped thinking about it... / Mathias Am Donnerstag, den 24.08.2006, 07:42 -0700 schrieb Ruben: > Today I run into the same problem. > -

Re: basic question about concurrent access

2006-08-24 Thread Waylan Limberg
On 8/24/06, Steve M <[EMAIL PROTECTED]> wrote: > > I have a basic question about concurrency. > [snip] > > Now Alice and Bob each edit the email address in the text field, but > they set it to different values; Alice sets it to > '[EMAIL PROTECTED]' and Bob sets it to '[EMAIL PROTECTED]'. Then > t

Dynamic Menus...

2006-08-24 Thread mediumgrade
Don't know if this is a Django question or not, but here is the situation: I am developing an application for a client who is a automobile broker. He wants agents to submit requests for vehicles from the web. The agent will be able to select the make/model of the vehicle. What I want is for the m

Re: Passing user.is_superuser through form

2006-08-24 Thread Scott Paul Robertson
On Thu, Aug 24, 2006 at 08:16:25PM +0200, Sean wrote: > > Just stumbled upon this: > http://www.rossp.org/blog/2006/aug/23/changemanipulators-only-part-model/ > > Could be of use to some. > > Scott Paul Robertson wrote: > > On Thu, Aug 24, 2006 at 10:46:25AM -, cyberco wrote: > > > >> Wha

Re: Dynamic Menus...

2006-08-24 Thread Chris Long
Using javascript would be the way to go. Though you have two options on how to know which car relates to which manufacturer. 1) AJAX: Query the server, which will return a list to be placed in the select field. 2) Hard coded JS: Hard code it into a JS array that will then be used to look up the f

Re: Dynamic Menus...

2006-08-24 Thread Josh Trutwin
On Thu, 24 Aug 2006 19:13:11 - "mediumgrade" <[EMAIL PROTECTED]> wrote: > > Don't know if this is a Django question or not, but here is the > situation: > > I am developing an application for a client who is a automobile > broker. He wants agents to submit requests for vehicles from the > w

Re: Post to PayPal with urlllib [newbie question]

2006-08-24 Thread [EMAIL PROTECTED]
I thought about trying to post all the data to a form in the view page, then automatically submit the form using JavaScript, but it seems like such a cludgy solution. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups

Re: Passing user.is_superuser through form

2006-08-24 Thread cyberco
Sean: Thanks, man, that link saved my day (at least a few hours)! This should definitely be mentioned in the Django documentation asap. Scott: yup, and I can now just say follow = {'date_joined': False} instead of specifying both date_joined_date and date_joined_time by hand (as I described above

Re: FreeComment doesn't work with slugs?

2006-08-24 Thread Derek Hoy
On 8/24/06, DavidA <[EMAIL PROTECTED]> wrote: > > Yes, and that's how I learned about the problem. If you would have > stumbled upon this later post, you would have seen that I ran into it > when I added comments: > > http://davidavraamides.net/blog/2006/05/13/adding-comments/ ah well, that's how

Re: Post to PayPal with urlllib [newbie question]

2006-08-24 Thread Jeremy Dunck
On 8/24/06, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote: > > I thought about trying to post all the data to a form in the view page, > then automatically submit the form using JavaScript, but it seems like > such a cludgy solution. It's also insecure because you'd be giving the client the ability

Re: Yet another Django application

2006-08-24 Thread Viktor Kerkez
On 8/24/06, Rasjid <[EMAIL PROTECTED]> wrote: > Your project is now bookmarked, and time allowing I hope to be able to > contribute. I would be very glad to incorprate into Zmaj any changes and modules You provide me with. :) Every contribution is welcome. :) --~--~-~--~~

Re: my private django repository goes public

2006-08-24 Thread zenx
Thank you!!! --~--~-~--~~~---~--~~ 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 email to [EMAIL PROTECTED] F

Re: my private django repository goes public

2006-08-24 Thread garaged
> My intention is that each library should as much as functional complete and > as much as independent from other requirements. > > Maybe I have to much copied from the source-packaged and maybe I haven't the > right technic used instead of using subversion svn:external feature (which I > have

Re: upload files to another server

2006-08-24 Thread zenx
Thank you both!!! That's very helpful! I will read the howto carefully ;) --~--~-~--~~~---~--~~ 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 u

question = Q() | -Q()

2006-08-24 Thread Andy Dustman
I had been hunting around for some way to do negation in queries, and found QNot, though it is undocumented and not exported with Q. I though this was a little bit clumsy, so here's a patch to add unary negation to Q objects: Index: django/db/models/query.py ==

Stumped on how to implement flatpages

2006-08-24 Thread [EMAIL PROTECTED]
I read the documentation on the flatpages, included the middleware, added the app, sync'd the database, and made an entry using the admin. Every time I try to view the newly created flatpage, I get a 404 error. I thought it might be because I have debug=true, but changing that didn't help. I'm u

Re: Dynamic Menus...

2006-08-24 Thread Sean
Not really django related, but here goes: It depends on how you want to implement the form. 1. Using javascript and implementing a dynamic option list. You can find enough examples on dynamicdrive.com and other sites 2. Using Javascript an ajax you could hook into the onchange event of the firs

Re: import opml file

2006-08-24 Thread a
thanks a lot man Ian Holsman wrote: > you might want to check out FeedJack http://www.feedjack.org/ > it's done a lot of stuff in that area. > > regards > Ian > > On 24/08/2006, at 5:42 PM, a wrote: > > > > > hi guys how do i import opml file in django > > using syndication > > > > i m tryin to bu

Re: Stumped on how to implement flatpages

2006-08-24 Thread John Sutherland
On 24 Aug 2006, at 21:49, [EMAIL PROTECTED] wrote: > I read the documentation on the flatpages, included the middleware, > added the app, sync'd the database, and made an entry using the admin. It sound like you've put the flatpages middleware in the wrong place, it should be the last entry (un

Re: Removing old permissions from auth_permission

2006-08-24 Thread cyberco
Anybody? --~--~-~--~~~---~--~~ 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 email to [EMAIL PROTECTED] For m

Re: Outer joins as extras()

2006-08-24 Thread Alan Green
On 8/22/06, Russell Keith-Magee <[EMAIL PROTECTED]> wrote: > On 8/22/06, Alan Green <[EMAIL PROTECTED]> wrote: > > Has anybody found a way to add an table to query with an outer join? > It isn't really a documented feature, and I haven't worked through the > details (so you will need to do a litt

Re: Re: Extending user model in 0.95?

2006-08-24 Thread Jakub Labath
Hi, > On 8/9/06, Vance Dubberly <[EMAIL PROTECTED]> wrote: > > I very much want to subclass User as I have more than one kind of user > > and each has a different type of profile. > > Which is a different situation from probably 80% of the needs people > have for extending the User model. I thin

Re: Removing old permissions from auth_permission

2006-08-24 Thread Alan Green
On 8/23/06, cyberco <[EMAIL PROTECTED]> wrote: > > Once permissions are added to the auth_permission table it doesn't > matter how often I invoke 'manage.py syncdb app' or 'manage.py reset > app', stale records are never deleted. Is this normal behaviour? syncdb only ever adds records to the data

Re: Removing old permissions from auth_permission

2006-08-24 Thread Sean
Call './manage.py shell': from django.contrib.auth.models import Permission for perm in Permission.objects.all(): perm.delete() and then call './manage syncdb' This rebuilds the permission table. If you want it done some other way, you will probably have to wait for the SchemaEvolution br

Re: Post to PayPal with urlllib [newbie question]

2006-08-24 Thread Derek Hoy
On 8/24/06, Jeremy Dunck <[EMAIL PROTECTED]> wrote: > > On 8/24/06, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote: > > > > I thought about trying to post all the data to a form in the view page, > > then automatically submit the form using JavaScript, but it seems like > > such a cludgy solution. >

Re: Post to PayPal with urlllib [newbie question]

2006-08-24 Thread Jeremy Dunck
On 8/24/06, Derek Hoy <[EMAIL PROTECTED]> wrote: > I'm using Worldpay, and doing: > - view/form to get choices and validate à la Django > - redirect to simple confirm form > - submit to Worldpay with POST data in hidden fields > - get callback, and do validation > - notify administration, save ord

Re: Confused on Where to Put SQL

2006-08-24 Thread bradford
it's actually going to be thousands of sql queries for each user. would doing it all in one object lock out all of the users for the entire time the "magic" is being done (until it is updated)? [EMAIL PROTECTED] wrote: > Do you really need to perform hundreds of SQL queries? Wouldn't it be > a l

Re: Confused on Where to Put SQL

2006-08-24 Thread Jeremy Dunck
On 8/24/06, bradford <[EMAIL PROTECTED]> wrote: > > it's actually going to be thousands of sql queries for each user. > would doing it all in one object lock out all of the users for the > entire time the "magic" is being done (until it is updated)? That depends on your database's transaction iso

Re: Stumped on how to implement flatpages

2006-08-24 Thread [EMAIL PROTECTED]
I made it last, and it didn't seem to help. Here's the settings: MIDDLEWARE_CLASSES = ( 'django.middleware.common.CommonMiddleware', 'django.contrib.sessions.middleware.SessionMiddleware', 'django.contrib.auth.middleware.AuthenticationMiddleware', 'django.middlewar

Re: Post to PayPal with urlllib [newbie question]

2006-08-24 Thread Derek Hoy
On 8/25/06, Jeremy Dunck <[EMAIL PROTECTED]> wrote: > > In that situation, I guess you just wouldn't ship the order if the > customer underpays (by tweaking the payment amount), right? Unless it was you :) -- Derek --~--~-~--~~~---~--~~ You received this message

Re: Admin select multiple ?

2006-08-24 Thread [EMAIL PROTECTED]
Jacob Kaplan-Moss wrote: > No, there's no way to do this with ``choices``. I'd suggest just > using a ``ManyToManyField`` instead. > > Jacob Yes thats what I ended up doing, and it works great. Some times it feels silly to have such a simple model :) classBedroom(models.Model): number

Re: Re: Re: Extending user model in 0.95?

2006-08-24 Thread Vance Dubberly
Wow you're even in worse shape than I am. :) I Foreign Keyed my user profiles ( it's very hackish, PHP 3 hackish ) and had expected to need to write my own app to manage them whether I could subclass User or not. Asking the Admin Tool to acknowledge an extended user object is really being unreason

Is the built-in WSGI web server mult-threaded?

2006-08-24 Thread Rob Hudson
If I look at the code it has settings referring to multi-thread and multi-core but does Django use it this way? When I "./manage.py runserver" and request a page I can see each graphic pop into the page one by one suggesting that it's not multi-threaded. --~--~-~--~~~---

Re: Diamanda wiki v.0.0.2

2006-08-24 Thread limodou
On 8/25/06, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote: > > they keywords are optional. Currently they are only for META but I'm > thinkig about ContentBBcode tags that could list pages with entered tag > (or make lists, feeds of latest changes, new pages in the X keyword). > Keywords vs namespac

Re: Is the built-in WSGI web server mult-threaded?

2006-08-24 Thread Malcolm Tredinnick
On Thu, 2006-08-24 at 17:53 -0700, Rob Hudson wrote: > If I look at the code it has settings referring to multi-thread and > multi-core but does Django use it this way? When I "./manage.py > runserver" and request a page I can see each graphic pop into the page > one by one suggesting that it's n

  1   2   >