pyblish / pyblish-base

Pyblish base library - see https://github.com/pyblish/pyblish for details.
Other
127 stars 59 forks source link

Context naming #126

Open tokejepsen opened 10 years ago

tokejepsen commented 10 years ago

When validating a context the name is not present in the log;

--------------------------------------------------------------------------------
pyblish version 1.0.10
--------------------------------------------------------------------------------

User Configuration @ None

Available plugin paths:
    - \\bumpyboxnas\bumpybox\tools\pyblish\pyblish\plugins
    - C:\Users\admin\Desktop
    - \\bumpyboxnas\bumpybox\tools\pyblish-bumpybox\pyblish_bumpybox\plugins
    - \\bumpyboxnas\bumpybox\tools\pyblish-modo\pyblish_modo\plugins
    - \\bumpyboxnas\bumpybox\tools\pyblish-bumpybox\pyblish_bumpybox\plugins\modo

Available plugins:
    - SelectAll
    - SelectCurrentDate
    - SelectCurrentFile
    - SelectCurrentUser
    - SelectCurrentWorkingDirectory
    - ValidateFilename                             filename
    - ValidateNamingConvention                     demo.model

--------------------------------------------------------------------------------
Processing

                Thu Oct 23 00:53:33 2014  Info      

                Thu Oct 23 00:53:33 2014  Info      SelectAll...
                Thu Oct 23 00:53:33 2014  Info      

                Thu Oct 23 00:53:33 2014  Info      SelectCurrentFile...
                Thu Oct 23 00:53:33 2014  Info      

                Thu Oct 23 00:53:33 2014  Info      SelectCurrentDate...
                Thu Oct 23 00:53:33 2014  Info      

                Thu Oct 23 00:53:33 2014  Info      SelectCurrentWorkingDirectory...
                Thu Oct 23 00:53:33 2014  Info      

                Thu Oct 23 00:53:33 2014  Info      SelectCurrentUser...
                Thu Oct 23 00:53:33 2014  Info      

                Thu Oct 23 00:53:33 2014  Info      ValidateFilename...
                Thu Oct 23 00:53:33 2014  Info      

                Thu Oct 23 00:53:33 2014  Info          ERROR    Could not process context: [pyblish.plugin.Instance('all')]

                Thu Oct 23 00:53:33 2014  Info          WARNING  There were errors:

                Thu Oct 23 00:53:33 2014  Info          ERROR        None: Filename incorrect! 

                Thu Oct 23 00:53:33 2014  Info      ValidateNamingConvention...
                Thu Oct 23 00:53:33 2014  Info      

                Thu Oct 23 00:53:33 2014  Info          ERROR    Validation failed

                Thu Oct 23 00:53:33 2014  Info      
These validations failed:
    - "None": Filename incorrect! (ValidateFilename)
                Thu Oct 23 00:53:33 2014  Info      

                Thu Oct 23 00:53:33 2014  Info      

                Thu Oct 23 00:53:33 2014  Info      --------------------------------------------------------------------------------
                Thu Oct 23 00:53:33 2014  Info      

                Thu Oct 23 00:53:33 2014  Info                                                                      Time taken: 0.00
                Thu Oct 23 00:53:33 2014  Info      

                Thu Oct 23 00:53:33 2014  Info      No handlers could be found for logger "root"
mottosso commented 10 years ago

For reference, this is the line being referred to:

These validations failed:
    - "None": Filename incorrect! (ValidateFilename)

Where "None" is the context, as the validator is acting upon that and not an instance which is usually the case.