How do I recover a custom style sheet from a corrupted data.fs file?

I tried upgrading from Plone 2.5.3 to 3.0 (Windows), then copying over the
data.fs file and my Products files, but it gave a long list of errors. So, I
uninstalled, reinstalled 2.5.3, and copied back in all of the files from the
original install. Now I can't even get back into the ZMI! It thinks for a
while, then asks for my login, but doesn't accept it. Plone, meanwhile, just
reports errors (see event log below). 

I just started using Plone a week or so ago, and admit to being pretty
clueless, so please take pity on me. I really just need to get back the
custom CSS, which took several days to piece together and refine. Is there a
way to fix this? Or simply to hack in to the data.fs file to get at the
important piece? (Yes, I was sleep deprived when I did this, and didn't
produce a proper backup.)

Thanks,

Iain

Here's the whole event log for when I reinstalled Plone 2.5.3:

------
2007-08-21T14:25:33 INFO ZServer HTTP server started at Tue Aug 21 14:25:33
2007
        Hostname: Iain
        Port: 80
------
2007-08-21T14:25:33 INFO ZServer HTTP server started at Tue Aug 21 14:25:33
2007
        Hostname: Iain
        Port: 8080
------
2007-08-21T14:25:56 WARNING Init Class
Products.CMFFormController.ControllerBase.ControllerBase has a security
declaration for nonexistent method 'getPostRequired'
------
2007-08-21T14:26:00 INFO PlacelessTranslationService Applying patch 
*** Patching ZPublisher.Publish with the get_request patch! ***
------
2007-08-21T14:26:02 WARNING ZODB.FileStorage Ignoring index for C:\Program
Files\Plone 2\Data/var/Data.fs
------
2007-08-21T14:27:07 WARNING Plone Deprecation Warning 
CustomizationPolicies are deprecated and will be removed in Plone 3.0.
Please use GenericSetup extension profiles instead.
------
2007-08-21T14:27:07 WARNING Plone Deprecation Warning 
registerSetupWidget is deprecated and will be removed in Plone 3.0.
------
2007-08-21T14:27:07 WARNING Plone Deprecation Warning 
registerSetupWidget is deprecated and will be removed in Plone 3.0.
------
2007-08-21T14:27:11 WARNING Plone Deprecation Warning 
CustomizationPolicies are deprecated and will be removed in Plone 3.0.
Please use GenericSetup extension profiles instead.
------
2007-08-21T14:27:36 INFO Zope Ready to handle requests
------
2007-08-21T14:27:50 WARNING ZODB Could not import class 'FormTool' from
module 'Products.CMFPlone.FormTool'
------
2007-08-21T14:27:50 WARNING ZODB Could not import class 'NavigationTool'
from module 'Products.CMFPlone.NavigationTool'
------
2007-08-21T14:27:54 ERROR Zope.SiteErrorLog
http://localhost/index_html/document_view
Traceback (innermost last):
  Module ZPublisher.Publish, line 115, in publish
  Module ZPublisher.mapply, line 88, in mapply
  Module ZPublisher.Publish, line 41, in call_object
  Module Shared.DC.Scripts.Bindings, line 311, in __call__
  Module Shared.DC.Scripts.Bindings, line 348, in _bindAndExec
  Module Products.CMFCore.FSPageTemplate, line 195, in _exec
  Module Products.CMFCore.FSPageTemplate, line 134, in pt_render
  Module Products.PageTemplates.PageTemplate, line 104, in pt_render
   - <FSPageTemplate at /Plone/document_view used for /Plone/index_html>
  Module TAL.TALInterpreter, line 238, in __call__
  Module TAL.TALInterpreter, line 281, in interpret
  Module TAL.TALInterpreter, line 749, in do_useMacro
  Module TAL.TALInterpreter, line 281, in interpret
  Module TAL.TALInterpreter, line 457, in do_optTag_tal
  Module TAL.TALInterpreter, line 442, in do_optTag
  Module TAL.TALInterpreter, line 437, in no_tag
  Module TAL.TALInterpreter, line 281, in interpret
  Module TAL.TALInterpreter, line 749, in do_useMacro
  Module TAL.TALInterpreter, line 281, in interpret
  Module TAL.TALInterpreter, line 507, in do_setLocal_tal
  Module Products.PageTemplates.TALES, line 221, in evaluate
   - URL: file:CMFPlone/skins/plone_templates/global_defines.pt
   - Line 3, Column 0
   - Expression: standard:'plone_view/globalize'
   - Names:
      {'container': <PloneSite at /Plone>,
       'context': <Document at /Plone/index_html>,
       'default': <Products.PageTemplates.TALES.Default instance at
0x01566918>,
       'here': <Document at /Plone/index_html>,
       'loop': <Products.PageTemplates.TALES.SafeMapping object at
0x04EA7E40>,
       'modules': <Products.PageTemplates.ZRPythonExpr._SecureModuleImporter
instance at 0x01555E68>,
       'nothing': None,
       'options': {'args': ()},
       'repeat': <Products.PageTemplates.TALES.SafeMapping object at
0x04EA7E40>,
       'request': <HTTPRequest,
URL=http://localhost/index_html/document_view>,
       'root': <Application at >,
       'template': <FSPageTemplate at /Plone/document_view used for
/Plone/index_html>,
       'traverse_subpath': [],
       'user': <GRUFUser 'editorinchief'>}
  Module Products.PageTemplates.Expressions, line 185, in __call__
  Module Products.PageTemplates.Expressions, line 180, in _eval
  Module Products.PageTemplates.Expressions, line 85, in render
  Module Products.CMFPlone.browser.plone, line 66, in globalize
  Module Products.CMFPlone.browser.plone, line 127, in _initializeData
  Module Products.CMFPlone.browser.navigation, line 257, in topLevelTabs
