Jose
On 6/30/06, jose <
[EMAIL PROTECTED]> wrote:
Hi all,
I'm not sure if this is the right groupe to post this question to, but
since i'm using pylons code as my starting point I thought I would ask
here first.
I am trying to create a paster command that will install my windows
server script that I posted to this group ealier. what I want to be
able to do is support Ian's idea of \
paster winserver inifile.ini
which will create the WindowsServer.py file for you with the right ini
file embeded in it. should be simple enough. So i looked at the
pylons commands.py file to see how you all did your paster controller
<controllername> intigration. But when I try my new command which is
paster winserver inifile.ini I get a command not known error. I'm sure
I'm just doing something stupid could someone please look over my setup
and the skelleton of the commands file to tell me what I'm doing wrong.
if you want to check out the actual code its and look at that, its at
http://balac.compmed.ucdavis.edu/svn_pastewinserver
Thanks
Jose
======================================
setup.py
from setuptools import setup, find_packages
setup(
name="PasteWinserver",
version="0.1",
description="""Install a paste windows service""",
long_description="""Install a paste windows service.""",
author="Jose Gavlez",
author_email="[EMAIL PROTECTED]",
url=""> download_url="",
keywords=[],
license="MIT",
install_requires = ["Cheetah >= 1.0"],
zip_safe=False,
packages=find_packages(),
include_package_data=True,
classifiers = [
'Development Status :: 3 - Alpha',
'Operating System :: OS Independent',
'Programming Language :: Python',
'License :: OSI Approved :: MIT License',
'Topic :: Software Development :: Libraries :: Python Modules'
],
entry_points="""
[paste.paster_command]
winserver=PasteWinserver.commands:WinserverCommand
""",
)
======================================================
commands.py
import os
import os.path
import sys
import glob
import pkg_resources
from paste.script.command import Command, BadCommand
from paste.script.filemaker import FileOp
from paste.script import pluginlib, copydir
from paste.deploy import loadapp, appconfig
import paste.deploy.config
import paste.fixture
class WinserverCommand(Command):
print 'ugg'
'''
Winserver Command
'''
summary = __doc__
usage = 'CONTROLLER_NAME'
min_args = 1
max_args = 1
group_name = 'Commands'
parser = Command.standard_parser(simulate=True)
parser.add_option ('--no-test',
action='',
dest='no_test',
help="Don't create the test; just the
controller")
def command(self):
print 'this should do somthing'
============================================================
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "pylons-discuss" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at http://groups.google.com/group/pylons-discuss
-~----------~----~----~----~------~----~------~--~---
