Skip to content

Instantly share code, notes, and snippets.

View fulv's full-sized avatar
🇮🇹

Fulvio Casali fulv

🇮🇹
  • Soliton Consulting
  • San Diego, CA, USA
View GitHub Profile
@fulv
fulv / buildout.cfg
Created May 21, 2014 21:01
buildout for mockup issue #374
############################################
#
# Buildout Configuration File for Plone
# -------------------------------------
#
# ALWAYS back up all Plone/Zope data and components
# before changing configuration.
#
# Running "bin/buildout" will update your installation,
# installing missing components as necessary.
> bin/test -s plonesocial.network
Test-module import failures:
Module: src.plonesocial.network.plonesocial.network.tests.test_graph
ImportError: No module named src.plonesocial.network.plonesocial.network.tests.test_graph
Module: src.plonesocial.network.plonesocial.network.tests.test_setup
# fulvio@Soliton13 (origin:plone5 * u=) ~/python/plone/clients/ploneintranet/ploneintranet.suite.plone5/src/plonesocial.network
> python bootstrap.py -v 2.2.1
While:
Initializing.
Error: The specified download cache:
'/Users/fulvio/python/plone/clients/ploneintranet/ploneintranet.suite.plone5/src/plonesocial.network/buildout-cache/downloads'
Doesn't exist.
@fulv
fulv / gist:03a43c4989c7e413cf94
Created November 5, 2014 15:31
configure.zcml
<configure
xmlns="http://namespaces.zope.org/zope"
xmlns:five="http://namespaces.zope.org/five"
xmlns:i18n="http://namespaces.zope.org/i18n"
xmlns:genericsetup="http://namespaces.zope.org/genericsetup"
xmlns:cmf="http://namespaces.zope.org/cmf"
i18n_domain="plonesocial.network">
<five:registerPackage package="." initialize=".initialize" />
<i18n:registerTranslations directory="locales" />
diff --git a/plonesocial/network/Extensions/Install.py b/plonesocial/network/Extensions/Install.py
new file mode 100644
index 0000000..af15c80
--- /dev/null
+++ b/plonesocial/network/Extensions/Install.py
@@ -0,0 +1,7 @@
+from Products.CMFCore.utils import getToolByName
+
+
+def uninstall(self, reinstall=False):
// page init
jQuery(function(){
initCustomForms();
initTouchNav();
initCarousel();
initOpenClose();
initAccordion();
initMobileNav();
initBackgroundResize();
initSameHeight();
@fulv
fulv / gist:3114114
Created July 15, 2012 00:30
buildout error: known good Plone 3 buildout ignores fake-eggs
Installing 'mr.developer<1.10', 'buildout.dumppickedversions'.
We have the distribution that satisfies 'mr.developer==1.0'.
We have the distribution that satisfies 'buildout.dumppickedversions==0.4'.
Getting required 'elementtree==1.2.7-20070827-preview'
We have the distribution that satisfies 'elementtree==1.2.7-20070827-preview'.
mr.developer: Switching 'collective.formcriteria' with subversion.
mr.developer: Switching 'collective.gsqi' with subversion.
mr.developer: Skipped checkout of existing package 'collective.xdv'.
mr.developer: Switching 'travelpdx.plone' with subversion.
mr.developer: Skipped checkout of existing package 'travelpdx.simpleview'.
@fulv
fulv / gist:0dbbf9395d2d8e9d02f6
Last active October 10, 2015 15:23
ploneconf.site setuphandlers
2015-10-10 15:14:28 ERROR Zope.SiteErrorLog 1444490068.950.870257499864 http://localhost:8080/Plone/portal_quickinstaller/reinstallProducts
Traceback (innermost last):
Module ZPublisher.Publish, line 138, in publish
Module ZPublisher.mapply, line 77, in mapply
Module Products.PDBDebugMode.runcall, line 70, in pdb_runcall
Module ZPublisher.Publish, line 48, in call_object
Module <string>, line 6, in reinstallProducts
Module AccessControl.requestmethod, line 70, in _curried
Module Products.CMFQuickInstallerTool.QuickInstallerTool, line 786, in reinstallProducts
Module Products.CMFQuickInstallerTool.QuickInstallerTool, line 686, in installProducts
@fulv
fulv / setuplanguages.py
Created November 20, 2012 04:44
migrate I18NFolders
from Products.CMFCore.utils import getToolByName
from Acquisition import aq_parent, aq_inner
def setup(self):
result = []
setterupper = SetupFolders(self)
result.extend(setterupper.setup())
result.extend(setterupper.dfs(self))
result.extend(setterupper.linkGlobalTranslations())
return '\n'.join(result)
[theme]
title = plonetheme.tango
description = An example diazo theme
rules = /++theme++plonetheme.tango/rules.xml
prefix = /++theme++plonetheme.tango
doctype = <!DOCTYPE html>
enabled-bundles =
disabled-bundles =
development-css = /++theme++plonetheme.tango/css/main.less