EPrints Technical Mailing List Archive
Message: #08086
< Previous (by date) | Next (by date) > | < Previous (in thread) | Next (in thread) > | Messages - Most Recent First | Threads - Most Recent First
[EP-tech] Antwort: Re: User Roles
- To: <eprints-tech@ecs.soton.ac.uk>, James Kerwin <jkerwin2101@gmail.com>
- Subject: [EP-tech] Antwort: Re: User Roles
- From: <martin.braendle@uzh.ch>
- Date: Thu, 16 Jan 2020 14:17:34 +0100
Hi James,
interesting idea. What is the motivation and what do you expect from posting 6000 tweets anually from UoL repo?
Kind regards,
Martin
"James Kerwin via Eprints-tech" ---16.01.2020 12:58:41---Hi Adam, I don't usually use GitHub, but I've given myself a refresher /crash course.
Von: "James Kerwin via Eprints-tech" <eprints-tech@ecs.soton.ac.uk>
An: adam@adamfield.net
Kopie: eprints-tech@ecs.soton.ac.uk
Datum: 16.01.2020 12:58
Betreff: Re: [EP-tech] User Roles
Gesendet von: <eprints-tech-bounces@ecs.soton.ac.uk>
Hi Adam,
I don't usually use GitHub, but I've given myself a refresher /crash course.
https://github.com/jkerwin22/uolrepo_test/tree/master/cfg/plugins/EPrints/Plugin/Event
https://github.com/jkerwin22/uolrepo_test/blob/master/cfg/cfg.d/twitter_v2_2.pl
I've included a "sub bish" in the TwitterEvent.pm which was to test if this file was being reached at all, with the hope that it would add a unique/nonsense string to my error log. This didn't work.
Whatever mistake I've made, it must be incredibly basic. I was under no illusion that the plugin would be correct first time (it's almost certainly got errors), but I would expect the nonsense text to reach the error log so I can at least know that it's trying to run my script.
Thanks,
James
On Thu, Jan 16, 2020 at 8:39 AM <adam@adamfield.net> 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
*** Archive: http://www.eprints.org/tech.php/
*** EPrints community wiki: http://wiki.eprints.org/
*** EPrints developers Forum: http://forum.eprints.org/
- Follow-Ups:
- [EP-tech] Antwort: Re: User Roles
- From: <martin.braendle@uzh.ch>
- [EP-tech] Antwort: Re: User Roles
- References:
- Re: [EP-tech] User Roles
- From: adam@adamfield.net
- Re: [EP-tech] User Roles
- From: James Kerwin <jkerwin2101@gmail.com>
- [EP-tech] Antwort: Re: User Roles
- From: <martin.braendle@uzh.ch>
- 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] Sort view with creators_name and corp_creators
- Index(es):