aurweb/aurweb/models
Kevin Morris ae3d302c47 implement /packages/{name} as its own route
A few things added with this commit:

- aurweb.packages.util
    - A module providing package and pkgbase helpers.
- aurweb.template.register_filter
    - A decorator that can be used to register a filter:
      @register_filter("some_filter") def f(): pass

Additionally, template partials have been split off a bit
differently. Changes:

- /packages/{name} is defined in packages/show.html.
- partials/packages/package_actions.html is now
  partials/packages/actions.html.
- partials/packages/details.html has been added.
- partials/packages/comments.html has been added.
- partials/packages/comment.html has been added.
- models.dependency_type additions: name and id constants.
- models.relation_type additions: name and id constants.
- models.official_provider additions: base official url constant.

Signed-off-by: Kevin Morris <kevr@0cost.org>
2021-07-27 20:48:40 -07:00
..
__init__.py use declarative_base for all ORM models 2021-06-10 13:54:27 -07:00
accepted_term.py use declarative_base for all ORM models 2021-06-10 13:54:27 -07:00
account_type.py add /tu/ (get) index 2021-06-26 01:03:27 -07:00
api_rate_limit.py use declarative_base for all ORM models 2021-06-10 13:54:27 -07:00
ban.py use declarative_base for all ORM models 2021-06-10 13:54:27 -07:00
declarative.py add Base.as_dict() and Base.json() 2021-06-13 10:48:31 -07:00
dependency_type.py implement /packages/{name} as its own route 2021-07-27 20:48:40 -07:00
group.py use declarative_base for all ORM models 2021-06-10 13:54:27 -07:00
license.py use declarative_base for all ORM models 2021-06-10 13:54:27 -07:00
official_provider.py implement /packages/{name} as its own route 2021-07-27 20:48:40 -07:00
package.py PackageBase.package -> PackageBase.packages 2021-06-28 08:31:13 -07:00
package_base.py PackageBase: automatically cast Popularity to float 2021-07-20 12:46:19 -07:00
package_blacklist.py add PackageBlacklist SQLAlchemy ORM model 2021-06-11 17:28:08 -07:00
package_comaintainer.py add PackageComaintainer SQLAlchemy ORM model 2021-06-11 16:52:45 -07:00
package_comment.py PackageComment: default RenderedComment to str() 2021-07-20 12:47:08 -07:00
package_dependency.py implement /packages/{name} as its own route 2021-07-27 20:48:40 -07:00
package_group.py use declarative_base for all ORM models 2021-06-10 13:54:27 -07:00
package_keyword.py bugfix: PackageKeyword should have two PKs 2021-06-28 12:44:55 -07:00
package_license.py use declarative_base for all ORM models 2021-06-10 13:54:27 -07:00
package_notification.py add PackageNotification SQLAlchemy ORM model 2021-06-11 17:14:28 -07:00
package_relation.py PackageRelation: fix primary key relationships 2021-07-20 12:46:59 -07:00
package_request.py add PackageRequest SQLAlchemy ORM model 2021-06-11 21:21:38 -07:00
package_source.py add PackageSource SQLAlchemy ORM model 2021-06-10 17:46:29 -07:00
package_vote.py add PackageVote SQLAlchemy ORM model 2021-06-10 13:55:07 -07:00
relation_type.py implement /packages/{name} as its own route 2021-07-27 20:48:40 -07:00
request_type.py add RequestType SQLAlchemy ORM model 2021-06-11 17:37:51 -07:00
session.py use declarative_base for all ORM models 2021-06-10 13:54:27 -07:00
ssh_pub_key.py use declarative_base for all ORM models 2021-06-10 13:54:27 -07:00
term.py use declarative_base for all ORM models 2021-06-10 13:54:27 -07:00
tu_vote.py add TUVote SQLAlchemy ORM model 2021-06-11 22:14:38 -07:00
tu_voteinfo.py add TUVoteInfo.total_votes() 2021-06-26 01:11:52 -07:00
user.py add /accounts/ (get, post) routes 2021-07-01 11:08:56 -07:00