From: | Radoslaw Garbacz <radoslaw(dot)garbacz(at)xtremedatainc(dot)com> |
---|---|
To: | pgadmin-hackers <pgadmin-hackers(at)lists(dot)postgresql(dot)org> |
Subject: | 'render_template' server_type/version resolution |
Date: | 2020-02-28 20:26:18 |
Message-ID: | CAHBw7oT+50c1+Ns_Yy-x2S6r49Y_iqz_G22NdheWpgzqAjfLHw@mail.gmail.com |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgadmin-hackers |
Hi,
I have a question regarding templates resolution from subdirectories based
on server version (and type) for 'SQL' templates (e.g. for
"get_encodinds.sql" in
"web/pgadmin/browser/server_groups/servers/databases/").
I created a subdirectory matching my pg like db version:
"web/pgadmin/browser/server_groups/servers/databases/templates/databases/sql/8.1_plus".
I have also a specific subdir for "server_type_version" (.../dbx_8.1_plus),
however the server does not seem to be able to find it, and always defaults
to ".../templates/databases/sql/default".
When debugging, I get "self.template_path" as "databases/sql/#80102#"
(server_type: "dbx", however it's not used for "get_encodings").
So, I'd be grateful to hear how to make it find my modified
"get_encodings.sql"?
BTW: Is it OK if the directory is a link?
--
Best Regards,
Radoslaw Garbacz
XtremeData Incorporated
From | Date | Subject | |
---|---|---|---|
Next Message | Charles Wang | 2020-02-28 23:51:03 | OpenStreetMap not showing in geometry viewer |
Previous Message | fred.escallier | 2020-02-28 17:32:57 | Re: Translators: Release next week |