[pgAdmin4][Patch]: File Manager & Backform FileControl

From: Surinder Kumar <surinder(dot)kumar(at)enterprisedb(dot)com>
To: pgadmin-hackers <pgadmin-hackers(at)postgresql(dot)org>
Subject: [pgAdmin4][Patch]: File Manager & Backform FileControl
Date: 2016-04-27 12:48:12
Message-ID: CAM5-9D8GX9gNZp95K11rfnpnn4msEH=F6hhZNpBE_WLX46vicg@mail.gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgadmin-hackers

Hi,

The patch is for *File Manager and Backform FileControl*.

*File Manager:* It allows user to store their files at one place. The user
can set path to this directory in preferences which file manger will use.

It will be used by various modules of pgAdmin4 such as
*import data from file, query tool, backup & recovery tool* so on.. It
allows user to perform various operations such as:

- File deletion
- File upload
- Create new directory
- File rename
- File download and
- List files & folders in list and grid view.

*FileControl: *This control is used with *File Manager. *It can be used for:

- File Selection
- Folder Selection
- File Creation
- Storage Manager Dialog.( it supports all operations listed above).

Usage*:*

schema:[{
id: 'select_file', label: '{{ _('Select File')}}',
type: 'text', *control*: *Backform.FileControl*,
*dialog_type: 'select_file'*, *supp_types: ['*', 'pdf', 'text', 'patch',
'py']*
}

Where:

- *control* - It should be *Backform.FileControl*
- *dialog_type *- the type of dialog to use.
- options can be: *select_file, select_folder, create_file &
storage_dialog*.
- *supp_types(*not mandatory) - the types of files allowed to show and
upload.

Please review the patch and let me know for the review comments.

Thanks
Surinder Kumar

Attachment Content-Type Size
FileManager_and_Backform_FileControl.patch application/octet-stream 191.6 KB

Responses

Browse pgadmin-hackers by date

  From Date Subject
Next Message Murtuza Zabuawala 2016-04-27 12:49:48 PATCH: Added Note Backform control (pgAdmin4).
Previous Message Thom Brown 2016-04-27 12:43:46 Re: [PATCH] Tables node (pgAdmin4)