def generate_site (dbname, files_to_copy, folders_to_copy, search_type_full=True):
# get the configuration
conf = biaweb_db.get_configuration (dbname)
+ # if cannot get configuration
+ if conf == False:
+ return False
+
# get the templates
tpls = biaweb_db.get_templates (dbname)
+ if tpls == False:
+ return False
# get the list of categories
cats = biaweb_db.get_categories (dbname)