Hi,
I had a component in Pier which included in a rendering message:
html div class: 'grey_copy14'; style:
'background-image:url(img/faq_title.gif);'
If you can ignore my poor style with inline css, when 'img/faq_title.gif'
wasn't present, PRPierFrame>>#notFound is called. This then caused a new
component to be created and my context to be reset (see my previous post
"sessions, continuation keys, restful urls and component state")
Even if we fix the new component creation but it still seems unnecessary
that for images #notFound resets the structure and view:
notFound
"This method is called whenever the current request cannot be resolved to a
> structure."
self context: (self context
structure: self context root
view: PRNotFoundView)
I propose a fix to only redirect if the MimeType is non-binary, something
along the lines of
notFound
"This method is called whenever the current request cannot be resolved to a
> structure."
self requestContext request mimeType isBinary ifTrue: [ self requestContext
> responseGenerator notFound ]
self context: (self context
structure: self context root
view: PRNotFoundView)
Assuming others think this is a reasonable idea, a problem arises in that
WARequest doesn't implement #mimeType. I'd propose
refactoring WAExternalFileLibrary>>#mimetypeForRequest: and
WAFileLibrary>>#mimetypeFor:
Does that seem a reasonable course of action?
Nick
Yes I was refering to one click image and what it needs from os to work like
pdf generation for instance.
Thanks!
Davorin
On May 12, 2011 7:25 PM, "Lukas Renggli" <renggli(a)gmail.com> wrote:
Take the one-click image from the website. It has all code loaded and
works on Linux, Mac and Windows.
Alternatively you could use the Pier2Configuration and load just what
depends on the Pier-Book package. This works anywhere where Pharo runs
(e.g. on the iPhone). There are no other dependencies, unless you want
to generate a PDF what requires a working LaTeX installation.
Cheers,
Lukas
On Thursday, 12 May 2011, Davorin Rusevljan <davorin.rusevljan(a)gmail.com>
wrote:
> Hello,
>
> what ...
> _______________________________________________
> Magritte, Pier and Related Tools ...
> https://www.iam.unibe.ch/mailman/listinfo/smallwiki
>
--
Lukas Renggli
www.lukas-renggli.ch
_______________________________________________
Magritte, Pier and Related Tools ...
https://www.iam.unibe.ch/mailman/listinfo/smallwiki
Hello,
what are the operatin system, and installed packages prerequisites for
Pier Book? What needs to be installed?
Davorin Rusevljan
http://www.cloud208.com/
Trying to set up a site at chaetal.seasidehosting.st and provide
"shorter" URLs (like http://chaetal.seasidehosting.st/about instead of
http://chaetal.seasidehosting.st/pier/about) there I've encountered a
problem. All the tutorials, manuals, FAQs I found say something like
"select your preferred application as default entry point and set the
base-path of your application to "/". I do that but Seaside says (for
example) "/seaside/about/ not found" when I click "About". I don't
remember how we solved this in earlier versions of Seaside and Pier.
And I'm not sure about who is actually responsible for this: Pier,
Seaside or hosting… But I don't see any opportunities at
seasidehosting to do what I want at web-server level. So, how can I do
that with Seaside or/and Pier?
TIA
--
Dennis Schetinin
Hi
I'm in a situation where a need a different description for newly
created objects. The object itself doesn't know that it's newly
created, it just know because I just created it. Answering an object
and a description feels kinda kludgey so are there other options?
Cheers
Philippe
Hi,
what would be suggested path if one wants to deploy few low traffic
Piers? All Piers in one image or one image per Pier?
Davorin Rusevljan
http://www.cloud208.com/
Thanks for tip regarding sixx. Anyway, what bothers me is embeded inst var
of PRLink that existed in both 1.1 and 1.2. But 1.2 expects it to be true or
false, while my 1.1 PRLinks have arrays in them that contain some data. Now
I could overwrite those arrays with true or false, but what about
information that those arrays contained should I store it somewhere else?
So the question is more what was meaning of embeded inst var before, what is
now and how should they be logically migrated?
Thanks,
Davorin Rusevljan
On Apr 26, 2011 10:54 PM, "Lukas Renggli" <renggli(a)gmail.com> wrote:
> Do you have some advice what to do with embeded inst vars of PRLink(s),
1.2
> expects them to be ...
You have to figure out how to move the contents into the right
variables using #instVarAt: and #instVarAt:put:. However, in your case
it is probably easier if you use SIXX -- or try to adapt the
import/export code to use SmartRefStream -- that both can handle
instance variable changes. Then you only need to fix the "new"
variables.
Lukas
--
Lukas Renggli
www.lukas-renggli.ch
_______________________________________________
Magritte, Pier a...