mytardis-app-atom: question about turning on filters.

11 views
Skip to first unread message

Nick May

unread,
Oct 18, 2013, 1:37:29 AM10/18/13
to tardis...@googlegroups.com
Hi,

I've installed the atom ingest app and the data files are being ingested successfully.
When I set the option 'USE_MIDDLEWARE_FILTERS = True', I get the a message that 'settings.FILTER_MIDDLEWARE' is missing.
What should this attribute look like

Cheers,
Nick.

Steve Androulakis

unread,
Oct 18, 2013, 1:48:16 AM10/18/13
to tardis...@googlegroups.com
Hi,

Looks like a RMIT-specific / Steve Bennett specific change that isn't in the core codebase.


Hope that helps in the search for an answer!

Steve


--
You received this message because you are subscribed to the Google Groups "tardis-devel" group.
To unsubscribe from this group and stop receiving emails from it, send an email to tardis-devel...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.

Nick May

unread,
Oct 18, 2013, 2:16:59 AM10/18/13
to tardis...@googlegroups.com
Thanks Steve,

Unfortunately, I can't find anything that tells me what value this attribute should have and---being a python novice---I can't work out what it should be from atom_ingest.py.

Does anyone have an example value for this attribute? such as for the wordcount filter. 

Cheers,
Nick.

Steve Androulakis

unread,
Oct 18, 2013, 2:25:18 AM10/18/13
to tardis...@googlegroups.com
Hi Nick,

This was linked from the wordcount guide I wrote:

#Post Save Filters
POST_SAVE_FILTERS = [
   ("tardis.tardis_portal.filters.wordcount.make_filter",
    ["WORDCOUNT", "http://example.com/wordcount"]),  # wordcount filter for mss
   #("tardis.tardis_portal.filters.example.make_filter",
   # ["EXAMPLE", "http://example.com/example"]),  # (another filter)
]

BUT this looks like a completely different attribute to FILTER_MIDDLEWARE.
I googled FILTER_MIDDLEWARE mytardis and got https://confluence-vre.its.monash.edu.au/display/CVL/MyTardis+Server+Migration+-+August+2013
I didn't have anything to do with this page, but it's recent and lists:
FILTER_MIDDLEWARE = (("tardis.tardis_portal.filters", "FilterInitMiddleware"),)
So maybe try that..
Thanks,
Steve


--

Steve Bennett

unread,
Oct 18, 2013, 2:29:18 AM10/18/13
to tardis...@googlegroups.com
Hi guys,
  I don't know much about either this atom-ingest app setting, or the apparently missing settings.py.

Just wanted to reiterate that I'd love to get this fork merged.

Nick, which version of mytardis-app-atom did you install? From my github?

Steve

Nick May

unread,
Oct 18, 2013, 3:28:34 AM10/18/13
to tardis...@googlegroups.com
I installed from https://github.com/stevage/mytardis-app-atom.
Adding the attribute from the example that Steve found has worked. But I'm now getting another error.
I'd be grateful if we have a look at this the next time you're in RMIT---after e-Research Aus. conference.

The setting appears to duplicate MIDDLEWARE_CLASSES.

eg. these are in the example:

MIDDLEWARE_CLASSES = MIDDLEWARE_CLASSES + ('tardis.tardis_portal.filters.FilterInitMiddleware',)

FILTER_MIDDLEWARE = (("tardis.tardis_portal.filters", "FilterInitMiddleware"),)

Cheers,

Nick.


You received this message because you are subscribed to a topic in the Google Groups "tardis-devel" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/tardis-devel/4txylgN-kQQ/unsubscribe.
To unsubscribe from this group and all its topics, send an email to tardis-devel...@googlegroups.com.
Reply all
Reply to author
Forward
0 new messages