~loggerhead-team/loggerhead/trunk-rich

« back to all changes in this revision

Viewing changes to loggerhead/templates/inventory.pt

  • Committer: Matt Nordhoff
  • Date: 2010-04-24 12:29:07 UTC
  • Revision ID: mnordhoff@mattnordhoff.com-20100424122907-z343wrafx7fdqqs1
Fix infinite recursion when unpickling Containers.

Unpickle tries to access a few attributes (__getstate__, etc.) before filling the __dict__, so __getattr__ went into a loop trying to find self._properties.

It's no longer possible to use properties that start with an underscore, but that's a bit icky anyway.

Show diffs side-by-side

added added

removed removed

Lines of Context:
70
70
                                             title string:Go to ${file/filename}" />
71
71
                    </a>
72
72
 
73
 
                 <a tal:attributes="href python:url(['/files', revno_url, file.absolutepath])" 
 
73
                 <a tal:attributes="href python:url(['/files', revno_url, file.absolutepath])"
74
74
                                        tal:content="file/filename" class="link"></a>
75
75
                 </td>
76
76
                 <td class="date"><a tal:attributes="href python:url(['/revision', file.change.revno]);
90
90
            <!-- Show this if it's a symlink -->
91
91
            <tr tal:attributes="class string:blueRow${repeat/file/even}" tal:condition="python:file.kind=='symlink'">
92
92
                <td class="autcell"><a tal:attributes="href python:url(['/annotate', change.revno, file.absolutepath])">
93
 
                        <img tal:attributes="src python:branch.static_url('/static/images/ico_flecha.gif')" alt="Symlink" />
 
93
                        <img tal:attributes="src python:branch.static_url('/static/images/ico_file_flecha.gif')" alt="Symlink" />
94
94
                    </a>
95
95
 
96
 
                 <a tal:attributes="href python:url(['/annotate', revno_url, file.absolutepath])" 
 
96
                 <a tal:attributes="href python:url(['/annotate', revno_url, file.absolutepath])"
97
97
                                        tal:content="file/filename" class="link"></a>
98
98
                 </td>
99
99
                 <td class="date"><a tal:attributes="href python:url(['/revision', file.change.revno]);
118
118
                                             title string:Annotate ${file/filename}"
119
119
                             tal:condition="python:file.executable is False" />
120
120
                        <!-- Show a different icon id the file executable -->
121
 
                        <img tal:attributes="src python:branch.static_url('/static/images/ico_file_modify.gif'); 
 
121
                        <img tal:attributes="src python:branch.static_url('/static/images/ico_file_modify.gif');
122
122
                                             title string:Annotate ${file/filename}"
123
123
                             tal:condition="python:file.executable is True" alt="File" />
124
124
                    </a>