AttributeError: exclude_from_nav
------
2007-08-21T14:27:54 ERROR root Exception while rendering an error message
Traceback (most recent call last):
  File "C:\Program Files\Plone 2\Zope\lib\python\OFS\SimpleItem.py", line
223, in raise_standardErrorMessage
    v = s(**kwargs)
  File "C:\Program Files\Plone 2\Data\Products\CMFCore\FSPythonScript.py",
line 108, in __call__
    return Script.__call__(self, *args, **kw)
  File "C:\Program Files\Plone
2\Zope\lib\python\Shared\DC\Scripts\Bindings.py", line 311, in __call__
    return self._bindAndExec(args, kw, None)
  File "C:\Program Files\Plone
2\Zope\lib\python\Shared\DC\Scripts\Bindings.py", line 348, in _bindAndExec
    return self._exec(bound_data, args, kw)
  File "C:\Program Files\Plone 2\Data\Products\CMFCore\FSPythonScript.py",
line 164, in _exec
    result = f(*args, **kw)
  File "Script (Python)", line 25, in standard_error_message
  File "C:\Program Files\Plone
2\Zope\lib\python\Shared\DC\Scripts\Bindings.py", line 311, in __call__
    return self._bindAndExec(args, kw, None)
  File "C:\Program Files\Plone
2\Zope\lib\python\Shared\DC\Scripts\Bindings.py", line 348, in _bindAndExec
    return self._exec(bound_data, args, kw)
  File "C:\Program Files\Plone 2\Data\Products\CMFCore\FSPageTemplate.py",
line 195, in _exec
    result = self.pt_render(extra_context=bound_names)
  File "C:\Program Files\Plone 2\Data\Products\CMFCore\FSPageTemplate.py",
line 134, in pt_render
    result = FSPageTemplate.inheritedAttribute('pt_render')(
  File "C:\Program Files\Plone
2\Zope\lib\python\Products\PageTemplates\PageTemplate.py", line 104, in
pt_render
    tal=not source, strictinsert=0)()
  File "C:\Program Files\Plone 2\Zope\lib\python\TAL\TALInterpreter.py",
line 238, in __call__
    self.interpret(self.program)
  File "C:\Program Files\Plone 2\Zope\lib\python\TAL\TALInterpreter.py",
line 281, in interpret
    handlers[opcode](self, args)
  File "C:\Program Files\Plone 2\Zope\lib\python\TAL\TALInterpreter.py",
line 749, in do_useMacro
    self.interpret(macro)
  File "C:\Program Files\Plone 2\Zope\lib\python\TAL\TALInterpreter.py",
line 281, in interpret
    handlers[opcode](self, args)
  File "C:\Program Files\Plone 2\Zope\lib\python\TAL\TALInterpreter.py",
line 457, in do_optTag_tal
    self.do_optTag(stuff)
  File "C:\Program Files\Plone 2\Zope\lib\python\TAL\TALInterpreter.py",
line 442, in do_optTag
    return self.no_tag(start, program)
  File "C:\Program Files\Plone 2\Zope\lib\python\TAL\TALInterpreter.py",
line 437, in no_tag
    self.interpret(program)
  File "C:\Program Files\Plone 2\Zope\lib\python\TAL\TALInterpreter.py",
line 281, in interpret
    handlers[opcode](self, args)
  File "C:\Program Files\Plone 2\Zope\lib\python\TAL\TALInterpreter.py",
line 749, in do_useMacro
    self.interpret(macro)
  File "C:\Program Files\Plone 2\Zope\lib\python\TAL\TALInterpreter.py",
line 281, in interpret
    handlers[opcode](self, args)
  File "C:\Program Files\Plone 2\Zope\lib\python\TAL\TALInterpreter.py",
line 507, in do_setLocal_tal
    self.engine.setLocal(name, self.engine.evaluateValue(expr))
  File "C:\Program Files\Plone
2\Zope\lib\python\Products\PageTemplates\TALES.py", line 221, in evaluate
    return expression(self)
  File "C:\Program Files\Plone
2\Zope\lib\python\Products\PageTemplates\Expressions.py", line 185, in
__call__
    return self._eval(econtext)
  File "C:\Program Files\Plone
2\Zope\lib\python\Products\PageTemplates\Expressions.py", line 180, in _eval
    return render(ob, econtext.vars)
  File "C:\Program Files\Plone
2\Zope\lib\python\Products\PageTemplates\Expressions.py", line 85, in render
    ob = ob()
  File "C:\Program Files\Plone 2\Data\Products\CMFPlone\browser\plone.py",
line 66, in globalize
    self._initializeData(options=options)
  File "C:\Program Files\Plone 2\Data\Products\CMFPlone\browser\plone.py",
line 127, in _initializeData
    self._data['portal_tabs'] = 
portal_tabs_view.topLevelTabs(actions=actions)
  File "C:\Program Files\Plone
2\Data\Products\CMFPlone\browser\navigation.py", line 257, in topLevelTabs
    if not (excludedIds.has_key(item.getId) or item.exclude_from_nav):
AttributeError: exclude_from_nav
 
-- 
View this message in context: 
http://www.nabble.com/Recover-data-from-data.fs-after-botched-upgrade--tf4308815s15482.html#a12266285
Sent from the Installation, Setup, Upgrades mailing list archive at Nabble.com.


_______________________________________________
Setup mailing list
[email protected]
http://lists.plone.org/mailman/listinfo/setup

Reply via email to