Menu

Block.setHostsMask missing

Zeph
2012-06-12
2012-12-11
  • Zeph

    Zeph - 2012-06-12

    Hi,

    In 1.6.3 I found that block does not have the function setHostsMask anymore… Is that correct?

     
  • Timur Hairulin

    Timur Hairulin - 2012-06-12

    Hi.
    It is incorrect. I missed it when switching from pyaf binary module to JSON.

    But now with JSON it is very easy to create them.
    Just copy this lines from job class to block:

    def setHostsMask(        self, value):
    if checkRegExp(value): self.data = value
    def setHostsMaskExclude( self, value):
    if checkRegExp(value): self.data = value

    I've noticed it too late. And even not me, other users that use custom submissions, as there is no such submission script in cgru uses that function. It is fixed already.
    https://github.com/CGRU/cgru/blob/master/afanasy/python/af.py

    If you very need to have some linux packages i can create them, there is a script in project that builds them, so it is not a big deal.

    Or just wait the next release.

     

Log in to post a comment.