Anonymous avatar Anonymous committed fd1be92

Added README LICENSE and build styles for packaging. Now defaults to a reasonable URL.

Comments (0)

Files changed (7)

pyobjc/Examples/WebServicesTool/English.lproj/WSTConnection.nib/info.nib

 	<string>286.0</string>
 	<key>IBOpenObjects</key>
 	<array>
+		<integer>15</integer>
 		<integer>5</integer>
-		<integer>15</integer>
 	</array>
 	<key>IBSystem Version</key>
 	<string>6D52</string>
Add a comment to this file

pyobjc/Examples/WebServicesTool/English.lproj/WSTConnection.nib/keyedobjects.nib

Binary file modified.

pyobjc/Examples/WebServicesTool/LICENSE.txt

+(This is the MIT license)
+
+ Copyright (c) 2002 CodeFab, Inc.
+
+ Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
+
+ The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
+
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.

pyobjc/Examples/WebServicesTool/Main.py

 
 import objc
 import Foundation
-
 import AppKit
 
 import WSTApplicationDelegateClass

pyobjc/Examples/WebServicesTool/README.txt

+Web Services Tool
+
+Web Services Tool queries XML-RPC enabled servers via the "standard" introspection methods and displays a summary of the API.   It is implemented in Python using the PyObjC module.
+
+See:
+	http://pyobjc.sourceforge.net/
+	
+Source for both the pyobjc module and the Web Services Tool are available via the pyobjc sourceforge CVS repository.
+
+b.bum
+bbum@codefab.com

pyobjc/Examples/WebServicesTool/WSTConnectionWindowControllerClass.py

         self.createToolbarItems()
         
         self.window().setToolbar_(toolbar)
-        
-        self._urlTextField.setStringValue_("http://localhost:8500/cgi-bin/WebObjects/Intent.woa/wa/XmlRpcV1")
+
+        lastURL = NSUserDefaults.standardUserDefaults().stringForKey_("LastURL")
+        if lastURL and len(lastURL):
+            self._urlTextField.setStringValue_(lastURL)
         
     def createToolbarItems(self):
         addToolbarItem(self, kWSTReloadContentsToolbarItemIdentifier, "Reload", "Reload", "Reload Contents", None, "reloadVisibleData:", NSImage.imageNamed_("Reload"), None)
             self._methodsTable.display()
             self.setStatusTextFieldMessage_("Retrieving information about %d methods." % len(self._methods))
             self.window().setTitle_(url)
+            NSUserDefaults.standardUserDefaults().setObject_forKey_(url, "LastURL")
             
             index = 0
             for aMethod in self._methods:
                 self.setStatusTextFieldMessage_("Retrieving signature for method %s (%d of %d)." % (aMethod , index, len(self._methods)))
                 methodSignature = getattr(self._server, self._methodPrefix + "methodSignature")(aMethod)
                 signatures = None
+                if not len(methodSignature):
+                    continue
                 for aSignature in methodSignature:
                     if (type(aSignature) == types.ListType) and (len(aSignature) > 0):
                         signature = "%s %s(%s)" % (aSignature[0], aMethod, string.join(aSignature[1:], ", "))

pyobjc/Examples/WebServicesTool/Web Services Tool.pbproj/project.pbxproj

 			buildStyles = (
 				4A9504CCFFE6A4B311CA0CBA,
 				4A9504CDFFE6A4B311CA0CBA,
+				F62CEFCE0357591F01718D22,
 			);
 			isa = PBXProject;
 			mainGroup = 29B97314FDCFA39411CA2CEA;
 			projectDirPath = "";
 			targets = (
+				F62CEFC60357586F01718D22,
 				29B97326FDCFA39411CA2CEA,
+				F62CEFC80357588701718D22,
 			);
 		};
 		29B97314FDCFA39411CA2CEA = {
 				F6ED47D803453061016073B7,
 				F6ED47D903453061016073B7,
 				F6783B7E0349DCCB01A73C9E,
+				F62CEFC20357585C01718D22,
+				F62CEFC30357585C01718D22,
 			);
 			isa = PBXGroup;
 			name = Resources;
 				F62CEFBE035724EB01718D22,
 				F62CEFBF035724EB01718D22,
 				F62CEFC0035724EB01718D22,
