Skip to content

Instantly share code, notes, and snippets.

@ivanteoh
ivanteoh / whitelist1.txt
Created October 15, 2015 06:11
stack trace for write on read in tick_and_dispatch request https://github.com/collective/collective.dancing/issues/24
==================================================================================================================================================================
DB write to <zc.queue._queue.BucketQueue object at 0x110611c80> (0x1fc3) from "/eggs/zc.queue-1.3-py2.7.egg/zc/queue/_queue.py", line 23
==================================================================================================================================================================
File "/eggs/Zope2-2.13.15-py2.7.egg/ZPublisher/Publish.py", line 126, in publish
request, bind=1)
File "/eggs/Zope2-2.13.15-py2.7.egg/ZPublisher/mapply.py", line 77, in mapply
if debug is not None: return debug(object,args,context)
File "/eggs/Zope2-2.13.15-py2.7.egg/ZPublisher/Publish.py", line 46, in call_object
result=apply(object,args) # Type s<cr> to step into published object.
File "/collective.dancing/collective/dancing/browser/utils.py", line 45, in tick_and_dispatch
@ivanteoh
ivanteoh / Plone4.1.txt
Last active October 14, 2015 07:55
stack trace for collective.singing issue #4 https://github.com/collective/collective.singing/issues/4
...
/collective.dancing/collective/dancing/browser/channel.py(183)contents()
-> return ManageChannelsForm(self.context.channels, self.request)()
/z3c.form-2.5.1-py2.7.egg/z3c/form/form.py(215)__call__()
-> self.update()
/plone.z3cform-0.7.8-py2.7.egg/plone/z3cform/crud/crud.py(389)update()
-> editform.update()
/plone.z3cform-0.7.8-py2.7.egg/plone/z3cform/crud/crud.py(232)update()
-> super(EditForm, self).update()
/z3c.form-2.5.1-py2.7.egg/z3c/form/form.py(210)update()

Keybase proof

I hereby claim:

  • I am ivanteoh on github.
  • I am ivanteoh (https://keybase.io/ivanteoh) on keybase.
  • I have a public key whose fingerprint is B471 F796 7FAA 0C4A AED6 3240 910B DC5C E590 DEB1

To claim this, I am signing this object:

@ivanteoh
ivanteoh / EloquentJS_SE0201.js
Last active May 26, 2019 19:38
My answer for exercise in Eloquent JavaScript Second Edition
/*
My answer for exercise 'Looping a triangle'
in Eloquent JavaScript Second Edition
Chapter 2 Program Structure
*/
var note = '';
for (var i = 0; i < 7; i++) {
console.log(note += '#');
}
2014-05-22T13:36:22 ERROR Zope.SiteErrorLog 1400729782.950.200433495758 https://localhost:8080/Plone/listingviews_controlpanel/statusmessage_load/@@edit
Traceback (innermost last):
Module ZPublisher.Publish, line 138, in publish
Module ZPublisher.mapply, line 77, in mapply
Module ZPublisher.Publish, line 48, in call_object
Module plone.z3cform.layout, line 66, in __call__
Module plone.z3cform.layout, line 50, in update
Module plone.z3cform.fieldsets.extensible, line 59, in update
Module plone.z3cform.patch, line 30, in GroupForm_update
Module z3c.form.group, line 128, in update
@ivanteoh
ivanteoh / demo.xml
Last active August 29, 2015 14:01
plomino database
<plominodatabase id="demo">
<design>
<dbsettings version="1.18">
<AboutDescription type="Products.Archetypes.Field.TextField"><![CDATA[]]></AboutDescription>
<UsingDescription type="Products.Archetypes.Field.TextField"><![CDATA[]]></UsingDescription>
<IndexAttachments type="Products.Archetypes.Field.BooleanField">False</IndexAttachments>
<FulltextIndex type="Products.Archetypes.Field.BooleanField">True</FulltextIndex>
<IndexInPortal type="Products.Archetypes.Field.BooleanField">False</IndexInPortal>
<debugMode type="Products.Archetypes.Field.BooleanField">False</debugMode>
<CountDocuments type="Products.Archetypes.Field.BooleanField">False</CountDocuments>
@ivanteoh
ivanteoh / Traceback
Created April 23, 2014 03:19
Page number traceback
Traceback (innermost last):
Module ZPublisher.Publish, line 126, in publish
Module ZPublisher.mapply, line 77, in mapply
Module ZPublisher.Publish, line 46, in call_object
Module collective.listingviews.browser.views.listing_view, line 18, in __call__
Module collective.listingviews.browser.views.listing_view, line 15, in render
Module Products.Five.browser.pagetemplatefile, line 125, in __call__
Module Products.Five.browser.pagetemplatefile, line 59, in __call__
Module zope.pagetemplate.pagetemplate, line 113, in pt_render
Module zope.tal.talinterpreter, line 271, in __call__
@ivanteoh
ivanteoh / demo.xml
Created February 3, 2014 00:05
plomino database to test dynamic picklist.
<plominodatabase id="demo">
<design>
<dbsettings version="1.18">
<AboutDescription type="Products.Archetypes.Field.TextField"><![CDATA[]]></AboutDescription>
<UsingDescription type="Products.Archetypes.Field.TextField"><![CDATA[]]></UsingDescription>
<IndexAttachments type="Products.Archetypes.Field.BooleanField">False</IndexAttachments>
<FulltextIndex type="Products.Archetypes.Field.BooleanField">True</FulltextIndex>
<IndexInPortal type="Products.Archetypes.Field.BooleanField">False</IndexInPortal>
<debugMode type="Products.Archetypes.Field.BooleanField">False</debugMode>
<CountDocuments type="Products.Archetypes.Field.BooleanField">False</CountDocuments>
@ivanteoh
ivanteoh / adb.xml
Created October 8, 2013 05:10
Calender widget does not save time zone value
<plominodatabase id="adb">
<design>
<dbsettings version="1.16">
<AboutDescription type="Products.Archetypes.Field.TextField"><![CDATA[]]></AboutDescription>
<UsingDescription type="Products.Archetypes.Field.TextField"><![CDATA[]]></UsingDescription>
<IndexAttachments type="Products.Archetypes.Field.BooleanField">False</IndexAttachments>
<FulltextIndex type="Products.Archetypes.Field.BooleanField">True</FulltextIndex>
<IndexInPortal type="Products.Archetypes.Field.BooleanField">False</IndexInPortal>
<debugMode type="Products.Archetypes.Field.BooleanField">False</debugMode>
<CountDocuments type="Products.Archetypes.Field.BooleanField">False</CountDocuments>
@ivanteoh
ivanteoh / Traceback
Created October 1, 2013 08:10
On DatabaseReplication page, 'From an XML File' is not working.
Traceback (innermost last):
Module ZPublisher.Publish, line 126, in publish
Module ZPublisher.mapply, line 77, in mapply
Module ZPublisher.Publish, line 46, in call_object
Module <string>, line 4, in manage_importFromXML
Module AccessControl.requestmethod, line 70, in _curried
Module Products.CMFPlomino.PlominoReplicationManager, line 1384, in manage_importFromXML
Module <string>, line 5, in importFromXML
Module AccessControl.requestmethod, line 70, in _curried
Module Products.CMFPlomino.PlominoReplicationManager, line 1412, in importFromXML