예제 #1
0
    def get_columns(self):
        """
        Return all the columns we support.

        """

        return (
            Nemo.Column(
                name="RabbitVCS::status_column",
                attribute="status",
                label=_("RVCS Status"),
                description=""
            ),
            Nemo.Column(
                name="RabbitVCS::revision_column",
                attribute="revision",
                label=_("RVCS Revision"),
                description=""
            ),
            Nemo.Column(
                name="RabbitVCS::author_column",
                attribute="author",
                label=_("RVCS Author"),
                description=""
            ),
            Nemo.Column(
                name="RabbitVCS::age_column",
                attribute="age",
                label=_("RVCS Age"),
                description=""
            )
        )
예제 #2
0
 def get_columns(self):
     return (
         Nemo.Column(name="NemoPython::at_1_column",
                     attribute="at_1",
                     label=("@1"),
                     description="Get the 1st at-prefixed part"),
         Nemo.Column(name="NemoPython::at_2_column",
                     attribute="at_2",
                     label=("@2"),
                     description="Get the 2nd at-prefixed part"),
         Nemo.Column(name="NemoPython::dollar_1_column",
                     attribute="dollar_1",
                     label=("$1"),
                     description="Get the 1st dollar-prefixed part"),
         Nemo.Column(name="NemoPython::dollar_2_column",
                     attribute="dollar_2",
                     label=("$2"),
                     description="Get the 2nd dollar-prefixed part"),
         Nemo.Column(name="NemoPython::hash_1_column",
                     attribute="hash_1",
                     label=("#1"),
                     description="Get the 1st hashtagged part"),
         Nemo.Column(name="NemoPython::hash_2_column",
                     attribute="hash_2",
                     label=("#2"),
                     description="Get the 2nd hashtagged part"),
         Nemo.Column(name="NemoPython::name_2_column",
                     attribute="name_2",
                     label=("Name2"),
                     description="Get the name after first space"),
         Nemo.Column(name="NemoPython::name_3_column",
                     attribute="name_3",
                     label=("Name3"),
                     description="Get the name after second space"),
     )
예제 #3
0
 def get_columns(self):
     """Return the list of columns provided by this extension."""
     return (Nemo.Column(name="NemoCrtime::creation_time_column",
                         attribute="creation_time",
                         # For consistency with Nemo's style (Date Modified, Date Accessed, ...)
                         label=_("Date Created"),
                         description=_("File/folder creation time (NTFS/FAT32)")),)
    def get_columns(self):
        """Return NemoColumns for media metadata."""
        columns = []
        tags = dict(TAGS_AUDIO_VIDEO)
        tags.update(TAGS_IMAGE)
        tags.update(TAGS_PDF)

        for tagname, tag_translated in tags.items():
            attribute = tagname.lower()
            name = "NemoMetadata::%s_column" % attribute
            label = tag_translated
            columns.append(
                Nemo.Column(name=name,
                            attribute=attribute,
                            label=label,
                            description=tagname))
        return tuple(columns)
 def get_columns(self):
     return (
         Nemo.Column(name="NemoPython::title_column",
                     attribute="title",
                     label=_("Title"),
                     description=""),
         Nemo.Column(name="NemoPython::album_column",
                     attribute="album",
                     label=_("Album"),
                     description=""),
         Nemo.Column(name="NemoPython::artist_column",
                     attribute="artist",
                     label=_("Artist"),
                     description=""),
         Nemo.Column(name="NemoPython::tracknumber_column",
                     attribute="tracknumber",
                     label=_("Track"),
                     description=""),
         Nemo.Column(name="NemoPython::genre_column",
                     attribute="genre",
                     label=_("Genre"),
                     description=""),
         Nemo.Column(name="NemoPython::date_column",
                     attribute="date",
                     label=_("Date"),
                     description=""),
         Nemo.Column(name="NemoPython::bitrate_column",
                     attribute="bitrate",
                     label=_("Bitrate"),
                     description=""),
         Nemo.Column(name="NemoPython::pages_column",
                     attribute="pages",
                     label=_("Pages"),
                     description=""),
         Nemo.Column(name="NemoPython::samplerate_column",
                     attribute="samplerate",
                     label=_("Sample Rate"),
                     description=""),
         Nemo.Column(name="NemoPython::length_column",
                     attribute="length",
                     label=_("Length"),
                     description=""),
         Nemo.Column(name="NemoPython::exif_datetime_original_column",
                     attribute="exif_datetime_original",
                     label=_("EXIF Date"),
                     description=""),
         Nemo.Column(name="NemoPython::exif_software_column",
                     attribute="exif_software",
                     label=_("EXIF Software"),
                     description=""),
         Nemo.Column(name="NemoPython::exif_flash_column",
                     attribute="exif_flash",
                     label=_("EXIF Flash"),
                     description=""),
         Nemo.Column(name="NemoPython::exif_pixeldimensions_column",
                     attribute="exif_pixeldimensions",
                     label=_("EXIF Image Size"),
                     description=""),
         Nemo.Column(name="NemoPython::exif_rating",
                     attribute="exif_rating",
                     label=_("EXIF Rating"),
                     description=""),
         Nemo.Column(name="NemoPython::pixeldimensions_column",
                     attribute="pixeldimensions",
                     label=_("Image Size"),
                     description=""),
     )
