Account Options

  1. Sign in
The old Google Groups will be going away soon.
Switch to the new Google Groups.
Google Groups Home
« Groups Home
command candidates: sync_contenttypes and sync_permissions
There are currently too many topics in this group that display first. To make this topic appear first, remove this option from another topic.
There was an error processing your request. Please try again.
flag
  4 messages - Collapse all  -  Translate all to Translated (View all originals)
The group you are posting to is a Usenet group. Messages posted to this group will make your email address visible to anyone on the Internet.
Your reply message has not been sent.
Your post was successful
 
From:
To:
Cc:
Followup To:
Add Cc | Add Followup-to | Edit Subject
Subject:
Validation:
For verification purposes please type the characters you see in the picture below or the numbers you hear by clicking the accessibility icon. Listen and type the numbers you hear
 
akaihola  
View profile  
 More options Mar 27 2009, 4:44 am
From: akaihola <akaih...@gmail.com>
Date: Fri, 27 Mar 2009 01:44:47 -0700 (PDT)
Local: Fri, Mar 27 2009 4:44 am
Subject: command candidates: sync_contenttypes and sync_permissions
I've taken Patrick Altman's script[1][2], updated it for Django 1.0
and turned it into two management commands.

These are handy if you don't use syncdb to add new models to the
database, or if you ever add a custom permission to an existing model.

The commands might be too seldom needed for inclusion in django-
extensions, but here goes anyway: The commit[3] is available on GitHub
and the patch[4] for download.

[1] http://paltman.com/2008/apr/11/keeping-contenttypes-and-permissions-u...
[2] http://www.djangosnippets.org/snippets/696/
[3] http://github.com/akaihola/django-extensions/tarball/commit/d563a0138...
[4] http://cloud.github.com/downloads/akaihola/django-extensions/sync-ct-...


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
andybak  
View profile  
 More options Mar 27 2009, 11:11 am
From: andybak <andy...@gmail.com>
Date: Fri, 27 Mar 2009 08:11:56 -0700 (PDT)
Local: Fri, Mar 27 2009 11:11 am
Subject: Re: command candidates: sync_contenttypes and sync_permissions
I might be missing something here as I'm a Git newbie but your git
tree seems identical to the the main trunk and your diff file is
empty.

On Mar 27, 8:44 am, akaihola <akaih...@gmail.com> wrote:


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
akaihola  
View profile  
 More options Mar 30 2009, 12:04 pm
From: akaihola <akaih...@gmail.com>
Date: Mon, 30 Mar 2009 09:04:49 -0700 (PDT)
Local: Mon, Mar 30 2009 12:04 pm
Subject: Re: command candidates: sync_contenttypes and sync_permissions
On 27 maalis, 18:11, andybak <andy...@gmail.com> wrote:

> I might be missing something here as I'm a Git newbie but your git
> tree seems identical to the the main trunk and your diff file is
> empty.

The patched version lives in the sync-ct-perm branch.

 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Bas van Oostveen  
View profile  
 More options Apr 10 2009, 6:23 am
From: Bas van Oostveen <v.oostv...@gmail.com>
Date: Fri, 10 Apr 2009 19:23:45 +0900
Local: Fri, Apr 10 2009 6:23 am
Subject: Re: command candidates: sync_contenttypes and sync_permissions
Could you please fork from the main django-extensions git repository and
recommit the patch there ?

I'm also thinking if we can roll these kind of commands into one.
For example:

./manage.py sync [permissions] [contenttypes] [etc]

('sync' might probably not the best command name here)

Other possibilities for a command like this could be:

- ImageField / File*Field, where is looks to the target directory and
sync any existing files there back into the table.

Can anybody think of other use cases for this ?

-Bas


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
End of messages
« Back to Discussions « Newer topic     Older topic »