[pgadmin-hackers] Romanian Translation
Hello, I saw that the Romanian translation of pgAdmin is not up to date. I'm a Romanian developer, and I use every day pgAdmin. Can I contribute on this translation? Thank you, Radu Simen http://graphics.hotmail.com/i.p.emwink.gif"; width=19> just me! _ Climb to the top of the charts! Play the word scramble challenge with star power. http://club.live.com/star_shuffle.aspx?icid=starshuffle_wlmailtextlink_jan
[pgadmin-hackers] SVN Commit by dpage: r7175 - in trunk/pgadmin3: . pgadmin/frm
Author: dpage Date: 2008-03-19 11:28:37 + (Wed, 19 Mar 2008) New Revision: 7175 Revision summary: http://svn.pgadmin.org/cgi-bin/viewcvs.cgi/?rev=7175&view=rev Log: Don't include the -h option when calling pg_dump or pg_restore if there is no hostname to specify. Modified: trunk/pgadmin3/CHANGELOG trunk/pgadmin3/pgadmin/frm/frmBackup.cpp trunk/pgadmin3/pgadmin/frm/frmBackupGlobals.cpp trunk/pgadmin3/pgadmin/frm/frmBackupServer.cpp trunk/pgadmin3/pgadmin/frm/frmRestore.cpp -- Sent via pgadmin-hackers mailing list ([email protected]) To make changes to your subscription: http://www.postgresql.org/mailpref/pgadmin-hackers
[pgadmin-hackers] SVN Commit by dpage: r7176 - in branches/REL-1_8_0_PATCHES/pgadmin3: . pgadmin/frm
Author: dpage Date: 2008-03-19 11:29:52 + (Wed, 19 Mar 2008) New Revision: 7176 Revision summary: http://svn.pgadmin.org/cgi-bin/viewcvs.cgi/?rev=7176&view=rev Log: Don't include the -h option when calling pg_dump or pg_restore if there is no hostname to specify. Modified: branches/REL-1_8_0_PATCHES/pgadmin3/CHANGELOG branches/REL-1_8_0_PATCHES/pgadmin3/pgadmin/frm/frmBackup.cpp branches/REL-1_8_0_PATCHES/pgadmin3/pgadmin/frm/frmBackupGlobals.cpp branches/REL-1_8_0_PATCHES/pgadmin3/pgadmin/frm/frmBackupServer.cpp branches/REL-1_8_0_PATCHES/pgadmin3/pgadmin/frm/frmRestore.cpp -- Sent via pgadmin-hackers mailing list ([email protected]) To make changes to your subscription: http://www.postgresql.org/mailpref/pgadmin-hackers
[pgadmin-hackers] SVN Commit by dpage: r7177 - in branches/REL-1_8_0_EDB/pgadmin3: . pgadmin/frm
Author: dpage Date: 2008-03-19 11:31:33 + (Wed, 19 Mar 2008) New Revision: 7177 Revision summary: http://svn.pgadmin.org/cgi-bin/viewcvs.cgi/?rev=7177&view=rev Log: Don't include the -h option when calling pg_dump or pg_restore if there is no hostname to specify. Modified: branches/REL-1_8_0_EDB/pgadmin3/CHANGELOG branches/REL-1_8_0_EDB/pgadmin3/pgadmin/frm/frmBackup.cpp branches/REL-1_8_0_EDB/pgadmin3/pgadmin/frm/frmBackupGlobals.cpp branches/REL-1_8_0_EDB/pgadmin3/pgadmin/frm/frmBackupServer.cpp branches/REL-1_8_0_EDB/pgadmin3/pgadmin/frm/frmRestore.cpp -- Sent via pgadmin-hackers mailing list ([email protected]) To make changes to your subscription: http://www.postgresql.org/mailpref/pgadmin-hackers
[pgadmin-hackers] delete script
Hi,
I wrote a small patch to add the "delete script" item in the script menu
on tables.
It just open an sql editor with a delete query in it for the selected table.
Regards,
Rémi.
Index: pgadmin/include/frm/frmQuery.h
===
--- pgadmin/include/frm/frmQuery.h (révision 7174)
+++ pgadmin/include/frm/frmQuery.h (copie de travail)
@@ -226,6 +226,14 @@
wxWindow *StartDialog(frmMain *form, pgObject *obj);
};
+class queryToolDeleteFactory : public queryToolDataFactory
+{
+public:
+queryToolDeleteFactory(menuFactoryList *list, wxMenu *mnu, ctlMenuToolbar *toolbar);
+wxWindow *StartDialog(frmMain *form, pgObject *obj);
+bool CheckEnable(pgObject *obj);
+};
+
class queryToolInsertFactory : public queryToolDataFactory
{
public:
Index: pgadmin/include/schema/pgTable.h
===
--- pgadmin/include/schema/pgTable.h (révision 7174)
+++ pgadmin/include/schema/pgTable.h (copie de travail)
@@ -106,6 +106,7 @@
wxString GetSelectSql(ctlTree *browser);
wxString GetInsertSql(ctlTree *browser);
wxString GetUpdateSql(ctlTree *browser);
+wxString GetDeleteSql(ctlTree *browser);
wxString GetHelpPage(bool forCreate) const;
pgObject *Refresh(ctlTree *browser, const wxTreeItemId item);
void iSetTriggersEnabled(ctlTree *browser, bool enable);
Index: pgadmin/frm/frmQuery.cpp
===
--- pgadmin/frm/frmQuery.cpp (révision 7174)
+++ pgadmin/frm/frmQuery.cpp (copie de travail)
@@ -2032,7 +2032,31 @@
return 0;
}
+queryToolDeleteFactory::queryToolDeleteFactory(menuFactoryList *list, wxMenu *mnu, ctlMenuToolbar *toolbar) : queryToolDataFactory(list)
+{
+mnu->Append(id, _("DELETE script"), _("Start query tool with DELETE script."));
+}
+bool queryToolDeleteFactory::CheckEnable(pgObject *obj)
+{
+if (!queryToolDataFactory::CheckEnable(obj))
+return false;
+if (obj->IsCreatedBy(tableFactory))
+return true;
+return false;
+}
+
+wxWindow *queryToolDeleteFactory::StartDialog(frmMain *form, pgObject *obj)
+{
+if (obj->IsCreatedBy(tableFactory))
+{
+pgTable *table = (pgTable*)obj;
+return StartDialogSql(form, obj, table->GetDeleteSql(form->GetBrowser()));
+}
+return 0;
+}
+
+
queryToolUpdateFactory::queryToolUpdateFactory(menuFactoryList *list, wxMenu *mnu, ctlMenuToolbar *toolbar) : queryToolDataFactory(list)
{
mnu->Append(id, _("UPDATE script"), _("Start query tool with UPDATE script."));
Index: pgadmin/frm/frmMain.cpp
===
--- pgadmin/frm/frmMain.cpp (révision 7174)
+++ pgadmin/frm/frmMain.cpp (copie de travail)
@@ -354,6 +354,7 @@
new queryToolSelectFactory(menuFactories, scriptingMenu, 0);
new queryToolInsertFactory(menuFactories, scriptingMenu, 0);
new queryToolUpdateFactory(menuFactories, scriptingMenu, 0);
+new queryToolDeleteFactory(menuFactories, scriptingMenu, 0);
viewdataMenuFactory = new submenuFactory(menuFactories); // placeholder where "View data" submenu will be inserted
toolsMenu->Append(viewdataMenuFactory->GetId(), _("View &Data"), viewDataMenu, _("View data."));
Index: pgadmin/schema/pgTable.cpp
===
--- pgadmin/schema/pgTable.cpp (révision 7174)
+++ pgadmin/schema/pgTable.cpp (copie de travail)
@@ -472,6 +472,14 @@
return sql;
}
+wxString pgTable::GetDeleteSql(ctlTree *browser)
+{
+ wxString qms;
+ wxString sql =
+ wxT("DELETE FROM ") + GetQuotedFullIdentifier() + wxT("\n")
+ wxT(" WHERE ;\n");
+ return sql;
+}
bool pgTable::EnableTriggers(const bool b)
{
--
Sent via pgadmin-hackers mailing list ([email protected])
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgadmin-hackers
Re: FW: [pgadmin-hackers] pgAgent job limit
I was thinking about this part of the pgagent.sql script the other day:
INSERT INTO pgagent.pga_jobclass (jclname) VALUES ('Routine
Maintenance');
INSERT INTO pgagent.pga_jobclass (jclname) VALUES ('Data Import');
INSERT INTO pgagent.pga_jobclass (jclname) VALUES ('Data Export');
INSERT INTO pgagent.pga_jobclass (jclname) VALUES ('Data
Summarisation');
INSERT INTO pgagent.pga_jobclass (jclname) VALUES ('Miscellaneous');
You don't have a UI for these job classes but they are used to populate
the drop down list when creating a new job. If someone wants to
insert/update/delete any of these job classes, they have to do this
manually without a UI. Based on this, I would think we could add this
feature without a UI change.
I also thought about putting the job throttling into the job class by
throttling jobs based on the job class they are in. It would take more
changes to the SQL code but I think it would be doable and add more
flexibility.
Jon
> -Original Message-
> From: Dave Page [mailto:[EMAIL PROTECTED]
> Sent: Wednesday, February 27, 2008 3:14 AM
> To: Roberts, Jon
> Cc: pgadmin-hackers; Lucas, Craig
> Subject: Re: FW: [pgadmin-hackers] pgAgent job limit
>
> On Wed, Feb 27, 2008 at 3:29 AM, Roberts, Jon
<[EMAIL PROTECTED]>
> wrote:
> >
> > I agree that a UI change would be ideal.
>
> Required, if this design is to be accepted in the standard code. Let
> me check it over first though - I may have other concerns.
>
> --
> Dave Page
> EnterpriseDB UK: http://www.enterprisedb.com
> The HOT PostgreSQL Company
--
Sent via pgadmin-hackers mailing list ([email protected])
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgadmin-hackers
Re: [pgadmin-hackers] Romanian Translation
Hi, Radu Simen a écrit : I saw that the Romanian translation of pgAdmin is not up to date. I'm a Romanian developer, and I use every day pgAdmin. Can I contribute on this translation? Yes, of course, we'll be glad to have an up-to-date translation. You need to download this file : http://www.pgadmin.org/svnrepo/pgadmin3/i18n/ro_RO/pgadmin3.po and to work on its translation. You can use poedit to work more easily. For more information, check the howto : http://www.pgadmin.org/translation/howto.php Thanks and Good luck. -- Guillaume. http://www.postgresqlfr.org http://dalibo.com -- Sent via pgadmin-hackers mailing list ([email protected]) To make changes to your subscription: http://www.postgresql.org/mailpref/pgadmin-hackers