예제 #6
0
	def get_columns(self):
		return (
			Nemo.Column(name="NemoPython::title_column",attribute="title",label="Title",description="Song title"),
			Nemo.Column(name="NemoPython::album_column",attribute="album",label="Album",description="Album"),
			Nemo.Column(name="NemoPython::artist_column",attribute="artist",label="Artist",description="Artist"),
			Nemo.Column(name="NemoPython::tracknumber_column",attribute="tracknumber",label="Track",description="Track number"),
			Nemo.Column(name="NemoPython::genre_column",attribute="genre",label="Genre",description="Genre"),
			Nemo.Column(name="NemoPython::date_column",attribute="date",label="Date",description="Date"),
			Nemo.Column(name="NemoPython::bitrate_column",attribute="bitrate",label="Bitrate",description="Audio Bitrate in kilo bits per second"),
			Nemo.Column(name="NemoPython::samplerate_column",attribute="samplerate",label="Sample rate",description="Sample rate in Hz"),
			Nemo.Column(name="NemoPython::length_column",attribute="length",label="Length",description="Length of audio"),
			Nemo.Column(name="NemoPython::exif_datetime_original_column",attribute="exif_datetime_original",label="EXIF Dateshot ",description="Get the photo capture date from EXIF data"),
			Nemo.Column(name="NemoPython::exif_software_column",attribute="exif_software",label="EXIF Software",description="EXIF - software used to save image"),
			Nemo.Column(name="NemoPython::exif_flash_column",attribute="exif_flash",label="EXIF flash",description="EXIF - flash mode"),
			Nemo.Column(name="NemoPython::exif_pixeldimensions_column",attribute="exif_pixeldimensions",label="EXIF Image Size",description="Image size - pixel dimensions as reported by EXIF data"),
			Nemo.Column(name="NemoPython::exif_rating",attribute="exif_rating",label="EXIF Rating",description="Rating of the Image as reported by EXIF data"),
			Nemo.Column(name="NemoPython::pixeldimensions_column",attribute="pixeldimensions",label="Image Size",description="Image/video size - actual pixel dimensions"),
		)
예제 #7
0
 def get_columns(self):
     return Nemo.Column(name="NemoPython::block_size_column",
                        attribute="block_size",
                        label="Block size",
                        description="Get the block size"),
예제 #8
0
 def get_columns(self):
     """Return a NemoColumn for Git file status."""
     return Nemo.Column(name="NemoGit::FileStatus",
                        attribute=GIT_FILE_STATUS,
                        label="Git",
                        description=_("Git File Status")),