29 |
|
""" |
30 |
|
check if [USER].publish_data_name contains not allowed slash |
31 |
|
""" |
32 |
+ |
import re |
33 |
|
|
34 |
< |
if (str(ProcessedDataset).find("/") > -1): |
35 |
< |
raise CrabException("Warning: [USER] publication_data_name contains a '/' characters that is not allowed. Please change the publication_data_name value") |
34 |
> |
#if (str(ProcessedDataset).find("/") > -1): |
35 |
> |
# raise CrabException("Warning: [USER] publication_data_name contains a '/' characters that is not allowed. Please change the publication_data_name value") |
36 |
> |
m = re.findall("[^-\w_\.%]+", str(ProcessedDataset)) |
37 |
> |
if (m != []): |
38 |
> |
common.logger.debug("check not allowed characters in the publication_data_name = " + str(m)) |
39 |
> |
raise CrabException("Warning: [USER] publication_data_name contains not allowed characters %s . Please change the publication_data_name value" % str(m)) |
40 |
|
|
41 |
|
def checkLength(lfnbase, forced_path, PrimaryDataset, ProcessedDataset): |
42 |
|
""" |