zopefoundation / Products.ZSQLMethods

SQL method support for Zope.
Other
3 stars 14 forks source link

ZMI improvements for database connection test form #32

Closed drfho closed 3 years ago

drfho commented 3 years ago

Hi @dataflake , according to SQLAlchemyDA I added syntax high-lighting to the SQL test editor and some minor style improvements, Actually L14 of src/Shared/DC/ZRDB/dtml/connectionTestForm.dtml class="text-<dtml-if connected>success<dtml-else>warning</dtml-if>"> ist not really nice, but it works; in contrast to my try with if-else-shortcut;

<dtml-let num_rows="REQUEST.get('num_rows') or 20"
                 info_css="connected and 'success' or 'warning' ">
....
  class="text-&dtml-info_css;">

Maybe you have a better idea?

ZSQLMethods