summaryrefslogtreecommitdiffstats
path: root/htdocs
diff options
context:
space:
mode:
authorbanah <banah@2b6ed08e-c90c-0410-9317-ae88bde05ade>2007-03-15 17:18:42 +0000
committerbanah <banah@2b6ed08e-c90c-0410-9317-ae88bde05ade>2007-03-15 17:18:42 +0000
commite9c3e953ed7e946a58c54c06e0dea49999176f3c (patch)
treee7a87f61531beeeaed5ac074d343e3f436cbd82f /htdocs
parent0dd2d21e11779a7fbf114a54b4883f1b9be722b2 (diff)
erster import mit neuer verzeichnisstruktur
git-svn-id: https://rfd.cronopios.org/immerda/jabber@57 2b6ed08e-c90c-0410-9317-ae88bde05ade
Diffstat (limited to 'htdocs')
-rw-r--r--htdocs/images/carbon.pngbin0 -> 523 bytes
-rw-r--r--htdocs/images/jabber_logo.pngbin0 -> 4336 bytes
-rw-r--r--htdocs/images/left-sm.pngbin0 -> 10403 bytes
-rw-r--r--htdocs/images/right-sm.pngbin0 -> 10413 bytes
-rw-r--r--htdocs/main.py34
5 files changed, 34 insertions, 0 deletions
diff --git a/htdocs/images/carbon.png b/htdocs/images/carbon.png
new file mode 100644
index 0000000..a72416c
--- /dev/null
+++ b/htdocs/images/carbon.png
Binary files differ
diff --git a/htdocs/images/jabber_logo.png b/htdocs/images/jabber_logo.png
new file mode 100644
index 0000000..f1b2d77
--- /dev/null
+++ b/htdocs/images/jabber_logo.png
Binary files differ
diff --git a/htdocs/images/left-sm.png b/htdocs/images/left-sm.png
new file mode 100644
index 0000000..5754a6d
--- /dev/null
+++ b/htdocs/images/left-sm.png
Binary files differ
diff --git a/htdocs/images/right-sm.png b/htdocs/images/right-sm.png
new file mode 100644
index 0000000..fda4da2
--- /dev/null
+++ b/htdocs/images/right-sm.png
Binary files differ
diff --git a/htdocs/main.py b/htdocs/main.py
new file mode 100644
index 0000000..5921752
--- /dev/null
+++ b/htdocs/main.py
@@ -0,0 +1,34 @@
+#main url mapper
+
+import sys
+sys.path.append("../py-bin")
+
+from utils import BasicHandler, process_request, set_logging_defaults
+from jabberman import JabberManager
+from login import LoginMixIn
+from mail_auth import MailAuthMixIn
+from setup import SetupMixIn
+
+set_logging_defaults()
+
+class MainHandler(BasicHandler, MailAuthMixIn, LoginMixIn, SetupMixIn):
+ def do_process(self, req):
+ command = req.params.get("cmd", "")
+
+ if command == "":
+ self.login_form(req)
+ else:
+ if hasattr(self, command):
+ method = getattr(self, command)
+ if hasattr(method, 'web_callable') and method.web_callable:
+ self.jman = JabberManager(self.session)
+ method(req)
+ else:
+ self.invalid_page(req)
+ else:
+ self.invalid_page(req)
+
+ def invalid_page(self, req):
+ self.error_page(req, "Ungueltiger Request.")
+
+process_request(MainHandler)