Photo gallery?
by Damien Cassou
Hi,
is there any photo gallery available for Pier? I mean a widget where I
could upload pictures and they are rendered in a nice way. I started
one 4 years ago but I abandoned it.
Bye
--
Damien Cassou
http://damiencassou.seasidehosting.st
5 years, 4 months
Upload file image for Pier 3.0 into Gemstone 3.1.0.1 environment
by dtrussardi@tiscali.it
Ciao,
i test the Pier 3.0 into a Gemstone 3.1.0.1 environment.
I load the 3.0.3 [ConfigurationOfPier3AddOns] and all seems loaded properly.
I configured the default pier instance adding the NAFileUploadConfiguration
and setup the relative
Uploaded files path root
to the directory on the server for save the image.
After login in the pier instance in the traditional mode ( not with pier-admin )
i can update one pier page.
When i work with the image support the system don't work fine.
I need to change the:
PRFileUploadWysiwygEditorBase createUploadedFilepath: method with the code between ******
createUploadedFilepath: filename
| pathroot currentStructure structurePath destinationDirectory pathRootNoTrailingSlash |
pathroot := self application fileuploadPathRoot.
currentStructure := self context structure.
structurePath := currentStructure absolutePath copyReplaceAll: '/' with: GRPlatform current pathSeparator .
pathRootNoTrailingSlash := (FileDirectory on: pathroot) pathName.
destinationDirectory := FileDirectory on: (pathRootNoTrailingSlash, structurePath).
NAExternalFile ensureDirectoryExists: destinationDirectory pathName.
********
"^ (destinationDirectory / filename) pathName"
^( FileDirectory on: (destinationDirectory fullNameFor: filename)) pathName
*********
With this change the image is save in the specific directory on the server.
Anyone ( if this change are considered right ) can update the relative package ?
I have some problem relative to the web request for the image.
For now the request
<img alt="Pizzaflash.jpg" src="/pier/about/pizzaflash.jpg">
don't work.
My thoughts, my goal is that the image is manage directly by the Lighttpd or Apache web server
not read by Gemstone environment and response with:
PRFileView
respondUsing: aResponse
| file |
file := self context structure file.
aResponse
binary;
cacheForever;
contentType: file mimetype seasideMimeType;
headerAt: 'Content-Disposition' put: 'inline; filename="' , file filename , '"';
nextPutAll: file contents;
respond
Any consideration is welcome.
Thank,
Dario
10 years, 8 months
Manage Pier in Gemstone environment
by dtrussardi@tiscali.it
Ciao,
i do some test for use Pier 3.0 into Gemstone 3.1.0.1 environment.
I load the 3.0.3 [ConfigurationOfPier3AddOns] and all seems loaded properly.
I can work with the Pier Admin Setup for create new pier instance:
i configured two pier environment based
one to Book Template
and one to Blank Template.
The *instance work fine.
If i work with *instance-admin when i do the login the system answer:
a Breakpoint occurred (error 6005), Method breakpoint encountered. - G/S[MonvisoGruppi:1
Seaside Walkback
MessageNotUnderstood
Remote Debug Proceed Full Stack
Possible Causes
you sent a message this type of object doesn't understand
Stack Trace
thisContext
WAGemStoneWalkback >> currentContextForWalkback (envId 0) @2 line 3
self
aWARemoteDebuggingWalkback
initial
nil
context
nil
.t1
GsContext
.t2
1
thisContext
WAGemStoneWalkback >> initializeWithException: (envId 0) @3 line 4
self
aWARemoteDebuggingWalkback
anException
a MessageNotUnderstood occurred (error 2010), a ExecBlock does not understand #'receiver'
context
nil
.t1
aWARemoteDebuggingWalkback
thisContext
WARemoteDebuggingWalkback >> initializeWithException:continuation: (envId 0) @2 line 3
self
aWARemoteDebuggingWalkback
anException
a MessageNotUnderstood occurred (error 2010), a ExecBlock does not understand #'receiver'
aContinuation
GsProcess(oop=249109249, status=debug, priority=4, WARemoteDebuggingWalkbackErrorHandler >> open: (
thisContext
WARemoteDebuggingWalkback class >> exception:continuation: (envId 0) @3 line 2
self
WARemoteDebuggingWalkback
anException
a MessageNotUnderstood occurred (error 2010), a ExecBlock does not understand #'receiver'
aContinuation
GsProcess(oop=249109249, status=debug, priority=4, WARemoteDebuggingWalkbackErrorHandler >> open: (
thisContext
[] in WARemoteDebuggingWalkbackErrorHandler >> open: (envId 0) @18 line 27
self
anExecBlock
wb
nil
logEntry
nil
continuation
GsProcess(oop=249109249, status=debug, priority=4, WARemoteDebuggingWalkbackErrorHandler >> open: (
anException
a MessageNotUnderstood occurred (error 2010), a ExecBlock does not understand #'receiver'
self
aWARemoteDebuggingWalkbackErrorHandler
.t1
WARemoteDebuggingWalkback
.t2
a MessageNotUnderstood occurred (error 2010), a ExecBlock does not understand #'receiver'
.t3
GsProcess(oop=249109249, status=debug, priority=4, WARemoteDebuggingWalkbackErrorHandler >> open: (
The relative GemTools Debug record report :
WAErrorHandler >> remoteBreakpointMethod (envId 0)
WARemoteDebuggingWalkbackErrorHandler >> open: (envId 0)
WADebugErrorHandler >> debugAndResume: (envId 0)
WADebugErrorHandler >> handleDefault: (envId 0)
WAErrorHandler >> handleError: (envId 0)
WAErrorHandler >> handleGemStoneException: (envId 0)
WAGemStoneWalkbackErrorHandler >> handleException: (envId 0)
[] in WAExceptionHandler >> handleExceptionsDuring: (envId 0)
ExecBlock >> on:do: (envId 0)
[] in WAExceptionHandler >> handleExceptionsDuring: (envId 0)
[] in ExecBlock >> on:do: (envId 0)
AbstractException >> _executeHandler: (envId 0)
AbstractException >> _signalWith: (envId 0)
AbstractException >> signal (envId 0)
Object >> doesNotUnderstand: (envId 0)
Object >> _doesNotUnderstand:args:envId:reason: (envId 0)
Announcer >> subscribe:do: (envId 0)
Announcer >> on:do: (envId 0)
PRAdminNavigator >> announcementRegister (envId 0)
PRAdminAnnouncingComponent >> initialize (envId 0)
GRObject class >> new (envId 0)
PRAdminUIChild class >> contextGetCallback:contextSetCallback: (envId 0)
PRAdminUI >> navigatorComponent (envId 0)
PRAdminUI >> children (envId 0)
WAPresenter >> childrenDo: (envId 0)
WAVisiblePresenterGuide >> visitPresenter: (envId 0)
WAPainterVisitor >> visitComponent: (envId 0)
WAComponent >> accept: (envId 0)
WAVisiblePresenterGuide >> visitDecoration: (envId 0)
WADecoration >> accept: (envId 0)
WAPainterVisitor >> visitDecorationsOfComponent: (envId 0)
WAComponent >> acceptDecorated: (envId 0)
WAPresenterGuide >> visit: (envId 0)
[] in WAVisiblePresenterGuide >> visitPresenter: (envId 0)
[] in WAPresenter >> childrenDo: (envId 0)
Collection >> do: (envId 0)
WAPresenter >> childrenDo: (envId 0)
WAVisiblePresenterGuide >> visitPresenter: (envId 0)
WAPainterVisitor >> visitDecoration: (envId 0)
WAVisiblePresenterGuide >> visitDecoration: (envId 0)
WAPainterVisitor >> visitDelegation: (envId 0)
WADelegation >> accept: (envId 0)
WAPainterVisitor >> visitDecorationsOfComponent: (envId 0)
WAComponent >> acceptDecorated: (envId 0)
WAPresenterGuide >> visit: (envId 0)
WAVisitor >> start: (envId 0)
Thanks for any suggestion,
Dario
10 years, 8 months
Pier upload files on Server
by dtrussardi@tiscali.it
Ciao,
hi have Pharo1.4 image ( Latest update: #14445)
where i load the ConfigurationOfPier3AddOns 3.0.3.
I have a server where run Lighttpd server configured to manage *Selection* directory.
Now i'm interested with the Pier Admin environment and the relative image options editor
to load the files on the server at one specific *Selection* subdirectory.
In the Pharo image i setup the MAExternalFileModel with
self baseDirectory: 'Selection'.
self baseUrl: 'http://www.server.com'. ( this is redirect to the server )
But i see what PRFileUploadWysiwygEditor work with NAExternalFile
I need to setup the
Resource Base Url (unspecified)
Server Path Clear
relative to the myapplication-admin or myapplication config ?
Anyone test this setup?
Thank, for any consideration.
Dario
10 years, 8 months
Issue with PRSegmentPersistency in Pharo 1.4
by Reza Razavi
Hi,
When loading "Pier-Pharo-Persistency" in a Pharo 1.4, the following
warning is raised:
This package depends on the following classes:
ImageSegment
You must resolve these dependencies before you will be able to load
these definitions:
writeKernel:on: /
/
Select Proceed to continue, or close this window to cancel the operation.
This is due to a reference to ImageSegment in the following method:
PRSegmentPersistency >> serialize: aString
| stream pointers |
stream := self directory forceNewFileNamed: aString.
pointers := [ [ ImageSegment new writeKernel: self kernel on: stream ]
ensure: [ stream close ] ] on: Exception do: [ :error | nil ].
(pointers isNil or: [ pointers anySatisfy: [ :each | (each
isLiteral or: [ each isVariableBinding ]) not ] ])
ifTrue: [ self directory deleteFileNamed: aString ifAbsent: [ ] ]
Would this be worthy to fill a bug report?
Cheers,
Reza
10 years, 8 months
[Pier] Questions from a newbie concerning value links...
by Carl Hans
Dear all,
I'm using PIER 2.0 in order to develop a small webpage. After playing
around with it for a while many concepts becomes clear. However there
still things I'm struggling with.
One of these issues are the value links: On a page with some text
structured by sections (using "!") I would like to use something like
"+value:toc+" to have a kind of menu in order to refer directly to
specific sections in the text. The +value:toc+ exactly fulfills my needs
but the rendering looks a bit strange: It creates an unordered list with
ordered entries. That means I have a list items beginning with a bullet
followed by a number before the heading of section appears...
I already tried other constructs such as "children" etc. Can anybody
give me an advice how render the "value:toc" without having bullets and
numbers at the same. The best solution would be to have neither bullets
nor numbers...
Many thanks in advance for your help.
Best wishes
Carl
10 years, 8 months
Re: [Seaside] problems installing pier/apache2
by Tobias Pape
Am 20.09.2012 um 06:57 schrieb Tudor Girba:
> Hi,
>
> I am forwarding the message here given that the problem is not Pier specific.
>
> Any ideas?
>
> Cheers,
> Doru
> <VirtualHost *:80>
> # set serer name
> ProxyPreserveHost On
> ServerName www.example.com
>
> # connfigure static file serving
> DocumentRoot /srv/web
> <Directory /srv/web>
> Order deny,allow
> Allow from all
> </Directory>
>
> # rewrite incoming requests
> RewriteEngine On
> RewriteRule ^/pier(.*)$ http://www.example.com$1 [redirect,last]
> RewriteRule ^/files/(.*)$ http://localhost:8081/files/$1 [proxy,last]
> RewriteCond /srv/web/%{REQUEST_FILENAME} !-f
This rewrite condition makes sure that any existing file is tried before
Going on to that rule:
> RewriteRule ^/(.*)$ http://localhost:8081/pier/$1 [proxy,last]
> </VirtualHost>
Long sotry short, if /srv/web contains an index.html, it will be served,
and your proxy rule won't be tried.
Try removing the index.html ;)
Best
-Tobias
10 years, 8 months
problems installing pier/apache2
by Tudor Girba
Hi,
I am having troubles installing Pier with Apache2 on a virtual host
running Debian 6.
On this server, there is a Plesk running. When I go explicitly on port
www.example.com:8081, the site appears. However, when I go on
www.example.com I get the default webpage of Plesk. How can I disable
this Plesk default webpage and let apache do its job?
I have the following apache config that is properly placed in
sites-available and linked from sites-enabled (there is no other link
in sites-enabled):
<VirtualHost *:80>
# set serer name
ProxyPreserveHost On
ServerName www.example.com
# connfigure static file serving
DocumentRoot /srv/web
<Directory /srv/web>
Order deny,allow
Allow from all
</Directory>
# rewrite incoming requests
RewriteEngine On
RewriteRule ^/pier(.*)$ http://www.example.com$1 [redirect,last]
RewriteRule ^/files/(.*)$ http://localhost:8081/files/$1 [proxy,last]
RewriteCond /srv/web/%{REQUEST_FILENAME} !-f
RewriteRule ^/(.*)$ http://localhost:8081/pier/$1 [proxy,last]
</VirtualHost>
Cheers,
Doru
--
www.tudorgirba.com
"Every thing has its own flow"
10 years, 8 months