Changeset 443

Show
Ignore:
Timestamp:
Wed Aug 1 13:47:38 2007
Author:
djfroofy
Message:

-added xtwisted module and sshcmds

Files:

Legend:

Unmodified
Added
Removed
Modified
  • trunk/setup.py

    r416 r443  
    8 8         from ez_setup import use_setuptools  
    9 9         use_setuptools()  
      10         from setuptools import setup  
    10 11     except:  
    11 12         from distutils.core import setup  
     
    15 16     author_email='drew dot smathers at gmail dot com',  
    16 17     name='xix-utils',  
    17       version='0.2.3',  
    18       install_requires=['zope.interface>=3.2.0'],  
      18     version='0.2.4',  
      19     #install_requires=['zope.interface>=3.2.0'],  
    19 20     extras_require = {  
    20 21         'xml' : ['lxml>=1.1.2'],  
     
    56 57         'Topic :: Software Development :: Libraries :: Python Modules',  
    57 58         'Topic :: Utilities'],  
    58       packages=['xix', 'xix.utils', 'xix.utils.comp', 'xix.utils.tools'],  
      59     packages=['xix', 'xix.utils', 'xix.utils.comp', 'xix.utils.tools', 'xix.utils.xtwisted'],  
    58 59     package_dir={'xix': 'xix'},  
    59 60     package_data={'xix': ['*.cfg', 'data/*.css', 'data/*.xsl', 'data/*.py']},  
      61     entry_points="""  
      62     [console_scripts]  
      63     sshcmds = xix.utils.xtwisted.sshcmds:main  
      64     """  
    60 65     )  
  • trunk/xix/utils/namespace.py

    r399 r443  
    130 130         return name[:1].islower() and name.isalnum()  
    131 131  
    132   class MToNNS(Namespace):  
    133       """A many to more 1-1 mapped namespace.  
      132 class ManyToManyNS(Namespace):  
      133     """A many to many 1-1 mapped namespace.  
    134 134  
    135 135     @todo testing  
    136 136     """  
    137 137     def __init__(self, **kwargs):  
      138         raise NotImplementedError('ManyToManyNS is still an ethreal concept!')  
    138 139         Namespace.__init__(self, **kwargs)  
    139 140         self._left = kwargs.get('left', Namespace())  
  • trunk/xix/utils/decor.py

    r399 r443  
    7 7 from xix.utils.python import Curried  
    8 8 import time, inspect  
      9 import warnings  
    9 10  
    10 11 import sys  
     
    17 18  
    18 19  
    19   def _wrapup(wrapper, func):  
      20 def decorate(wrapper, func):  
      21     #warnings.warn('_wrapup is deprecated. '\  
      22     #        'Please decorate method with decor.decorate instead.')  
    20 23     wrapper.__dict__.update(func.__dict__)  
    21 24     wrapper.__doc__ = func.__doc__  
     
    23 26     return wrapper  
    24 27  
    25      
      28 # decorate function Adapted from pylons.decorator:  
      29  
      30  
      31 # XXX  
      32 #def decorator(func):  
      33 #    """A decorator 'decorator' - sets __dict__, __doc__, and  
      34 #    __name__ of decorator to decorated function's.  
      35 #    """  
      36 #    def wrapper(*args, **kargs): # idepodent  
      37 #        return func(*args, **kargs)  
      38 #    wrapper.__dict__.update(func.__dict__)  
      39 #    wrapper.__doc__ = func.__doc__  
      40 #    wrapper.__name__ = func.__name__  
      41 #    return wrapper  
      42  
      43 _wrapup = decorate  
      44  
    26 45 def curryable(func):  
    27 46     """WARNING: This is broken.  
  • trunk/xix/utils/sa.py

    r399 r443  
    16 16 declare_tables = TableDeclarationStatement()  
    17 17  
      18  
      19 #def trasaction(func):  
      20 #    def wrapper(*args, **kargs):  
      21 #  
      22 #        return func(*args, **kargs)  
      23 #    return wrapper  
      24