Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Step 1 in removing the double 'g' from 'pluggables'.
git-svn-id: http://svn.revyver.com/djangopluggables.com/trunk/applications@201 5c07df8f-9e68-4da1-b9d9-3219ff5d644b
- Loading branch information
1 parent
110bf83
commit b24699f
Showing
11 changed files
with
289 additions
and
215 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,15 @@ | ||
# Administration | ||
from core import admin | ||
from core import admin | ||
|
||
# Core Template Tags | ||
from django import template | ||
template.add_to_builtins('django.contrib.markup.templatetags.markup') | ||
template.add_to_builtins('django.contrib.humanize.templatetags.humanize') | ||
template.add_to_builtins('django.templatetags.cache') | ||
|
||
# 3rd Party Template Tags | ||
template.add_to_builtins('typogrify.templatetags.typogrify') | ||
template.add_to_builtins('template_utils.templatetags.comparison') | ||
template.add_to_builtins('template_utils.templatetags.feeds') | ||
template.add_to_builtins('template_utils.templatetags.generic_content') | ||
template.add_to_builtins('template_utils.templatetags.generic_markup') |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,33 +1,63 @@ | ||
from django.contrib import admin | ||
|
||
from models import Project, Maintainer, CodeRepository, CodeCommit | ||
from models import Project, Developer, CodeRepository, CodeCommit | ||
|
||
|
||
class CommitsInline(admin.TabularInline): | ||
model = CodeCommit | ||
extra = 3 | ||
|
||
|
||
class RepositoryInline(admin.TabularInline): | ||
model = CodeRepository | ||
extra = 1 | ||
|
||
|
||
class ProjectAdmin(admin.ModelAdmin): | ||
list_display = ('name', 'type', 'url') | ||
fieldsets = ( | ||
('Basics', {'fields': ('name', 'tagline', 'slug')}), | ||
('Specifics', {'fields': ('active', 'url', 'description', 'tags')}), | ||
('People', {'fields': ('owners', 'members')}), | ||
) | ||
inlines = [RepositoryInline] | ||
filter_horizontal = ('owners', 'members') | ||
list_display = ('name', 'url', 'active') | ||
search_fields = ('name', 'description') | ||
prepopulated_fields = { 'slug': ('name',) } | ||
|
||
|
||
class MaintainerAdmin(admin.ModelAdmin): | ||
list_display = ('full_name',) | ||
search_fields = ('last_name', 'first_name', 'bio') | ||
class DeveloperAdmin(admin.ModelAdmin): | ||
fieldsets = ( | ||
('Metadata', {'fields': ('first_name', 'middle_name', 'last_name', 'suffix', 'svn_name', 'slug'), 'classes': ('wide',)}), | ||
('URLs', {'fields': ('personal_url', 'professional_url', 'django_people_url'), 'classes': ('wide',)}), | ||
) | ||
list_display = ('full_name', 'svn_name', 'django_people_url') | ||
search_fields = ('last_name', 'first_name') | ||
prepopulated_fields = { 'slug': ('first_name', 'middle_name', 'last_name', 'suffix') } | ||
|
||
|
||
class CodeRepositoryAdmin(admin.ModelAdmin): | ||
list_display = ('name', 'type', 'url') | ||
fieldsets = ( | ||
('Linkage', {'fields': ('project',)}), | ||
('Basics', {'fields': ('type', 'url')}), | ||
('Optional', {'fields': ('public_changeset_template',), 'classes': ('collapse',)}), | ||
) | ||
inlines = [CommitsInline] | ||
list_display = ('__unicode__', 'type', 'url', 'public_changeset_template') | ||
search_fields = ('',) | ||
prepopulated_fields = { 'slug': ('name',) } | ||
|
||
|
||
class CodeCommitAdmin(admin.ModelAdmin): | ||
fieldsets = ( | ||
('Linkage', {'fields': ('repository',)}), | ||
('Basics', {'fields': ('revision', 'message', 'committed')}), | ||
) | ||
list_display = ('__unicode__', 'repository') | ||
list_filter = ('repository',) | ||
search_fields = ('message',) | ||
|
||
|
||
admin.site.register(Project, ProjectAdmin) | ||
admin.site.register(Maintainer, MaintainerAdmin) | ||
admin.site.register(Developer, DeveloperAdmin) | ||
admin.site.register(CodeRepository, CodeRepositoryAdmin) | ||
admin.site.register(CodeCommit, CodeCommit) | ||
admin.site.register(CodeCommit, CodeCommitAdmin) |
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
#!/usr/bin/env python | ||
|
||
# Setup the paths. | ||
import sys, os | ||
sys.path.append('/home/bryan/Projects/djangoplugables.com/trunk/applications') | ||
sys.path.append('/home/bryan/Projects/djangoplugables.com/trunk/applications/core') | ||
sys.path.append('/home/bryan/Projects/djangoplugables.com/trunk/applications/projects') | ||
|
||
# Setup the enviornment. | ||
from django.core.management import setup_environ | ||
from applications import settings | ||
|
||
setup_environ(settings) | ||
|
||
# Now start the script. | ||
from projects.providers.svn import RepositorySyncr | ||
|
||
rs = RepositorySyncr() | ||
rs.syncRepositories() |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.