[CalendarServer-changes] [11997] CalendarServer/trunk/bin

source_changes at macosforge.org source_changes at macosforge.org
Wed Mar 12 11:22:12 PDT 2014


Revision: 11997
          http://trac.calendarserver.org//changeset/11997
Author:   wsanchez at apple.com
Date:     2013-11-22 17:50:52 -0800 (Fri, 22 Nov 2013)
Log Message:
-----------
Add twistd and trial

Modified Paths:
--------------
    CalendarServer/trunk/bin/_calendarserver_preamble.py

Added Paths:
-----------
    CalendarServer/trunk/bin/trial
    CalendarServer/trunk/bin/twistd

Modified: CalendarServer/trunk/bin/_calendarserver_preamble.py
===================================================================
--- CalendarServer/trunk/bin/_calendarserver_preamble.py	2013-11-23 01:07:13 UTC (rev 11996)
+++ CalendarServer/trunk/bin/_calendarserver_preamble.py	2013-11-23 01:50:52 UTC (rev 11997)
@@ -64,6 +64,7 @@
         "calendarserver_manage_postgres",
         "calendarserver_manage_timezones",
         "icalendar_split",
+        "twistd", "trial",
     ]
 
     if split(sys.argv[0])[-1] not in noConfigOption:

Added: CalendarServer/trunk/bin/trial
===================================================================
--- CalendarServer/trunk/bin/trial	                        (rev 0)
+++ CalendarServer/trunk/bin/trial	2013-11-23 01:50:52 UTC (rev 11997)
@@ -0,0 +1,33 @@
+#!/usr/bin/env python
+
+##
+# Copyright (c) 2006-2013 Apple Inc. All rights reserved.
+#
+# Licensed under the Apache License, Version 2.0 (the "License");
+# you may not use this file except in compliance with the License.
+# You may obtain a copy of the License at
+#
+# http://www.apache.org/licenses/LICENSE-2.0
+#
+# Unless required by applicable law or agreed to in writing, software
+# distributed under the License is distributed on an "AS IS" BASIS,
+# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+# See the License for the specific language governing permissions and
+# limitations under the License.
+##
+
+import sys
+
+#PYTHONPATH
+
+if __name__ == "__main__":
+    if "PYTHONPATH" in globals():
+        sys.path.insert(0, PYTHONPATH)
+    else:
+        try:
+            import _calendarserver_preamble
+        except ImportError:
+            sys.exc_clear()
+
+    from twisted.scripts.trial import run
+    run()


Property changes on: CalendarServer/trunk/bin/trial
___________________________________________________________________
Added: svn:executable
   + *

Added: CalendarServer/trunk/bin/twistd
===================================================================
--- CalendarServer/trunk/bin/twistd	                        (rev 0)
+++ CalendarServer/trunk/bin/twistd	2013-11-23 01:50:52 UTC (rev 11997)
@@ -0,0 +1,33 @@
+#!/usr/bin/env python
+
+##
+# Copyright (c) 2006-2013 Apple Inc. All rights reserved.
+#
+# Licensed under the Apache License, Version 2.0 (the "License");
+# you may not use this file except in compliance with the License.
+# You may obtain a copy of the License at
+#
+# http://www.apache.org/licenses/LICENSE-2.0
+#
+# Unless required by applicable law or agreed to in writing, software
+# distributed under the License is distributed on an "AS IS" BASIS,
+# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+# See the License for the specific language governing permissions and
+# limitations under the License.
+##
+
+import sys
+
+#PYTHONPATH
+
+if __name__ == "__main__":
+    if "PYTHONPATH" in globals():
+        sys.path.insert(0, PYTHONPATH)
+    else:
+        try:
+            import _calendarserver_preamble
+        except ImportError:
+            sys.exc_clear()
+
+    from twisted.scripts.twistd import run
+    run()


Property changes on: CalendarServer/trunk/bin/twistd
___________________________________________________________________
Added: svn:executable
   + *
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.macosforge.org/pipermail/calendarserver-changes/attachments/20140312/3b6e26b4/attachment.html>


More information about the calendarserver-changes mailing list