+				F62CEFC40357585C01718D22,
+				F62CEFC50357585C01718D22,
 			);
 			isa = PBXCopyFilesBuildPhase;
 			runOnlyForDeploymentPostprocessing = 1;
 			name = pyobjc;
 			refType = 4;
 		};
+		F62CEFC20357585C01718D22 = {
+			isa = PBXFileReference;
+			path = LICENSE.txt;
+			refType = 2;
+		};
+		F62CEFC30357585C01718D22 = {
+			isa = PBXFileReference;
+			path = README.txt;
+			refType = 2;
+		};
+		F62CEFC40357585C01718D22 = {
+			fileRef = F62CEFC20357585C01718D22;
+			isa = PBXBuildFile;
+			settings = {
+			};
+		};
+		F62CEFC50357585C01718D22 = {
+			fileRef = F62CEFC30357585C01718D22;
+			isa = PBXBuildFile;
+			settings = {
+			};
+		};
+		F62CEFC60357586F01718D22 = {
+			buildPhases = (
+			);
+			buildSettings = {
+				OTHER_CFLAGS = "";
+				OTHER_LDFLAGS = "";
+				OTHER_REZFLAGS = "";
+				PRODUCT_NAME = Packaging;
+				SECTORDER_FLAGS = "";
+				WARNING_CFLAGS = "-Wmost -Wno-four-char-constants -Wno-unknown-pragmas";
+			};
+			dependencies = (
+				F62CEFC70357587501718D22,
+				F62CEFCB035758DE01718D22,
+			);
+			isa = PBXAggregateTarget;
+			name = Packaging;
+			productName = Packaging;
+			shouldUseHeadermap = 0;
+		};
+		F62CEFC70357587501718D22 = {
+			isa = PBXTargetDependency;
+			target = 29B97326FDCFA39411CA2CEA;
+		};
+		F62CEFC80357588701718D22 = {
+			buildArgumentsString = "-c \"if [ \\\"$ACTION\\\" = \\\"install\\\" ]; then \\\n\tcp \\\"$SRCROOT/README.txt\\\" \\\"$SRCROOT/LICENSE.txt\\\" \\\"$DSTROOT/\\\";\t fi\"";
+			buildPhases = (
+			);
+			buildSettings = {
+				OTHER_CFLAGS = "";
+				OTHER_LDFLAGS = "";
+				OTHER_REZFLAGS = "";
+				PRODUCT_NAME = "Copy Files";
+				SECTORDER_FLAGS = "";
+				WARNING_CFLAGS = "-Wmost -Wno-four-char-constants -Wno-unknown-pragmas";
+			};
+			buildToolPath = /bin/sh;
+			dependencies = (
+			);
+			isa = PBXLegacyTarget;
+			name = "Copy Files";
+			productName = "Copy Files";
+			settingsToExpand = 6;
+			settingsToPassInEnvironment = 287;
+			settingsToPassOnCommandLine = 280;
+			shouldUseHeadermap = 0;
+		};
+		F62CEFCB035758DE01718D22 = {
+			isa = PBXTargetDependency;
+			target = F62CEFC80357588701718D22;
+		};
+		F62CEFCE0357591F01718D22 = {
+			buildRules = (
+			);
+			buildSettings = {
+				COPY_PHASE_STRIP = YES;
+				INSTALL_MODE_FLAG = "u+w,go-w,a+rX";
+				INSTALL_PATH = /;
+			};
+			isa = PBXBuildStyle;
+			name = Packaging;
+		};
 		F6646A4E0344927801F2B36F = {
 			isa = PBXFileReference;
 			path = Main.py;
Tip: Filter by directory path e.g. /media app.js to search for public/media/app.js.
Tip: Use camelCasing e.g. ProjME to search for ProjectModifiedEvent.java.
Tip: Filter by extension type e.g. /repo .js to search for all .js files in the /repo directory.
Tip: Separate your search with spaces e.g. /ssh pom.xml to search for src/ssh/pom.xml.
Tip: Use ↑ and ↓ arrow keys to navigate and return to view the file.
Tip: You can also navigate files with Ctrl+j (next) and Ctrl+k (previous) and view the file with Ctrl+o.
Tip: You can also navigate files with Alt+j (next) and Alt+k (previous) and view the file with Alt+o.