Dienstag, September 20, 2005

Plone: Suchrecht/Anzeige für Anonymous entziehen

Jeder Artikel der im Status SICHTBAR (Plone 2.0) bzw. ÖFFENTLICHER ENTWURF (Plone 2.1) eingestellt ist ist auch für Anonymous zu sehen.
Das kommt daher, dass der Status dem Anonymous das VIEW Recht gibt.
Also Workflow anpassen:

plone_workflow/states/visible
plone_workflow/states/pending
folder_workflow/states/visible

Aquire permission DEAKTIVIEREN
VIEW Recht DEAKTIVIEREN für Anonymous
und Member, Owner, Manager das VIEW Recht geben

Jetzt können nur angemeldete User die Inhalte sehen.

Donnerstag, September 15, 2005

Zope 3 unter Mac OS X Tiger compilieren

Um auf dem Mac Tiger zu compilieren installiert man die Xcode Tools.
Diese sind auf der Installations-DVD vom Betriebssystem.
Hier wird auch gcc 3 und gcc 4 installiert.

Python ist bei Tiger in Version 2.3.5 unter /usr/bin/python (Alias) für /System/Library/Frameworks/Python.framework/Version/2.3/bin/python installiert
Das ist die optimale Version für Zope 3

1. Zope herunterladen
2. entpacken
3. Mit Terminal ins Verzeichnis wechseln
4. ./configure aufrufen
5. sudo make aufrufen
6. sudo make install aufrufen

Zope 3 ist jetzt installiert in /usr/local/Zope-3.1.0c2 für RC 2

svn für MacOS X Shell

Unter http://homepage.mac.com/martinott/ kann man einen svn Client für Mac OS X Shell runterladen.

Datei: Subversion-1.2.3.pkg.zip

Wird in /usr/local/bin/ installiert

./svn help zeigt Hilfe zur Benutzung an:

Subversion command-line client, version 1.2.3.
Type 'svn help ' for help on a specific subcommand.

Most subcommands take file and/or directory arguments, recursing
on the directories. If no arguments are supplied to such a
command, it recurses on the current directory (inclusive) by default.

Available subcommands:
add
blame (praise, annotate, ann)
cat
checkout (co)
cleanup
commit (ci)
copy (cp)
delete (del, remove, rm)
diff (di)
export
help (?, h)
import
info
list (ls)
lock
log
merge
mkdir
move (mv, rename, ren)
propdel (pdel, pd)
propedit (pedit, pe)
propget (pget, pg)
proplist (plist, pl)
propset (pset, ps)
resolved
revert
status (stat, st)
switch (sw)
unlock
update (up)

Subversion is a tool for version control.
For additional information, see http://subversion.tigris.org/

Donnerstag, September 08, 2005

Zope 3.1 Instanz starten unter Ubuntu

Eine Zope 3 Instanz wird in der Shell so gestartet:

~/zopeinstanzname/bin/runzope

Zope 3.1 Instanz erstellen unter Ubuntu

/usr/local/Zope3.1.0c2/bin/mkzopeinstance -d ~/zopeinstanzname -u admin:passwort

erstellt ein Zope 3 Instanz im Homeverzeichnis des Users

Zope 3.1 unter Ubuntu compilieren

Bei Ubuntu Standardinstallation ist Python 2.4.1 installiert (/usr/bin/python2.4).

Zope 3 empfiehlt Python 2.3.5.
Installieren mit:

sudo apt-get install python2.3

Dazu noch die dev-Dateien installieren:
sudo apt-get install python2.3-dev

Jetzt Zope entpacken:

tar xzf Zope-3.1.0c2.tgz

Konfigurieren/Checken:
cd Zope-3.1.0c2
./configure

Wenn keine Pythonversion angegeben wird, versucht configure die optimale Version zu finden
alternativ:
./configure --with-python=/usr/local/bin/python2.4 (empfohlen ist 2.3)
Python Libraries und Zope exec Scripts kommen in software home /usr/local/Zope-3.1.0c2

Jetzt compilieren:
make
--> /usr/bin/python install.py -q build

..und installieren:
make install
--> /usr/bin/python install.py -q build
--> /usr/bin/python install.py -q install

Essentials zum Compilieren unter Ubuntu

Nach Installation der Ubuntu Standardversion brauchts noch einige Dateien, um Pakete zu compilieren z. B. Python, Zope

sudo apt-get install build-essential

Plone 2.1 zum Download verfügbar



Plone 2.1 ist auf Plone.org zum Download verfügbar

Mittwoch, September 07, 2005

Zope 3 Port 8080 ändern

INSTANCE/etc/zope.conf


server>
type HTTP
address 8080 ---> ändern auf 80
/server>



Danke Maik ;-)

Blogger (Google) verwendet Python

Look:

http://help.blogger.com/bin/answer.py?answer=755

*.py *smile*

Ubuntu 5.10 (Breezy Badger) Colony CD 3 download - Der flotte Dachs

http://cdimage.ubuntu.com/releases/breezy/colony-3/

Es läuft auch schon auf meinem Apple iBook..

Dienstag, September 06, 2005

PYTHONPATH unter Ubuntu permanent festlegen

Damit man interaktiv mit Python auf die Zope 3 Python Libs zugreifen kann muss der Pfad zu den Dateien für Python bekannt sein. Kann man durch Eintrag im Profile des Users bereitstellen.

Ins Homeverzeichnis wechseln: cd ~
Userprofile editieren: pico .bashrc
Diese Zeile in der Datei anhängen:
export PYTHONPATH=/usr/local/Zope3.1.0c2/lib/python

speichern STRG+O (O nicht Null)
nach neuem Login ist der Pfad permanent verfügbar

jetzt mal python starten...
dann:

>>> import zope
oder
>>> from zope.app.debug import Debugger
>>> debugger = Debugger(db="var/Data.fs", config_file="etc/site.zcml")

Python Version abfragen

python -V

--> Python 2.3.5

Zope 3 Instanz - Preferences anzeigen

http://localhost:8080/++preferences++/

Montag, September 05, 2005

Zope 3 Instanz - Prozesse anzeigen

http://localhost:8080/++etc++process/

Zope 3 Instanz browsen

http://localhost:8080/

Zope 3 Instanz starten

c:\zope\bin\runzope.bat
zope ist das Instanzverzeichnis.

Zope 3 Instanz erzeugen

"c:\programme\plone 2\python\scripts\mkzopeinstance.bat" -d c:\zope -u
admin:passwort