Ticket #8737 (closed Bug: fixed)

Opened 5 years ago

Last modified 5 years ago

AttributeError: getRefs with plone.app.iterate 1.2.2 on plone site root

Reported by: vincentfretin Owned by:
Priority: major Milestone: 3.3
Component: Working copy support (Iterate) Version:
Keywords: Cc: nouri

Description

Hey nouri,

sorry to disturb you, but I have the following error "AttributeError: getRefs" with plone.app.iterate 1.2.2. It happens only on the Plone Site root.

Possible lead, in version 1.1.5, The context.getReferences method was used, now in 1.2.2, it's context.getRefs. I don't know if there is a difference.

Change History

comment:1 Changed 5 years ago by vincentfretin

I changed to getReferences, AttributeError too. So for now I use:

def is_checkout(self):

context = aq_inner(self.context)

if hasattr(context, 'getRefs'):

refs = context.getRefs(WorkingCopyRelation.relationship)

if len(refs):

return True

else:

return False

else:

return False

Do you have a better solution?

comment:2 Changed 5 years ago by nouri

  • Status changed from new to closed
  • Resolution set to fixed

It's fixed in 1.2.3. Don't you dare to submit another bug report!!

(Just kidding... ;-)

comment:3 Changed 5 years ago by hannosch

  • Milestone changed from 3.x to 3.3
Note: See TracTickets for help on using tickets.