This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
class DynamicProps( type ): | |
""" | |
.. class:: DynamicProps | |
dynamic creation of properties | |
""" | |
def __new__( mcs, name, bases, classdict ): | |
""" new operator """ | |
def makeProperty( self, name, value, readOnly=False ): |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
class DynamicProps( type ): | |
""" | |
.. class:: DynamicProps | |
dynamic creation of properties | |
""" | |
def __new__( mcs, name, bases, classdict ): | |
""" new operator """ | |
def makeProperty( self, name, value, readOnly=False ): |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
######################################################################## | |
# $HeadURL $ | |
# File: Observer.py | |
# Author: Krzysztof.Ciba@NOSPAMgmail.com | |
# Date: 2012/09/26 09:39:58 | |
######################################################################## | |
""" :mod: Observer | |
============== | |
.. module: Observer | |
:synopsis: Observer pattern |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
######################################################################## | |
# $HeadURL $ | |
# File: TypedList.py | |
# Author: Krzysztof.Ciba@NOSPAMgmail.com | |
# Date: 2012/07/19 08:21:16 | |
######################################################################## | |
""" :mod: TypedList | |
======================= | |
.. module: TypedList |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
######################################################################## | |
# $HeadURL $ | |
# File: Traced.py | |
# Author: Krzysztof.Ciba@NOSPAMgmail.com | |
# Date: 2012/08/08 13:29:18 | |
######################################################################## | |
""" :mod: Traced | |
============ | |
.. module: Traced | |
:synopsis: watched mutable metaclass |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
################################################################# | |
# $HeadURL$ | |
################################################################# | |
""" :mod: ProcessPool | |
================= | |
.. module: ProcessPool | |
:synopsis: ProcessPool and related classes | |
ProcessPool | |
----------- |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
require_once("System.php"); | |
/** | |
* @class graphviz | |
* @author Krzysztof Daniel Ciba (Krzysztof.Ciba@NOSPAMgmail.com) | |
* @brief class for making Graphviz plots online | |
*/ | |
class graphviz { | |
var $directed = True; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env python | |
## | |
# @file svn-policy.py | |
# @author Krzysztof Daniel Ciba (Krzysztof.Ciba@NOSPAMgmail.com) | |
# @date 06/05/2009 | |
# @brief pre-commit hook | |
# | |
import os | |
import sys | |
import getopt |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
gX = 1 | |
def foo( ): | |
print "function foo called" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
class baseClass( object ): | |
def __init__( self ): | |
from testGlobal import gX, foo | |
try: | |
__builtins__["gX"] = gX | |
__builtins__["foo"] = foo | |
except: | |
setattr( __builtins__, "gX", gX ) | |
setattr( __builtins__, "foo", foo ) |
OlderNewer