Hello
this is how indexes are implemented in RDBMs.. don't know if sqllite has
such a feature, but in oracle the table content is just stored in files
(structured, but unordered) and a set of sorted indexes is kept for the
primary key and all other secundary indexes.
each index has the search f
hello,
I'm trying to get started with viewlets, but am still having some problems:
For example, I have a "LeftColumn" viewletmanager, where I want to display
different infos (viewlets) depending on the object that's being displayed
(one viewlet for folders, one for "normal" files, one for images
er = False
> def update(self):
> if MyInterface.providedBy(self.context):
> self.dorender = True
>
> def render(self):
> if self.dorender:
> return u'Hello'
> else:
> return u''
>
> That may do it.
>
> Regards,
> Darryl
>
> On Wed, 2006-09-1
hello,
wow. thanks for the offer... maybe I'm doing something wrong somewhere else
then. I'm attaching a minimal package which (does not) work(s) for me:
as a first step I add a zope.app.file.File called "file.txt" to my site
root, then I visit these two links, and both show "Hello"
http://loca
rsday 14 September 2006 14:21, Luis De la Parra wrote:
>> I then change my configure.zcml as described, and none of the above links
>> shows "hello" anymore.. I would expect /viewlet.html to show an empty
>> message, and /file.txt/viewlet.html to display "hello"
uot;s ? even if the rest of the page
should be the same ( display a link for download in the upper part, title,
and description on the right, etc )
regards. luis
Stephan Richter wrote:
> On Thursday 14 September 2006 14:21, Luis De la Parra wrote:
>> wow. thanks for the offer... maybe I'm d
Stephan Richter wrote:
> ... or something like that. I did not investigate further. Then I changed
> the registration to:
>
>for="zope.app.file.interfaces.IFile"
> name="viewlet.html"
> template="index.pt"
> permission="zope.View"/>
hmm... I put some debug strings in ViewletM
Luis De la Parra wrote:
>
> if I visist my_music_file.mp3/index.html I want to see the user comments
> to my new song on the bottom of the page, and if I visit
> my_photo.jpg/index.html I want to to see a box with info such as
> shutter-speed, apperture, etc, and a box with th
hello,
I'm not sure wether this is the right way to do it, but you can set up the
skin with a traverse-subscriber:
def myAppTraverseSubscriber(event):
"""A subscriber to BeforeTraverseEvent.
Sets the "AC" skin if the object traversed is a "MyApp"
instance.
"""
if (IMyApp.pr