add debug pdb view
This commit is contained in:
parent
4cda3b5b6d
commit
34555d0566
|
@ -53,4 +53,11 @@
|
|||
permission="cmf.ManagePortal"
|
||||
/>
|
||||
|
||||
<browser:view
|
||||
name="pdb"
|
||||
for="Products.CMFPlone.interfaces.IPloneSiteRoot"
|
||||
class=".views.Pdb"
|
||||
permission="cmf.ManagePortal"
|
||||
/>
|
||||
|
||||
</configure>
|
||||
|
|
|
@ -104,3 +104,9 @@ class ListCommissions(UtilityView):
|
|||
l.append(object.absolute_url())
|
||||
self.request.response.setHeader('Content-type', 'application/json')
|
||||
return json.dumps(l)
|
||||
|
||||
|
||||
class Pdb(BrowserView):
|
||||
def __call__(self):
|
||||
import pdb; pdb.set_trace()
|
||||
|
||||
|
|
Reference in New Issue