Revision: 757
http://svn.sourceforge.net/pygccxml/?rev=757&view=rev
Author: roman_yakovenko
Date: 2006-11-27 02:18:38 -0800 (Mon, 27 Nov 2006)
Log Message:
-----------
making prefixes to be public
Modified Paths:
--------------
pyplusplus_dev_ft/pyplusplus/decl_wrappers/properties.py
Modified: pyplusplus_dev_ft/pyplusplus/decl_wrappers/properties.py
===================================================================
--- pyplusplus_dev_ft/pyplusplus/decl_wrappers/properties.py 2006-11-27 09:03:29 UTC (rev 756)
+++ pyplusplus_dev_ft/pyplusplus/decl_wrappers/properties.py 2006-11-27 10:18:38 UTC (rev 757)
@@ -58,11 +58,12 @@
class name_based_recognizer_t( property_recognizer_i ):
def __init__( self ):
property_recognizer_i.__init__( self )
- self.__prefixes = (
- ( 'is', 'set' )
- , ( 'get', 'set' )
- , ( 'has', 'set' )
- , ( '', 'set' ) )
+
+ def prefixes( self ):
+ return [ ( 'is', 'set' )
+ , ( 'get', 'set' )
+ , ( 'has', 'set' )
+ , ( '', 'set' ) ]
def check_prefix( self, name, prefix ):
if not name.startswith( prefix ):
@@ -118,7 +119,7 @@
, self.make_l_camel_convention ]
for convention_maker in convention_makers:
- for g, unused in self.__prefixes:
+ for g, unused in self.prefixes():
if not g:
continue
gc, unused = convention_maker( g, 'set' )
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
|