Skip to main content

Home/ Plone distributed documentation/ Group items tagged command

Rss Feed Group items tagged

Graham Perrin

Saving the day: recovering lost objects - Jarn · Plone Solutions - 1 views

  • recovering lost objects
  • entire section of his site was missing
  • someone had deleted the object
  • ...26 more annotations...
  • 9 days earlier
  • Undo was no longer an option
  • Truncating the Data.fs (removing all transactions since, including the offending one)
  • undesirable
  • through RelStorage
  • time traveling: zc.beforestorage
  • small additional buildout configuration file
  • beforestorage.cfg
  • [buildout]extends = buildout.cfgeggs += zc.beforestorage ZODB3 zope.proxy[versions]ZODB3 = 3.8.1zope.proxy = 3.4.2[relstorage-patch]recipe = plone.recipe.commandcommand = cd ${buildout:eggs-directory}/ZODB3-3.8.1-py2.4-linux-i686.egg/ZODB curl -s http://svn.zope.de/zope.org/relstorage/tags/1.1c1/poll-invalidation-1-zodb-3-8-0.patch | patch -N -p0 cd ${buildout:directory}update-command = ${relstorage-patch:command}[instance]zope-conf-additional += enable-product-installation False
  • enable-product-installation
  • tells Zope not to try and write product information to the ZODB
  • because zc.beforestorage puts your ZODB in read-only mode
  • edit the zope.conf
  • <zodb_db main>    # Main database    cache-size 650000%import zc.beforestorage%import relstorage <before> before 2008-12-08T10:29:03    <relstorage>        <oracle>            dsn RELSTORAGE_DSN            password xxxxxxxxx            user xxxxxxxx        </oracle>    </relstorage> </before>    mount-point /</zodb_db>
  • impossible as the site stores
  • <before> before 2008-12-08T10:29:03    <relstorage>        <oracle>            dsn RELSTORAGE_DSN            password xxxxxxxxx            user xxxxxxxx        </oracle>    </relstorage> </before>
  • when you start the instance, you are in the past
  • found the lost object
  • Export/Import
  • save the export on the server
  • buildout with your regular buildout file
  • restart
  • import the .zexp
  • reindex the imported content
  • related data that lives outside of the object itself is gone
  • Martijn Pieters
Graham Perrin

Python debugger (pdb) - Plone Developer Manual v0.1 documentation - 0 views

  • Python debugger
  • (pdb)
  • interactive command-line debugger
  • ...3 more annotations...
  • Useful pdb commands
  • s = step into, go into the function in the cursor n = step over, execute the function under the cursor without stepping into it c = continue, resume program bt = print stack trace up = go to the scope of the caller function
  • Useful pdb snippets
Graham Perrin

Mac OS X Manual Page For dscl(1) - 0 views

  • If no file path is provided then access goes only to the registered 1local nodes on the system
  • This manual page is for Mac OS X version 10.6
  • dscl -- Directory Service command line utility
  • ...8 more annotations...
  • may be a node name
  • PATH SPECIFICATION
  • If no file path is provided then access goes only to the registered local nodes on the system
  • local nodes
    • Graham Perrin
       
      plural
  • specify the plug-in
  • /LDAPv3/
  • or a Mac OS X Server (10.2 or later) host
  • specified by DNS hostname or IP address
Graham Perrin

Accomplishments of Sprint / Improvements to ZopeSkel - 0 views

  • Accomplishments of Sprint / Improvements to ZopeSkel
  • To play with this
  • You can try out the new zopeskel command
  • ...9 more annotations...
  • zopeskel
  • cd /tmp
  • virtualenv --no-site-packages -p /usr/bin/python2.4 test-new-zopeskel
  • cd test-new-zopeskel/
  • . bin/activate
  • svn co http://svn.plone.org/svn/collective/ZopeSkel/branches/bbq-sprint-cewing
  • cd bbq-sprint-cewing/
  • python setup.py develop
  • python setup.py test
  •  
    "now includes, at bottom, instructions for testing out/playing with, for anyone who wants to play with the new, improved zopeskel"
Graham Perrin

Mac Dev Center: Open Directory Programming Guide: Concepts - 0 views

  • LDAPv3, Active Directory, BSD flat files, NIS, and the local DS data store
  • Search Policies and Search Nodes
  • Open Directory’s primary protocol is LDAPv3
  • ...3 more annotations...
  • Locally hosted nodes
  • The local directory service node is referenced with /Local/Default
  • the local
1 - 5 of 5
Showing 20 items per page