X-Git-Url: http://matita.cs.unibo.it/gitweb/?a=blobdiff_plain;f=helm%2Fsoftware%2Fdaemons%2Fwhelp%2FsearchEngine.ml;h=533e9df120a5261252d0503c3bb18fec3a8fdb34;hb=2cc4eb5d0210be58286e028278852122dcb68052;hp=924f69a7692196b845171c70fd7a917b6ee23c0a;hpb=482b253669956d149dd6edd06d5421915f27b6c1;p=helm.git diff --git a/helm/software/daemons/whelp/searchEngine.ml b/helm/software/daemons/whelp/searchEngine.ml index 924f69a76..533e9df12 100644 --- a/helm/software/daemons/whelp/searchEngine.ml +++ b/helm/software/daemons/whelp/searchEngine.ml @@ -37,7 +37,7 @@ exception Invalid_action of string (* invalid action for "/search" method *) exception Not_a_MutInd let daemon_name = "Whelp" -let configuration_file = "/projects/helm/etc/whelp.conf.xml" +let configuration_file = "searchEngine.conf.xml" let placeholders = [ "ACTION"; "ADVANCED"; "ADVANCED_CHECKED"; "CHOICES"; "CURRENT_CHOICES"; @@ -373,7 +373,7 @@ let exec_action dbd (req: Http_types.request) outchan = | "/match" -> Whelp.match_term ~dbd term | "/instance" -> Whelp.instance ~dbd term | "/hint" -> - let status = ProofEngineTypes.initial_status term metasenv in + let status = ProofEngineTypes.initial_status term metasenv [] in let intros = PrimitiveTactics.intros_tac () in let subgoals = ProofEngineTypes.apply_tactic intros status in (match subgoals with @@ -507,11 +507,10 @@ let _ = flush stdout; Unix.putenv "http_proxy" ""; let dbd () = - HMysql.quick_connect - ~host:(Helm_registry.get "db.host") - ~database:(Helm_registry.get "db.database") - ~user:(Helm_registry.get "db.user") - () + let dbd = LibraryDb.instance () in + MetadataTypes.ownerize_tables "searchEngine"; + LibraryDb.create_owner_environment (); + dbd in restore_environment (); read_notation ();