Filename handling for resends

43 views
Skip to first unread message

David

unread,
May 23, 2013, 9:32:39 AM5/23/13
to bots...@googlegroups.com
Hi,

I'm passing through some files without changing the filenames, out channel just uses {infile} as its filename which works perfectly. Unless there is an error on the send, then as the file gets renamed to just a number in the temp storage and the original name is lost the out channel picks up the 'new' name not the original one.

What is the best way round this?
Can we use botskey from an incoming communication script and use {botskey} instead of {infile} in the out channel or can it only be set from grammar or mapping script?

Thanks

David




henk-jan ebbers

unread,
May 23, 2013, 1:31:37 PM5/23/13
to bots...@googlegroups.com
this is in a resend, or receive?

kind regards,
henk-jan
> --
> You received this message because you are subscribed to the Google Groups "Bots Open Source EDI Translator" group.
> To unsubscribe from this group and stop receiving emails from it, send an email to botsmail+u...@googlegroups.com.
> For more options, visit https://groups.google.com/groups/opt_out.
>
>

David

unread,
May 24, 2013, 3:50:50 AM5/24/13
to bots...@googlegroups.com
Resends. Not sure what would happen in receives but I presume the same.

Regards

David

henk-jan ebbers

unread,
May 24, 2013, 5:53:58 AM5/24/13
to bots...@googlegroups.com
will check what happens.

kind regards,
henk-jan
> > To unsubscribe from this group and stop receiving emails from it, send an email to botsmail+u...@googlegroups.com <javascript:>.
> > For more options, visit https://groups.google.com/groups/opt_out <https://groups.google.com/groups/opt_out>.

henk-jan ebbers

unread,
May 24, 2013, 6:29:19 AM5/24/13
to bots...@googlegroups.com
yes, I see what happens.
Will check this weekend if I can fix this.

kind regards,
henk-jan

On 05/24/2013 09:50 AM, David wrote:
> > To unsubscribe from this group and stop receiving emails from it, send an email to botsmail+u...@googlegroups.com <javascript:>.
> > For more options, visit https://groups.google.com/groups/opt_out <https://groups.google.com/groups/opt_out>.

henk-jan ebbers

unread,
May 24, 2013, 10:08:55 AM5/24/13
to bots...@googlegroups.com
for resends:
in communication.py, around line 647
was:
infilename = infilestr(os.path.basename(ta_list[0].filename))
should get:
infilename = infilestr(os.path.basename(ta_list[-1].filename))

hope this helps,

henk-jan

On 05/24/2013 09:50 AM, David wrote:
> > To unsubscribe from this group and stop receiving emails from it, send an email to botsmail+u...@googlegroups.com <javascript:>.
> > For more options, visit https://groups.google.com/groups/opt_out <https://groups.google.com/groups/opt_out>.

David

unread,
May 24, 2013, 10:39:06 AM5/24/13
to bots...@googlegroups.com
Yep, that seems to fix it.

Thanks

David
Reply all
Reply to author
Forward
0 new messages