Questions tagged [grok]

Grok is a web framework running atop of Zope application server written in Python with aim to make Zope technology more accessible to the masses as well as speed up the development process. Exploiting convention-over-configuration paradigm, Grok uses Zope Toolkit libraries and provides building blocks for your application along with the way to tie it all together.

Grok is a web framework running atop of Zope application server written in Python with aim to make Zope technology more accessible to the masses as well as speed up the development process.

Exploiting convention-over-configuration paradigm Grok uses Zope Toolkit libraries and provides building blocks for your application along with the way to tie it all together.

Visit grok to learn more.

486 questions
0
votes
3 answers

Logstash filtering using grok

I'm trying to structurally filter my log using a grok filter in logstash. This is a sample log: 5d563f04-b5d8-4b8d-b3ac-df26028c3719 SoapRequest CheckUserPassword
user2385412
  • 51
  • 1
  • 5
0
votes
2 answers

Grokless way for dynamic vocabularies?

I have a python-script, which returns returns a context-based, dynamically generated simple list: def myVocabMethod(self): mylist = ['a','list','apart'] # do sth dynamic return mylist I would like to pass the result to the…
Ida
  • 3,994
  • 21
  • 40
0
votes
1 answer

Instantiate a "grok view" with the parameters self.context and self.request in another grok view

I have a site product with a code like this: class AClass(grok.View): """ Code of AClass """ pass class BClass(AClass): """ Code of BClass with 'update' method defined """ pass class CClass(BClass): def update(self): …
Leonardo Andrade
  • 2,508
  • 2
  • 18
  • 24
0
votes
1 answer

Need help understanding View, Viewlet, ViewletManager and Page

I know it's certainly a naive question but I couldn't figure out the answer by reading the scattered (and sometimes outdated docs) so I'm a bit confused. What's the conceptual meaning of all these view layer components and what's the difference…
BahmanM
  • 1,420
  • 10
  • 18
0
votes
2 answers

Logstash date filter not working

I have the following configuration file. But when I run this, I get the timestamp changed in the terminal but the log is not shipped to ElasticSearch. Here is the configuration file: input { stdin { type => "stdin-type" } } filter { grok…
user2359303
  • 261
  • 2
  • 7
  • 15
0
votes
1 answer

Double import in grok

This is a normal case of mutual import. Suppose you have the following…
Stefano Borini
  • 138,652
  • 96
  • 297
  • 431
0
votes
2 answers

Grok pattern format

I would like for my grok to output results based on my custom pattern. Input: May 23 22:23:39 vd='root' I did a grok discover and the results were: %{SYSLOGTIMESTAMP} vd=%{QS} I would like to make a custom pattern that will use the discovered…
Meryvn
  • 65
  • 3
  • 12
0
votes
1 answer

Business Application with Grok and ZODB

DISCLAIMER: I'm new to Grok. I've been thinking about writing a business application (like accounting/sales/payroll) with Grok and ZODB.As you know, a business application does a lot of INSERT. does a lot of SELECT on usually large sets of…
BahmanM
  • 1,420
  • 10
  • 18
0
votes
3 answers

Unregister a zcml resource directory in Plone

I would like to 'unregister' a resource directory registered with configure zcml and the directive I have uninstalled my custom add-on that originally registered the resource directory, but other packages are still able to call…
Aaron Williams
  • 655
  • 4
  • 11
0
votes
1 answer

System error with .cpt file Grok Framework

I don't know why this is happening. I'm getting to grips with the Grok framework. While following the tutorial I encountered this error. When using TAL:attributes to link to a CSS style sheet, the index page loads with a system error message. The…
adohertyd
  • 2,689
  • 19
  • 58
  • 78
-1
votes
2 answers

Python grok learning lists

Hi I am working on a module for Grok learning and it gave me a problem to create a program that takes a list of students names and prints each name out individually and alphabetically as a class roll (each name capitalized). #pseudo # ask for…
QIN YANG
  • 11
  • 4
-1
votes
1 answer

RegEx or Pygrok Pattern match

I have text like this Example: "visa code: ab c master number: efg discover: i j k" Output should be like this: abc, efg, ijk Is there a way, I can use Grok pattern match or Reg EX to get 3 characters after the ":" (not considering space) ?
MritiYogan
  • 126
  • 6
-1
votes
1 answer

Using sum() in a list

I'm a bit new to coding and I have a school project where we have to make a code using python, in the code we get an input from the user and need to add it together in a list, this is the code: x = input("Enter the expenses: ") y = x.split() n =…
Caleb
  • 1
  • 1
-1
votes
2 answers

How do you fix with python - TypeError: must be str, nor int -?

def rotate(letter, key): new = ord(letter) new = chr(new) + key return new new = rotate(" "," ") print(new) for some reason the code allows me to enter the message and key but then gives me the TypeError.
-1
votes
1 answer

How to create a Best Value Price Finder in Python

I've been trying to figure out how to make a Best Price Finder where you can enter an infinite amount of items with their mass and price, and then pick the best value item (mass and price most worth it). Does anyone know how to make a code similar…