EPrints Technical Mailing List Archive
See the EPrints wiki for instructions on how to join this mailing list and related information.
Message: #08082
< Previous (by date) | Next (by date) > | < Previous (in thread) | Next (in thread) > | Messages - Most Recent First | Threads - Most Recent First
Re: [EP-tech] User Roles
- To: "Newman D.R." <drn@ecs.soton.ac.uk>
- Subject: Re: [EP-tech] User Roles
- From: James Kerwin <jkerwin2101@gmail.com>
- Date: Thu, 16 Jan 2020 11:59:27 +0000
Hi David,
Thanks for this. As it happens I was heavily borrowing from the DataCite plugin because it seems to have a bit of everything in it. The only obvious difference I can see between that and mine (beyond the overall quality and programming ability) is the roles, but I was (and still am) convinced that the roles were for the appearance of the minting button.
I would have thought that, if I'd made an error in my code, the server would refuse to show me any EPrints pages after a restart until I'd fixed it. Perhaps Events work differently.
Thanks,
James
On Thu, Jan 16, 2020 at 8:50 AM Newman D.R. <drn@ecs.soton.ac.uk> wrote:
Hi James,
The DataCiteDOI Bazaar plugin contains an Event plugin that it used to calls DataCite to coin (mint) a DOI. This sounds like it would be doing a similar thing to posting some (I think) JSON to generate a tweet:
http://bazaar.eprints.org/1100/
Regards
David Newman
On 16/01/2020 08:39, Adam Field via Eprints-tech wrote:
Is it in github? Can you link me to the code?
On 16 Jan 2020 08:31, James Kerwin via Eprints-tech <eprints-tech@ecs.soton.ac.uk> wrote:
Hi All,
I rewrote my twitter bot using a different Perl module as it wasn't working how I wanted it to (failed with "special characters").
It worked when I rewrote it as a .pl in cfg.d. I then decided to rewrite it as an Event plugin as this seems like the "proper" way to do things. Unfortunately, it doesn't work.
I can see that it gets added to the indexer and it subsequently fails.
One possible reason it fails is that I don't have any user roles set up for it. For an event plugin, do I need user roles to be set up?
I've tried to look at documentation for other plugins, but they also involve a "Screen" plugin which is what I assume the user roles are for. My plugin just uses the status change trigger to compile and send a tweet.
Any pointers greatly appreciated.
Thanks,James
*** Options: http://mailman.ecs.soton.ac.uk/mailman/listinfo/eprints-tech *** Archive: http://www.eprints.org/tech.php/ *** EPrints community wiki: http://wiki.eprints.org/ *** EPrints developers Forum: http://forum.eprints.org/
- Follow-Ups:
- Re: [EP-tech] User Roles
- From: James Kerwin <jkerwin2101@gmail.com>
- Re: [EP-tech] User Roles
- References:
- Re: [EP-tech] User Roles
- From: adam@adamfield.net
- Re: [EP-tech] User Roles
- From: James Kerwin <jkerwin2101@gmail.com>
- Re: [EP-tech] User Roles
- Prev by Date: Re: [EP-tech] User Roles
- Next by Date: Re: [EP-tech] User Roles
- Previous by thread: [EP-tech] EPrints/CRIS
- Next by thread: [EP-tech] DOI handling in orcid_support_advance
- Index(es):