Hi again,
I have a blog moose.unibe.ch/news, but the RSS link points to
localhost. What could be the problem?
I should say that there is an Apache rewrite rule that forwards
moose.unibe.ch to localhost.
Cheers,
Doru
--
www.tudorgirba.comwww.tudorgirba.com/blog
"One cannot do more than one can do."
Hi all,
I'm using Magritte to model some objects of mine and basically if the
user edits the object I want the description to be the same, just the
"unique key" to become read only. If they add then of course all
fields are modify-able.
I have done this by overriding #description on instance side to do
something like:
MyObject>>description
|result|
result := self class description.
^ someField
ifNil: [ result ] "new instance"
ifNotNil: [
result collect: [e|
e label = 'Name Im interested in'
ifTrue: [ e beReadonly; yourself ]
ifFalse: [ e ] ] ]
Now of course what happens is, if I click edit first then the fields
are always read only and vice versa if I click new first, due to
caching. That is, it works perfectly.... the first use, and from then
on #description is called. Before I fought with this anymore I
thought I would check if there is a simpler way to do what I'm trying
to do.
Thanks in advance,
Jason
Hi,
I am looking to see how do you handle the security in Pier.
I am trying to read the code but if you have a short explanation or
some pointer the would help.
Sorry if someone have already ask the question. I am to lazy to search
throw the mailing-list :0.
Thanks
Mth
Hi,
I have troubles starting the ImagePersitency. I did the following:
PRKernel instances anyOne persistency: PRImagePersistency new
But, nothing seems to happen when I edit.
What am I doing wrong?
Doru
--
www.tudorgirba.comwww.tudorgirba.com/blog
"Every thing has its own flow."
In Pier-Math it's just fixes mainly because it hardcoded the paths to
latex and dvipng.
I added a new subclass of PRTagCloudWidget with a different formula
for scaling the tags:
- it computes mean and standard deviation in occurences among the
displayed tags,
- tags in the mean get 100% size
- the scaling tends towards a factor of +/- two for outliers
- tags at standard deviation are visibly scaled (I don't remember
exactly but twice the std dev would give 80-90% of maximum scaling)
No commit comment because the Accept button threw itself under a click :)
--
Damien Pollet
type less, do more [ | ] http://typo.cdlm.fasmz.org
Hi,
I am giving the new PRDocumentWidget a try on my webpage. With this
occassion, I got rid of all environments and just use the documents
instead of templates. It just took a while to figure out that I have
to select the checkbox to make the documents inherited :).
It's a very nice mechanism.
Cheers,
Doru
--
www.tudorgirba.comwww.tudorgirba.com/blog
"Every thing has its own flow."
yes, encodings once again :)
My CSS has UTF8 content that gets displayed: I'm using foo:after {
contents: '»'; } (that's a french closing guillemot in there, looks
like >> )
I'm loading it in a subclass of WAFileLibrary using #addAllFilesIn:
When I use WAKom, the guillemot becomes an error character. With
WAKomEncoded it's displayed correctly. but then I can't use some
characters when editing pages.
My understanding was that WAKomEncoded converts to the squeak internal
representation, and WAKom does nothing, so WAKom should work (as long
as I have UTF in my files, which is the case), and WAKomEncoded could
fail if it tries to convert what's in the FileLibrary from squeak to
utf before serving…
Why is it the reverse in practice?
--
Damien Pollet
type less, do more [ | ] http://typo.cdlm.fasmz.org
Hi,
the latest version of Pier includes a few experimental features. I
would like to hear your opinion on these:
1. Environments
Before environments were a reference to a different page anywhere on
your page. One idea was to replace this reference with a document
(like the page has one). This allows then to edit the meta-page using
the settings and have it close to the page it is applied to. As
before, keeping it empty would inherit the environment from the
parent. Do you think that improves the usability?
2. Custom Documents
Another idea was that an environment (that is independent of the
proposal above) can add any number of document (formerly called
content widget) widgets. These widgets could then be put for example
into a side-bar or the heading to allow customization of these parts
of the page as part of the edit process of a structure. Again these
'extra' documents can have default documents and/or be inherited from
parent structures. Do you think that would be useful?
Do you think 1 is still useful if we have 2?
I appreciate any thoughts on this. Of course I already made my own
opinion (that you might read between the lines) ...
Cheers,
Lukas
--
Lukas Renggli
http://www.lukas-renggli.ch