Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

General24 #102

Merged
merged 11 commits into from
Nov 24, 2024
Merged

General24 #102

merged 11 commits into from
Nov 24, 2024

Conversation

jiisloth
Copy link
Member

@jiisloth jiisloth commented Nov 4, 2024

No description provided.

@jiisloth jiisloth requested a review from Uular November 4, 2024 20:54
Copy link
Member

@Uular Uular left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Styles & templates are probably fine, some suggestions to the plugin module

from datetime import datetime

client = VJClient(settings.VJ_API_URL)

@plugin_pool.register_plugin
class MobileSpeechbubble(CMSPluginBase):
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Plugin names should end with Plugin


def render(self, context, instance, placeholder):
context = super().render(context, instance, placeholder)
return context
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Space between classes please

context = super().render(context, instance, placeholder)
return context
@plugin_pool.register_plugin
class TweakSettings(CMSPluginBase):
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Plugin names should end with Plugin

@plugin_pool.register_plugin
class TweakSettings(CMSPluginBase):
name = 'Tweak Settings'
model = TweakSettings
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Model name clashes with the plugin class name – one reason to name the plugin TweakSettingsPlugin

return context

@plugin_pool.register_plugin
class AnchorLink(CMSPluginBase):
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Plugin names should end with Plugin

@plugin_pool.register_plugin
class AnchorLink(CMSPluginBase):
name = 'Anchor link'
model = AnchorLink
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Model name clashes with the plugin class name – one reason to name the plugin AnchorLinkPlugin

return context

@plugin_pool.register_plugin
class PriorityMessage(CMSPluginBase):
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Plugin names should end with Plugin

@jiisloth
Copy link
Member Author

New generic theme

@jiisloth jiisloth merged commit c5a5c33 into develop Nov 24, 2024
2 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants