r89417 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r89416‎ | r89417 | r89418 >
Date:15:17, 3 June 2011
Author:diederik
Status:deferred
Tags:
Comment:
Init commit.
Modified paths:
  • /trunk/tools/wsor/orm (added) (history)
  • /trunk/tools/wsor/orm/.pydevproject (added) (history)
  • /trunk/tools/wsor/orm/__init__.py (added) (history)
  • /trunk/tools/wsor/orm/manage.py (added) (history)
  • /trunk/tools/wsor/orm/standalone.py (added) (history)
  • /trunk/tools/wsor/orm/toolserver (added) (history)
  • /trunk/tools/wsor/orm/toolserver/__init__.py (added) (history)
  • /trunk/tools/wsor/orm/toolserver/models.py (added) (history)
  • /trunk/tools/wsor/sandbox (added) (history)
  • /trunk/tools/wsor/taxonomy (added) (history)

Diff [purge]

Index: trunk/tools/wsor/orm/manage.py
@@ -0,0 +1,14 @@
 2+#!/usr/bin/env python
 3+from django.core.management import execute_manager
 4+import imp
 5+try:
 6+ imp.find_module('settings') # Assumed to be in the same directory.
 7+except ImportError:
 8+ import sys
 9+ sys.stderr.write("Error: Can't find the file 'settings.py' in the directory containing %r. It appears you've customized things.\nYou'll have to run django-admin.py, passing it your settings module.\n" % __file__)
 10+ sys.exit(1)
 11+
 12+import settings
 13+
 14+if __name__ == "__main__":
 15+ execute_manager(settings)
Index: trunk/tools/wsor/orm/standalone.py
@@ -0,0 +1,27 @@
 2+# settings.py
 3+#from django.conf import settings
 4+from django.core.management import setup_environ
 5+
 6+import settings
 7+setup_environ(settings)
 8+
 9+
 10+from toolserver.models import *
 11+
 12+
 13+#settings.configure(
 14+# DATABASES={
 15+# 'default': {
 16+# 'ENGINE': 'django.db.backends.mysql',
 17+# 'NAME': 'myDatabase',
 18+# 'USER': 'myUsername',
 19+# 'PASSWORD': 'myPassword',
 20+# 'HOST': '',
 21+# 'PORT': ''
 22+#
 23+# }
 24+# }
 25+#)
 26+#
 27+#from django.db import models
 28+
Index: trunk/tools/wsor/orm/toolserver/__init__.py
@@ -0,0 +1 @@
 2+
Index: trunk/tools/wsor/orm/toolserver/models.py
@@ -0,0 +1 @@
 2+from django.db import models
Index: trunk/tools/wsor/orm/__init__.py
@@ -0,0 +1 @@
 2+
Index: trunk/tools/wsor/orm/.pydevproject
@@ -0,0 +1,7 @@
 2+<?xml version="1.0" encoding="UTF-8" standalone="no"?>
 3+<?eclipse-pydev version="1.0"?>
 4+
 5+<pydev_project>
 6+<pydev_property name="org.python.pydev.PYTHON_PROJECT_INTERPRETER">Default</pydev_property>
 7+<pydev_property name="org.python.pydev.PYTHON_PROJECT_VERSION">python 2.6</pydev_property>
 8+</pydev_project>
Property changes on: trunk/tools/wsor/orm
___________________________________________________________________
Added: svn:ignore
19 + settings.py

Status & tagging log