summaryrefslogtreecommitdiffstats
path: root/module/web/pyload/models.py
diff options
context:
space:
mode:
authorGravatar RaNaN <Mast3rRaNaN@hotmail.de> 2009-12-15 17:48:30 +0100
committerGravatar RaNaN <Mast3rRaNaN@hotmail.de> 2009-12-15 17:48:30 +0100
commit95d09b338ac7aed2b387bf143a5cfd1c4b29f612 (patch)
tree2f6c078f95bbc80f423609bacab8066fe86d7067 /module/web/pyload/models.py
parentgui queue view - unstable (non thread safe) (diff)
downloadpyload-95d09b338ac7aed2b387bf143a5cfd1c4b29f612.tar.xz
new Django webinterface(in development), small fixes
Diffstat (limited to 'module/web/pyload/models.py')
-rw-r--r--module/web/pyload/models.py21
1 files changed, 21 insertions, 0 deletions
diff --git a/module/web/pyload/models.py b/module/web/pyload/models.py
new file mode 100644
index 000000000..293c01109
--- /dev/null
+++ b/module/web/pyload/models.py
@@ -0,0 +1,21 @@
+# -*- coding: utf-8 -*-
+from django.db import models
+#from django.contrib.auth.models.User import User as UserProfile
+# Create your models here.
+
+
+class Perm(models.Model):
+ """ extended pyLoad user Profile """
+
+ #user = models.ForeignKey(UserProfile, unique=True)
+ #template = models.CharField(maxlength=30)
+
+ class Meta:
+ permissions = (
+ ("can_see_dl", "Can see Downloads"),
+ ("can_add", "Can add Downloads"),
+ ("can_delete", "Can delete Downloads"),
+ ("can_download", "Can download Files"),
+ ("can_see_logs", "Can see logs"),
+ ("can_change_status", "Can change status"),
+ ) \ No newline at end of file