summaryrefslogtreecommitdiff
path: root/devel
diff options
context:
space:
mode:
Diffstat (limited to 'devel')
-rw-r--r--devel/management/commands/reporead.py3
-rw-r--r--devel/urls.py10
2 files changed, 11 insertions, 2 deletions
diff --git a/devel/management/commands/reporead.py b/devel/management/commands/reporead.py
index 6f7fd958..b8b075a6 100644
--- a/devel/management/commands/reporead.py
+++ b/devel/management/commands/reporead.py
@@ -139,7 +139,6 @@ def find_user(userstring):
for token in name.split():
# ignore quoted parts; e.g. nicknames in strings
if re.match(r'^[\'"].*[\'"]$', token):
- print "token match:", token
continue
name_q &= (Q(first_name__icontains=token) |
Q(last_name__icontains=token))
@@ -233,6 +232,7 @@ def populate_files(dbpkg, repopkg, force=False):
dbpkg.files_last_update = datetime.now()
dbpkg.save()
+@transaction.commit_on_success
def db_update(archname, reponame, pkgs, options):
"""
Parses a list and updates the Arch dev database accordingly.
@@ -399,7 +399,6 @@ def validate_arch(arch):
available_arches = [x.name for x in Arch.objects.all()]
return arch in available_arches
-@transaction.commit_on_success
def read_repo(primary_arch, repo_file, options):
"""
Parses repo.db.tar.gz file and returns exit status.
diff --git a/devel/urls.py b/devel/urls.py
new file mode 100644
index 00000000..23dd2d9f
--- /dev/null
+++ b/devel/urls.py
@@ -0,0 +1,10 @@
+from django.conf.urls.defaults import patterns
+
+urlpatterns = patterns('devel.views',
+ (r'^$', 'index'),
+ (r'^notify/$', 'change_notify'),
+ (r'^profile/$', 'change_profile'),
+ (r'^newuser/$', 'new_user_form'),
+)
+
+# vim: set ts=4 sw=4 et: