Skip to content

Portal

You are here: Home » Blogs » Plone Conference 2005 » Vienna Plone Conference 2005 BLOG » Archive » 2005 » September » 21 » artistwebsites

artistwebsites

Building an artist community website using Poseidon/ArchGenXML Nate Aune

Europython in june and ath the plone conference in new orleans

The next talk is at ten.

Multimedia support in plone.

[...Nate brings up a code snipplet showing the schema of an Artist Content Object, skipping the Archetypes introduction that was shown at the last talks about it...we see a screenshot of posseidon...]

ArchGenXML is a command line tool to generate code.
Any custom code you add is preserved when you regenerate the model.

Big projects with many different content types

Well documented specification

UML->ArcgGenXML->schema

ArchGenXML can be seen as a black box. The boring stuff is generated for you, you can focus on the interesting stuff.

package-product
class-content type
operation-method
attribute-field
tagged value-property
stereotype-subclass, view

Phil can go into more depth about this

1.) save model to products dir

2.) run ArchGenXML

3.) Restart Zope

4.) Install Product

In the Products directory youu get Install method skins directory i18n ids and strings.

You still have to make your templates.

vocabularies can be put into posseidon with

vocabulary:name
vocabulary:type

then you'd get a selection

- Composition

There is a containment relation between classes it is the black solid diamond and a connection line. (Composition)

Artsis can contain Artist

If you declare the stereotype <<large>> on a class the base class btreefolder is being used ;-)

- Directed assiciation

You will get a group edit form if you use that.

Reference browser widget (ATReferenceBrowser widget)

tagged value:
default:widget:Reference=ReferenceBrowserWidget

End point of assiciation can have multiplicity
allow_browse:false

Back References

- Attribute(field)

groups:Backreference
invisible, but visible on the view

Stereotype <<member>> subclasses cmf_member and you can use custom fields. (like city, state...) It would also extend the registration form you have on your plone site.

stereotype <<stub>>

Objects with that stereotype will not be generated. You can specify allowed_content types with that stub classes. [...Stubs are using aggregations in the example...]

Plonemall is a serious e-commerce framework
A lot of interfaces are used. It was used for the conference registration it is a good example of high quality uml design and a good source to learn how things work. Hopefully Phil and Jens will say more on how to use ArchGenXML in a collaboration environment.

Subclass ATEvent to add your own fields ;-)

base_class=ATEvent [...tagged value of a class...]

Venues container
There is a relation from SiteEvent to Venue

The user would not be confused because there is not very much extra stuff.

Not coverd in this talk:

methods, additional stereotypes, workflow, unit tests, documenting, generalisation interfaces

Phil, Jens Martin Aspeli, Fabiano Weimar, Bernhard Snizek, Bluedynamics, ...

The slides are available for download.


Multimedia and Plone

Plone does not really have a package for such content types. There are some Products

ATAudio, Plodcasting, PloneRadio

ATVideo, lilix.movie, Parwin

PloneMultimedia Bundle should consolidate all good Products

Common base products in which to build custom multimedia products as add-on Product for ATContentTypes

ATAudio subclasses ATFile, cleanupFilename, download getIcon, ...
ATPhote subclass ATImage: getEXIF, ATFolder, ...

upload an audio file

description, browse..., next

The metadata is extracted from the mp3 file (ID3)

Embedded player
play in popup window
stream to external player
download to fs

WebDAV can also be used to integrate the desktop with plone sites. Files would just appear.

CD view page would show tracks of a cd. There is a flash popup player that uses XSPF playlists and you can jump forward and backwards in the playlist.

Nate sais thank you to people involved

At HotelAcademia there will be a MultimediaSprint

http://plone.org/products/ataudio
http://plone4artists.org

Q: Did you use ArchGenXML to generate ATAudio
A: No at this time not, but maybe it should be refactored using ArchGenXML

Posted by blogger on 2005-09-21 10:43

Trackback

The URI to TrackBack this entry is: http://gogo.bluedynamics.net/plone/blogs/pc2005/blog/archive/2005/09/21/artistwebsites/trackback
 

Personal tools