[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[EP-tech] User Roles
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/<https://eur03.safelinks.protection.outlook.com/?url=http%3A%2F%2Fbazaar.eprints.org%2F1100%2F&data=01%7C01%7C%7C55ba6c82373d428744b108d79a612eff%7C4a5378f929f44d3ebe89669d03ada9d8%7C0&sdata=8TZoBkNN2wjMlXuOND1KzfgNDiKw0qPO0pYfUTiDNPc%3D&reserved=0>
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 at ecs.soton.ac.uk><mailto:eprints-tech at 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/<https://eur03.safelinks.protection.outlook.com/?url=http%3A%2F%2Fwww.eprints.org%2Ftech.php%2F&data=01%7C01%7C%7C55ba6c82373d428744b108d79a612eff%7C4a5378f929f44d3ebe89669d03ada9d8%7C0&sdata=KSvcJF0gxg8ud5jlmnY56r5HCysEx%2FqnjJevxu2rDcw%3D&reserved=0>
*** EPrints community wiki: http://wiki.eprints.org/<https://eur03.safelinks.protection.outlook.com/?url=http%3A%2F%2Fwiki.eprints.org%2F&data=01%7C01%7C%7C55ba6c82373d428744b108d79a612eff%7C4a5378f929f44d3ebe89669d03ada9d8%7C0&sdata=yNWkTfKUug1MADfn5zFiHTL7E3Z84ox%2BDMzcfOlpkNs%3D&reserved=0>
*** EPrints developers Forum: http://forum.eprints.org/<https://eur03.safelinks.protection.outlook.com/?url=http%3A%2F%2Fforum.eprints.org%2F&data=01%7C01%7C%7C55ba6c82373d428744b108d79a612eff%7C4a5378f929f44d3ebe89669d03ada9d8%7C0&sdata=BybP4zlvdLsKhzdVo0irfPlaKfygd4nXJ30NVaCZy8U%3D&reserved=0>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://mailman.ecs.soton.ac.uk/pipermail/eprints-tech/attachments/20200116/cad0ca97/attachment-0001.html