Changeset 2639:2a1b56fb84f1 in livinglogic.python.xist

Show
Ignore:
Timestamp:
01/31/07 15:20:59 (13 years ago)
Author:
Walter Doerwald <walter@…>
Branch:
default
Message:

Remove obsolte needsxmlns methods.

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • src/ll/xist/xsc.py

    r2637 r2639  
    829829        """ 
    830830        return complex(unicode(self)) 
    831  
    832     @classmethod 
    833     def needsxmlns(self, publisher=None): 
    834         """ 
    835         <par>Return what type of namespace prefix/declaration is needed for 
    836         <self/> when publishing. Possible return values are:</par> 
    837         <ulist> 
    838         <item><lit>0</lit>: Neither a prefix nor a declaration is required;</item> 
    839         <item><lit>1</lit>: A prefix is required, but no declaration (e.g. for the 
    840         <pyref module="ll.xist.ns.xml"><module>xml</module></pyref> namespace, 
    841         whose prefix is always defined.</item> 
    842         <item><lit>2</lit>: Both a prefix and a declaration for this prefix are 
    843         required.</item> 
    844         </ulist> 
    845         """ 
    846         if publisher is not None: 
    847             return publisher.prefixmode 
    848         else: 
    849             return 0 
    850831 
    851832    def parsed(self, parser, start=None): 
     
    19551936        return presenter.presentAttr(self) # return a generator-iterator 
    19561937 
    1957     @classmethod 
    1958     def needsxmlns(self, publisher=None): 
    1959         if self.xmlns is not None: 
    1960             return 2 
    1961         else: 
    1962             return 0 
    1963  
    19641938    def checkvalid(self): 
    19651939        """