Hi,

Thank you for your reply. I just realised I misunderstood what
INavigatonContributor does. And my new question is how can I add a new
action to tickets? But I'm not even sure if adding a new action would be a
solution in this case.
I'm also trying to understand how the Href class works, but I don't know
how can I use it to send data about the resource's type and its id/name to
my api.

Thanks,
Antonia


On Thu, Aug 1, 2013 at 1:50 AM, Ryan Ollos <[email protected]> wrote:

> ---------- Forwarded message ----------
> From: Antonia Horincar <[email protected]>
> Date: Wed, Jul 31, 2013 at 3:33 PM
> Subject: [GSoC - Embeddable Objects] INavigationContributor error
> To: [email protected]
>
>
> Hi devs,
>
> I encountered a problem when using INavigationContributor. I am trying to
> use it in order to add an 'Embed' button to objects. For now, it would
> simply point to a page that shows the information retrieved about that
> specific object. However, after adding INavigationContributor to the class
> EmbeddingSystem, I get a warning: Error with navigation contributor
> "EmbeddingSystem". This happens even if I don't add the methods belonging
> to INavigationContributor, and I just add the interface to the ones
> implemented in EmbeddingSystem. How can I find out why do I get this error?
>
> Thanks,
> Antonia
>
> You'll may see that error if you add the interface to the class [e.g.
> implements(INavigationContributor)], but don't add the interface methods.
> Could it be something straightforward, such as you methods not having the
> correct signature or return type?
>
> For the quick testing I did, I was able to reproduce that error by changing
> the method name, signature or return type of the method: `def
> get_navigation_items(self, req):`
>
>
> http://www.edgewall.org/docs/branches-1.0-stable/html/api/trac_web_chrome.html
>

Reply via email to