Changes between Version 20 and Version 21 of DeveloperGuidelines/Eclipse


Ignore:
Timestamp:
07/24/10 17:51:13 (14 years ago)
Author:
Fran Boon
Comment:

Accessing private data

Legend:

Unmodified
Added
Removed
Modified
  • DeveloperGuidelines/Eclipse

    v20 v21  
    6060 * Use expressions (drag and drop from code) or right-click > watch 
    6161
     62=== Accessing private data ===
     63Some data is marked as private to let other developers know they shouldn't access this directly
     64 * e.g. in {{{s3xrc.py}}} we have {{{S3Resource.__set}}} & {{{S3Resource.__query}}}
     65This then means that Eclipse can't see these attributes as {{{self.__set}}}, etc.
     66
     67Instead need to use:
     68{{{
     69xxx._ClassName__AttributeName
     70}}}
     71e.g.:
     72{{{
     73resource._S3Resource__query
     74resource._S3Resource__set
     75}}}
     76
    6277== Related Links ==
    6378 * [wiki:DeveloperGuidelinesTips#Pythondebugging Debugging Web2Py]