Hi all,
I have pushed a new version of Pier-Gallery that brings some new things:
- create a gallery, and point to an existing directory on your server to fill it
- files in a gallery directory that aren’t images are skipped
- "square" rendering of thumbnails
- thumbnail creation and image resize is automatic and modifiable any
time, and done in the background
- when you are logged, simply click on a thumbnail to go to a
picture-specific page, where you can do small modifications (hide/show
the image, rotate it)
- a Gallery-Randomizer component — create a page with such a component
embedded, and it will pick an image randomly from your galleries
- integration with Lightbox2 for a nice display
You can grab it from the pier addons repository.
More documentation here:
http://www.roard.com/seaside/pier/projects/PierGallery
Thanks to Damien Cassou for the original Pier-Gallery, and thanks to
Damien Pollet for the occasional help :)
--
Nicolas Roard
"I love deadlines. I like the whooshing sound
they make as they fly by." -- Douglas Adams
Hi folks! I have a website which is in development with pier. As it is in
development there was no lighttpd or apache and I wanted them to wait :)
But...In another thread of this mail, thanks John, I just realised that I
want to configure my lighttpd with Pier now. The problem is that I know very
little about lighttpd neither apache. I want to use lighttpd. But I don't
know how to configure.
I saw Miguel (Miguel pensé mandarte un mail privado pero aprovecho que tal
vez le sirve a otro) post here:
http://miguel.leugim.com.mx/index.php/2008/09/27/gemstones-and-fastcgi-with…
and I wonder which is the difference between what configuration and the one
I need for my pier site. I remove Gemstone and FastCGI from that post but I
add Pier hahah.
I also saw http://www.piercms.com/doc/deploy but I am using lighttpd :(
I have lighttpd installed and listening. I am under Ubuntu 8.10.
I want to statically serve:
- My pictures -> I use the gallery plugins. I have those photos in
/var/www/pictures
- All css files. I have my own library for my website which has a
stylesheet. But, what about the others css? should I serve ALL of them ?
Would love to have them in /var/www/styles/
- All javascript files. The same as above. All js of all libraries ?
Would love to have them in /var/www/javascripts/
- What about the files I upload in Pier and are stored in ~/files
Would love to have them in /var/www/pierFiles
Thanks a lot for the help!
Mariano
Hi,
I'm trying to flatten an accessor, but I can't find how.
What I have is ClassA which has a dictionary with ClassB as its
association values, and each ClassB has a value too.
What I want to accomplish, is to flatten all this structure, so
everytime I want to edit an instance of ClassA, I have direct access
to ClassB's value.
ClassA has a dictionary, but its access is encapsulated trough
ClassA>>atXXX: and ClassA>>atXXX:put:, I could change it to standard
#at:put: pair, in order to user MADictionaryAccesor or use a
MAPlugabbleAccessor, but I'm doing something wrong, because I don't
know how to flatten ClassA descriptions.
Any pointer or example to look at?
Thanks in advance,
--
Esteban A. Maringolo
Hi! Me again :) Don't worry, I have like bursts of different works. A
couple of weeks with a project, then another week with another project, and
so on.
I have this situation. I have a Pier page where I DON'T have big titles '!'
but perhaps '!!' or '!!!'. Suppose this example of a complete page:
+value:toc+
!!This is a little title because I don't want big titles here
Blah balh balh
!!This is another title
This page, will generate me a index like this:
0.1 This is a little title because I don't want big titles here
0.2 This is another title
Now, the behaviour I would love is: only if there is NO ! in the page, but
!!, don't start with 0.1 but with 1 and get something like this:
1 This is a little title because I don't want big titles here
2 This is another title
The same if I only have !!!
Now...is this doable? any tip where I can look in? class? method? piece of
code?
Thanks!!!
Mariano
Hi! External links stop working for me. I am using Pier 1.2. In components
like "footer" for example they work perfect. But when writing in a Page,
they doesn't work and they are interpreted as internal links and when I
click Pier ask me to create a component with that name.
Example: I write *www.ole.com.ar* in a Page, and it is interpreted as
internal like but I understand it should be an external want.
Any tip?
thanks,
Mariano
Hi! I think is Pier 1.2 since I am having a really annoying behaviour which
is the following: Suppose these examples:
1) I edit a page. In this case the first input of the "form" is the Page
title. In the second input, I have the text area where I can write my page.
So, I click "edit" command and after the text area is rendered I immediately
start editing the contents. But...the page totally loaded and after a couple
of seconds (1, 2 or 3) the focus goes to the first input of the form (in
this case the title). When I realize, I am writing in the title instead of
the page!!!! Because the focus go there.
2) when adding a component the first input is the name and then the list to
choose a particular component. I open the list, start to see the components
and see what to choose, and after a couple of seconds (one or two) the focus
goes again to the first input (the name in this case).
I think this delays is because I have google analytics or stuff like that
and takes a couple of seconds to completely load a page.
It seems that setting the focus to the first input is done at the end. I
wonder this can be done first of all.
is just me?
Thanks for the help,
Mariano
Hi: I think I found a little Pier bug. To reproduce:
1) Go to edit a big page (with vertical scroll)
2) Go the middle (vertically) of the page
3) select a world and with the enhanced editor click on an option
(underline, bold, or any of them).
For example I select the word 'mariano' and then select the bold. So, I
obtain *mariano* but...
4) After this, the cursor go to the beginning of the page. So...I have to
scroll again and go to mariano to continue editing the page.
is this a bug or the expected behaviour ?
thanks
mariano
Hi,
Thanks this worked.
I have some other questions:
1) I would like to use addons, video namely. How do I load this in my image ?
2) I try to use a simple image, documentations says to this with: +s: +reference+ but something like
+s: +http://stakepoint.com/files/MyFileLibrary/screenevents.png\+ does not work ?
3) I would like to use different type of character sizes on the same line is there a way how to do this ?
Regards,
@+Maarten,
Moe <http://source.lukas-renggli.ch/magritteaddons/Moe-jmck.11.mcz>is a
databse persistency framework based which uses Magritte and Roe for
persisting objects to PostgreSQL db's. The one novel thing about it (and I
am sure I can't be the first person to have thought of it) is that, instead
of serializing contained objects to the db column for that object, it
stores the id of any embedded/persisted object in the db column for that
object and rebuilds the object with its embeddded objects on reload. It
works for embedded collections as well writing an integer array to the db
column to represent the collection in the db. Its a relatively simple and
somewhat naive framwork written by a newbie :) I like to think of it as an
Inactive Record Pattern in that Active Record Pattern requires the objects
to (somewhat) model the database, and requires you to implement the database
features (like foreign keys) in the object model. The philosophy of Moe is
to use the db as a mirror of the model objects. Where there is a collection
in the model the db should also have a collection, etc. I don't use any kind
of foreign key relations in my objects so I wht should I bother with them at
all. Best of all, it is all implemented using Magritte meta descriptons.
Along with this the Postgres package has been modified to include integer
array support.
I also needed to implement money columns so I added support for the money
type in postgres and used Avi Bryants Money package from squeaksource to
model money types. Support has been added for reading a string
representation of money replete with Locale defined separators and decimals.
The money implementation required that I write a new Magritte description so
Magritte-Money is now available in the Magritte-Addons project. Again, to
use this you will need to load the Money package.
The following packages will be required to use Moe:
PostgresV2 <http://www.squeaksource.com/PostgresV2.html>
Roe <http://www.squeaksource.com/ROE.html>
Magritte-Roe<http://source.lukas-renggli.ch/magritteaddons/Magritte-Roe-jmck.9.mcz>
and incidentally Money <http://www.squeaksource.com/Money.html> and
Magritte-Money<http://source.lukas-renggli.ch/magritteaddons/Magritte-Money-jmck.1.mcz>
(you can get away with not using Money by using the previous version of
PostgresV2)
Lastly, I have always been dissappointed in the strictly vertical rendering
of Magritte described objects and decided to implement a renderer that would
give them a more horizontal feel.
MARowRenderer<http://source.lukas-renggli.ch/magritteaddons/Magritte-RowRenderer-jmck.1.m…>will
group your descriptions based on their priorities. Priorities 1-9 will
render on one row, 10-19 on the next row, 20-29 on the next row and so on.
Its a little kludgy, and the algorithm needs some work to make it more
efficient, but it works well. Column spans are also calculated so rows do
not have to have the same number of elements to look good. If you've ever
wished you could get the person's Last Name, First Name and Middle Name to
render on one row, and the address fields to render on their own row etc,
this will do the trick. Simply implement descriptionContainer on your object
to return MARowContainer and voila!
I hope the community finds some of this stuff useful.
John McKeon
--
http://jmck.seasidehosting.st
Hi people: I have a problem with css but probably it is because I know very
little about them and I hate them ahaha.
I have a Pier table with |s The thing is that I want to put a particular
css to those tables (the one I create in a page with |s ) but not to ALL
the html tables the Pier render.
If I change in my css table for example, it will affect to all pier tables:
when crating a component, when adding, editing, etc...
I can create another css class (tableForMyTables for example), but then I
should change Pier code so that it renders tables with my css class instead
of the standardone.
Does anyone know how can achieve this? Perhaps adding a div for my tables?
but I don't know what do to then haha.
Thanks for the help!
Mariano