Skip to content

Commit

Permalink
773 destfnscript syntax in configs doesnt work like other flowcb plug…
Browse files Browse the repository at this point in the history
…ins (#776)

reviewed collectively and approved.

* fix #773 so it does the same sort of class name comparison as callback

* second pass, simplified at #773
  • Loading branch information
petersilva authored Oct 16, 2023
1 parent 3e1a4bd commit 143b30a
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion sarracenia/flow/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -714,7 +714,8 @@ def sundew_getDestInfos(self, msg, currentFileOption, filename):
elif re.compile('DESTFNSCRIPT=.*').match(spec):
scriptclass = spec[13:].split('.')[-1]
for dfm in self.plugins['destfn']:
if scriptclass == dfm.__qualname__.split('.')[0] :
classname = dfm.__qualname__.split('.')[0]
if (scriptclass == classname) or (scriptclass.capitalize() == classname):
destFileName = dfm(msg)
elif spec == 'TIME':
timeSuffix = ':' + time.strftime("%Y%m%d%H%M%S", time.gmtime())
Expand Down

0 comments on commit 143b30a

Please sign in to comment.